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 modessectionADMIN_NAME: Used only inPINGbot 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 duelbotOr using docker-compose:
$ docker-compose up -dThere is two bot modes:
ADMIN: Mutes users with admin rights given to himPING: Pings admins