I wanted to play Secret Santa with my friends this holiday season, so I thought: hey! we all use telegram... why not make a friendly bot that handles the logistics?
Here are the results.
Well, first of all, if you want to download this proyect and create your own bot, you will need to tal with @BotFather and ask him for a /newbot. After that, the Bot Father will give you a token
, which is needed to intantiate the bot.
When you download the code, it will be necessary to:
- Create a database
db.sqlite
in project's root folder (you can choose another name but by default this code assumes that one). - Create an environment (I suggest using
python3 -m venv <env_path>
). - Activate your new environment (in Linux
source <env_path>/bin/activate
). - Install bot's requirements with
pip3 install -r requirements.txt
. - Run setup with
python3 setup.py
. - Paste your
token
assigned by Bot Father inrunner.py
. - Run the bot (and do not stop it)
python3 runner.py
.
... Comming soon