Hyvinvointibot is a Telegram bot based on telepot that was used in the 2018 well-being competition (hyvinvointikilpailu) of the Guild of Physics. It works by asking questions from users and storing the answers and associated good or bad scores into a MongoDB database.
- Install dependencies:
If you want to run the analysis script, you should also
sudo apt install mongodb sudo pip3 install pymongo telepotsudo pip3 install numpy matplotlib. git clone https://github.com/Fyysikkokilta/hyvinvointibot.git && cd hyvinvointibot.- Put your bot token in
token.txtin the root directory of the repo - Check the competititon end date in
hyvinvointibot.py - Run the bot:
python3 hyvinvointibot.py - If you want to analyze the data in the database, run
python3 dbmanager.py --export, updatedata_filenameinanalysis.py, and then runpython3 analysis.py. Check the source code for details.