You must have a server with Python 3.10 or higher installed. Also, make sure you have python-pip installed.
-
Clone the repository into the desired directory on your server using the command:
git clone https://github.com/BANedetta/telegram-bot my_catalog(replace
my_catalogwith your directory name). If you don't have GIT installed, use:apt install gitIf you're on Windows, download the repository as a ZIP and extract it.
-
Grant execution rights to the installer script:
chmod +x installer.shOn Windows, skip this step.
-
Run the installer:
./installer.sh(on Windows run installer.cmd) and wait for the installation to complete.
-
Configure config.py in the config directory for your game server. Go to the channel settings and add a chat for discussion, then add the ID (or username) of the chat and channel to config.py.
-
Create a .env file and fill it out based on the .env_example file.
-
Run the script start.sh (start.cmd for Windows).
This bot is useless without a plugin on the game server, so set everything up there first.