Skip to content

CyberTailor/based_uno_bot

 
 

Repository files navigation

UNO Bot

License: AGPL v3

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

To run the bot yourself, you will need:

Extra features/fixes in this fork

  • Queer leftist redesign of UNO cards
    • black "choose color" cards → anarcho-communism flag
    • blue cards → transgender pride flag
    • green cards → nonbinary pride flag
    • red cards → rainbow flag
    • yellow cards → pansexual pride flag
  • Added white stroke to some option stickers
  • Russian translations have gender_gap to be more inclusive

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' \;.
  • Enable /setinline and /setinlinefeedback via 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, wild and text. Check the details with the /modes command.

Then run the bot with python3 bot.py.

Code documentation is minimal but there.

Contributing

Patches and pull requests are welcome. Please use either git-send-email(1) or git-request-pull(1), addressed to cybertailor@gmail.com.

About

Telegram Bot that allows you to play UNO via inline queries - Queer leftism edition

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Python 98.8%
  • Other 1.2%