Secret Santa Telegram Bot named Flantier (like in OSS117). It generates who's offering who, registers which gift is taken and makes jokes
based on https://python-telegram-bot.org and Google Doc API
- create a bot and get eh API key from the botfather
- install flantier
python3 -m pip install "flantier @ git+https://github.com/PercevalSA/flantier
- install service
sudo wget -O /etc/systemd/system/flantier.service https://raw.githubusercontent.com/PercevalSA/flantier/main/flantier.service
- edit service to have your username correctly set
sudo vim /etc/systemd/system/flantier.service
- start the service
sudo systemctl daemon-reload && sudo systemctl enable flantier && sudo systemctl start flantier
- edit configurations to
- add you bot key and admin telegram id (c.f. quick start):
vim ~/.config/flantier/settings.toml
- set administrator id by using the
/register
command while the bot is running and look inusers.json
"
- add you bot key and admin telegram id (c.f. quick start):
You can use a dedicated user to run the bot
- create new user:
sudo adduser --shell /bin/noshell --disabled-login flantier
- install flantier as flantier user
sudo -u flantier python3 -m pip install "flantier @ git+https://github.com/PercevalSA/flantier