No description
Find a file
2018-10-14 20:52:35 +07:00
.vscode new mode 2018-04-16 15:11:42 +07:00
images renaming files 2017-11-27 18:02:55 +01:00
locales Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
test Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
.gitignore python-telegram-bot v7 compatability + more (#35) 2017-08-18 23:36:30 +02:00
actions.py fix stats 2018-04-18 09:59:10 +07:00
AUTHORS.md Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
bot.py new mode one 2018-04-16 16:35:25 +07:00
card.py Revert "new (temp) stickers for r_8 and g_9" 2018-01-30 14:37:17 +01:00
config.json.example Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
config.py Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
database.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
deck.py join +1 and wild percentage 2018-04-11 11:16:26 +07:00
errors.py add encoding 2016-05-19 23:15:46 +02:00
game.py fix stats 2018-04-18 09:48:43 +07:00
game_manager.py register stat on join 2018-10-14 20:52:35 +07:00
internationalization.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
LICENSE move to AGPL (#4) 2016-05-08 14:37:25 +02:00
logo.png added logo 2016-03-09 11:31:54 +01:00
mwt.py add cached admin check 2017-08-19 00:08:55 +02:00
player.py Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
README.md Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
requirements.txt Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
results.py new mode 2018-04-16 15:11:42 +07:00
settings.py add last places 2018-04-09 08:31:12 +07:00
shared_vars.py Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00
simple_commands.py templating 2018-04-17 11:22:59 +07:00
start_bot.py add encoding 2016-05-19 23:15:46 +02:00
TRANSLATORS.md Pull request with compile.sh and TRANSLATORS.md change (#41) 2017-09-19 23:37:47 +02:00
user_setting.py add last places 2018-04-09 08:31:12 +07:00
utils.py Add /kick command and remove botan support (#38) 2017-12-07 09:27:51 +01:00

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 @unobot.

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.
  • 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 and wild. Check the details with the /modes command.

Then run the bot with python3 bot.py.

Code documentation is minimal but there.