Telegram bot for hosting The Resistance: Avalon games made with the python-telegram-bot.
- Download this repo.
- Register at BotFather for a token and bot URL.
- Prepare a host server with webhook compatibility. (e.g Heroku)
- Input (1) Bot token, (2) bot URL, and (3) Webhook URL to myconfig.py
- Deploy on server.
(Optional) Edit gamemsg.py to change the game text.
(Optional) Change the images in the /img folder to change game images.
Use the /genrules command to invoke game rules message. Or, visit https://www.ultraboardgames.com/avalon/game-rules.php
Anonymous mode for admins is not recommended for players. Some commands may not work as intended when the sender is an anonymous admin.
/newgame - Start a new game in the current group
/startgame - Begin the game when there are enough players
/endgame - End the game when it is stuck or when it is over
/genrules - Show the rules of the game
/rolerules - Show the functions of all roles
/rolecons - Show the distribution of roles for different number of players
/checkvote - Show the current voting status of the current round, to check who has not voted yet (once per round)
This bot was built for educational purposes. The right to all characters and gameplay mechanisms belong to the original owner of the game. Also, this bot has only been tested on Heroku; connection methods may differ for other service hosts.
/rolerules
/newgame
Entering /startgame invokes the role assignment function, which then notifies players of their roles in private message.
Messages in main chat will show instructions to proceed.
Selecting players for a Round - journey
Voting for the success of a journey