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:
- Python (tested with 3.4+)
- The python-telegram-bot module
- Pony ORM
- 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
- 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 scriptcompile.sh
located in thelocales
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.
Patches and pull requests are welcome. Please use either git-send-email(1) or git-request-pull(1), addressed to [email protected].