You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jannes Höke ff2e627967
🔀 Merge pull request #105 from iuriguilherme/master
We shall not divide by zero
1 year ago
images renaming files 5 years ago
locales Adding percentage to games won 1 year ago
test Fix DeckEmptyError 2 years ago
.gitignore python-telegram-bot v7 compatability + more (#35) 6 years ago
AUTHORS.md I break and I fix 1 year ago
Dockerfile Dockerfile with better caching 2 years ago
LICENSE move to AGPL (#4) 7 years ago
Pipfile feature: add pipenv support. 4 years ago
Pipfile.lock feature: add pipenv support. 4 years ago
README.md Update README.md 2 years ago
TRANSLATORS.md Updating pt_br 1 year ago
actions.py i18n: logger messages shouldn't be translatable. 4 years ago
bot.py Update bot.py 4 years ago
card.py Update card.py 4 years ago
commandlist.txt Create commandlist.txt 2 years ago
config.json.example Add /kick command and remove botan support (#38) 5 years ago
config.py Add /kick command and remove botan support (#38) 5 years ago
database.py Added gamemodes. New mode: Fast. (#44) 5 years ago
deck.py 🐛 Fix bluffing for +4s that have been played before (#67) 4 years ago
errors.py add encoding 7 years ago
game.py Add /kick command and remove botan support (#38) 5 years ago
game_manager.py Added gamemodes. New mode: Fast. (#44) 5 years ago
genpot.sh i18n: add pot generator and ... 4 years ago
internationalization.py Added gamemodes. New mode: Fast. (#44) 5 years ago
logo.png added logo 7 years ago
mwt.py add cached admin check 6 years ago
player.py Add /kick command and remove botan support (#38) 5 years ago
requirements.txt Add /kick command and remove botan support (#38) 5 years ago
results.py Update results.py 4 years ago
settings.py python-telegram-bot v7 compatability + more (#35) 6 years ago
shared_vars.py Changable db path 2 years ago
simple_commands.py Fix check for games played 1 year ago
start_bot.py add encoding 7 years ago
user_setting.py Added gamemodes. New mode: Fast. (#44) 5 years ago
utils.py Update utils.py 4 years ago

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

Then run the bot with python3 bot.py.

Code documentation is minimal but there.