Giter Club home page Giter Club logo

status-ksm-gov's Introduction

KSM-GOV

this system will alert you with telegram about your unvoted kusama proposals.
donations are welcome, if you find this tool helpful.

Contents

  1. Screenshots
  2. Installation
  3. Update

Screenshots

Log example:

image

image

Installation

  1. Create telegram bot via @BotFather, customize it and get bot_API_token (how_to).
  2. Create at least 1 chat: ksm-gov. Customize it, add your bot into the chat and get chat_ID (how_to).
  3. Connect to your server where you plan to install ksm-gov-status-system.
  4. Install python3.10 or newer:
python3 -V

>>> Python 3.10.9
  1. Clone this repository:
cd ~/ && \
git clone https://github.com/cyberomanov/status-ksm-gov.git status-ksm-gov && \
cd ~/status-ksm-gov/
  1. Install requirements:
pip3 install -r ~/status-ksm-gov/requirements.txt
  1. Edit config.yaml:
nano ~/status-ksm-gov/config.yaml
  1. Run the ksm.py to check you config settings:
python3 ksm.py
  1. If all seems okay, then edit your crontab with crontab -e:
# ksm-gov
0 */6 * * * cd /root/status-ksm-gov/ && /usr/bin/python3 ksm.py

check your logs in several hours here: ~/status-ksm-gov/log/ksm.log


Update

  1. backup your config:
cp ~/status-ksm-gov/config.yaml ~/config_temp.yaml
  1. pull changes from the repository:
cd ~/status-ksm-gov/ && \
git fetch && \
git reset --hard && \
git pull
  1. print a new default config:
cat ~/status-ksm-gov/config.yaml
  1. restore your previous config, ONLY if there is no breaking changes, else edit the new file:
nano ~/status-ksm-gov/config.yaml

OR

mv ~/config_temp.yaml ~/status-ksm-gov/config.yaml
  1. Install requirements:
pip3 install -r ~/status-ksm-gov/requirements.txt
  1. Run the ksm.py to check you config settings:
python3 ksm.py

status-ksm-gov's People

Contributors

cyberomanov avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

bobdic

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.