Go to file
Jarv ea881cf520 Added gamemodes. New mode: Fast. (#44)
* Changes for possible bug

* New sanic mode wip

* More changes for fast mode, WIP

* Fast mode is playable (code is ugly tho)

* Fixed skip error

* Fixed fast mode error

* Bug fixing

* Possible fix for the /leave bug before the game starts

* Update README to include Codacy badge

* Fixing error prone code

* Removing code smells

* Removing more code smells

* How long can this go on? (More smells according to Codacy)

* Compile locale fixed for Linux. Small es_ES fix.

* Major refactoring

* Wild mode finished. Changed emojis for text in log.

* Removing test prints, back to emojis

* Code cleaning and fix for player time in fast mode

* Changing help to not override builtin function

* Decreased bot.py's complexity

* Default gamemode is now Fast. Added a bot configuration file

* back to random

* Moved logger to shared_vars

* Added MIN_FAST_TURN_TIME to config and fixed 'skipped 4 times' message

* Pull review changes

* More review changes

* Removing codacy badge linked to my account for pull request

* Fixed first special card issue, logger back to how it was (with just one logging init)

* Renamed gameplay config file to gameplay_config.py.
2017-11-27 17:59:19 +01:00
images add webp 2017-11-27 17:58:41 +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
AUTHORS.md add qubitnerd to AUTHORS 2016-07-02 20:36:29 +02:00
LICENSE move to AGPL (#4) 2016-05-08 14:37:25 +02:00
README.md Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
TRANSLATORS.md Pull request with compile.sh and TRANSLATORS.md change (#41) 2017-09-19 23:37:47 +02:00
actions.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
bot.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
card.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
chat_setting.py add encoding 2016-05-19 23:15:46 +02:00
config.json.example python-telegram-bot v7 compatability + more (#35) 2017-08-18 23:36:30 +02:00
database.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
deck.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
errors.py add encoding 2016-05-19 23:15:46 +02:00
game.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
game_manager.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
gameplay_config.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
internationalization.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01: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 Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
requirements.txt Update requirements.txt 2017-10-23 14:02:15 +02:00
results.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
settings.py python-telegram-bot v7 compatability + more (#35) 2017-08-18 23:36:30 +02:00
shared_vars.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
simple_commands.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
start_bot.py add encoding 2016-05-19 23:15:46 +02:00
user_setting.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00
utils.py Added gamemodes. New mode: Fast. (#44) 2017-11-27 17:59:19 +01:00

README.md

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 gameplay_config.py. Check the gamemodes available with the /modes command.

Then run the bot with python3 bot.py.

Code documentation is minimal but there.