Duelbot is a Telegram bot which adds duel functionality to your chat!
Firstly, setup environment variables:
BOT_TOKEN
: Telegram Bot API tokenCHAT_ID
: Target chat IDBOT_MODE
: Bot mode, all modes explained inBot modes
sectionADMIN_NAME
: Used only inPING
bot mode, admin name
Then build project and run duelbot binary!
If you use docker - you can execute this command instead of building project manually:
$ docker build -t duelbot .
$ docker run -d -e BOT_TOKEN -e CHAT_ID -e BOT_MODE -e ADMIN_NAME duelbot
Or using docker-compose:
$ docker-compose up -d
There is two bot modes:
ADMIN
: Mutes users with admin rights given to himPING
: Pings admins