Telegram Bot that allows you to play the popular card game UNO via inline queries. The bot currently runs as @unobot.
To run the bot yourself, you will need:
- Python (tested with 3.4+)
- The python-telegram-bot module
- Pony ORM
- 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' \;
. - 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
- Clone Repository
https://github.com/Rexashh/uno && cd uno
- bash script compile.sh :
- open locales
cd locales
- bash
bash compile.sh
- install req
pip install -r requirement.txt
- build screen
screen -S uno
- RUNING with
python3 bot.py
You can change some gameplay parameters like turn times, minimum amount of players and default gamemode in config.json
.
Current gamemodes available: classic, fast and wild. Check the details with the /modes
command.
Code documentation is minimal but there.