Skip to content

S0NN1/lex-arcana-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lex Arcana Telegram Bot 🤖

Telegram bot implementing Lex Arcana using python-telegram-bot library.

This bot was evaluated for the course "Computer Engineering Project" of Politecnico di Milano.

Teacher: Giovanni Agosta.

Final Score: 30/30.

Bot username: @lex_arcana_bot

Further information can be found in the bot description.

Installation 🔧

Requirements

  • Python 3.8.10 or above.

Procedure

In order to run and test the bot, clone the repo and install the dependencies through pip command:

git clone https://github.com/S0NN1/lex-arcana-telegram-bot.git

cd lex-arcana-telegram-bot

pip3 install -r requirements.txt

python3 main.py

If you want to create a service via systemctl to run the bot in the background you can use the provided configuration and change the paths in it:

[Unit]
Description=Lex Arcana

[Service]
Type=simple
Restart=always
RestartSec=5
ExecStart=/home/sonny/.pyenv/shims/python /home/sonny/master/main.py
WorkingDirectory=/home/sonny/master

[Install]
WantedBy=multi-user.target

Remember to create a .env file in the repo directory and insert the BotFather token like this:

TOKEN=<bot father token>

Screenshots 📷

About

Telegram bot implementing Lex Arcana using python-telegram-bot library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages