The Telegram bot is designed to master the practical skills of integrating information systems and gain experience in working together on a project in a distributed team.
The bot combines various authoring functions written by students in the process of studying the discipline "system integration of software applications". Each of the functions must implement interaction with an external information system.
Test telegram bot - @sstmintgrtn_bot.
Shared group with a bot - sstmintgrtn. When pushed to any branch, test results will also appear in that group.
To test the discord bot, you can join the group - Discord group
To run locally, add an .env
file with your keys to the root of the project. Or add appropriate values to the environment variables of your operating system.
LOGLEVEL=INFO
TBOT_LOGLEVEL=WARNING
CONECTION_PGDB=
EXAMPLETOKEN=for_example_token
TBOTTOKEN=
DBOTTOKEN=
GITHUBTOKEN=
YAWEATHERTOKEN=
YADICTTOKEN=
KP_TOKEN=
OPENWEATHERTOKEN=
WEATHER_TOKEN=
CRIPTO_COIN_TOKEN=
DADATA_TOKEN=
GENIUS_TOKEN=
YTFINDERTOKEN=
API_MUSIC=
FIND_CAT_TOKEN=
NEWS_API=
The prefix for the discord bot is permanently !
set to cfx.json
Links to information about tokens
YAWEATHERTOKEN - Test plan required
Dear students, when implementing your functions, adhere to the following recommendations. Your code should be placed in a separate file in the src/functions/ directory. The code must be organized in a class that inherits from the abstract class BotFunctionABC For an example, take a look at the file example_bot_function.py Then in the file bot_func_dictionary.py you need to add information about your function to the BOT_FUNCTIONS_2 dictionary by filling in the appropriate fields
- bot_function - an object with your function inherited from BotFunctionABC
- commands - list of commands to call your function
- authors - your login on github.com
- about - short description
- description - a detailed description of the function with a description of the parameters if they are needed
Explore the capabilities of the library that is used in the project pyTelegramBotAPI.