Skip to content

AmanoTeam/UnuRobot

 
 

Repository files navigation

UnuRobot

License: AGPL v3 Translation status

Telegram Bot that allows you to play the popular card game UNO via inline queries. The bot currently runs as @UnuRobot.

To run the bot yourself, you will need:

Setup

  • Get a bot token from @BotFather and change configurations in config.json.
  • Convert all language files from .po files to .mo by executing the bash script compile.sh located in the locales folder. Another option is: find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec bash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;.
  • Use /setinline and /setinlinefeedback with BotFather for your bot.
  • Use /setcommands and submit the list of commands in commandlist.txt
  • Install requirements (using a virtualenv is recommended): pip install -r requirements.txt

You can change some gameplay parameters like turn times, minimum amount of players and default gamemode in config.json. Current gamemodes available: Classic, Fast (Sanic), Wild, Text and 7-0. Check the details with the /modes command.

Then run the bot with python3 bot.py.

Code documentation is minimal but there.

Translating

  • Our translations are being done at our Weblate project. You can contribute to the currently supported languages or translate to a new language.

About

Telegram Bot that allows you to play Mau Mau (UNO) via inline queries - Fork for https://t.me/UnuRobot

Resources

License

Stars

Watchers

Forks

Languages

  • Python 98.9%
  • Other 1.1%