this system will alert you with telegram about your unvoted kusama proposals.
donations are welcome, if you find this tool helpful.
Log example:
- Create telegram bot via
@BotFather
, customize it and getbot_API_token
(how_to). - Create at least 1 chat:
ksm-gov
. Customize it, add your bot into the chat and getchat_ID
(how_to). - Connect to your server where you plan to install
ksm-gov-status-system
. - Install
python3.10
or newer:
python3 -V
>>> Python 3.10.9
- Clone this repository:
cd ~/ && \
git clone https://github.com/cyberomanov/status-ksm-gov.git status-ksm-gov && \
cd ~/status-ksm-gov/
- Install requirements:
pip3 install -r ~/status-ksm-gov/requirements.txt
- Edit
config.yaml
:
nano ~/status-ksm-gov/config.yaml
- Run the
ksm.py
to check you config settings:
python3 ksm.py
- 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
- backup your config:
cp ~/status-ksm-gov/config.yaml ~/config_temp.yaml
- pull changes from the repository:
cd ~/status-ksm-gov/ && \
git fetch && \
git reset --hard && \
git pull
- print a new default config:
cat ~/status-ksm-gov/config.yaml
- 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
- Install requirements:
pip3 install -r ~/status-ksm-gov/requirements.txt
- Run the
ksm.py
to check you config settings:
python3 ksm.py