You can not 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
2 months ago
images renaming files 4 years ago
locales Adding percentage to games won 2 months ago
test Fix DeckEmptyError 11 months ago
.gitignore python-telegram-bot v7 compatability + more (#35) 4 years ago
AUTHORS.md I break and I fix 2 months ago
Dockerfile Dockerfile with better caching 1 year ago
LICENSE move to AGPL (#4) 6 years ago
Pipfile feature: add pipenv support. 2 years ago
Pipfile.lock feature: add pipenv support. 2 years ago
README.md Update README.md 1 year ago
TRANSLATORS.md Updating pt_br 3 months ago
actions.py i18n: logger messages shouldn't be translatable. 2 years ago
bot.py Update bot.py 2 years ago
card.py Update card.py 2 years ago
commandlist.txt Create commandlist.txt 1 year ago
config.json.example Add /kick command and remove botan support (#38) 4 years ago
config.py Add /kick command and remove botan support (#38) 4 years ago
database.py Added gamemodes. New mode: Fast. (#44) 4 years ago
deck.py 🐛 Fix bluffing for +4s that have been played before (#67) 3 years ago
errors.py add encoding 6 years ago
game.py Add /kick command and remove botan support (#38) 4 years ago
game_manager.py Added gamemodes. New mode: Fast. (#44) 4 years ago
genpot.sh i18n: add pot generator and ... 2 years ago
internationalization.py Added gamemodes. New mode: Fast. (#44) 4 years ago
logo.png added logo 6 years ago
mwt.py add cached admin check 4 years ago
player.py Add /kick command and remove botan support (#38) 4 years ago
requirements.txt Add /kick command and remove botan support (#38) 4 years ago
results.py Update results.py 2 years ago
settings.py python-telegram-bot v7 compatability + more (#35) 4 years ago
shared_vars.py Changable db path 1 year ago
simple_commands.py Fix check for games played 2 months ago
start_bot.py add encoding 6 years ago
user_setting.py Added gamemodes. New mode: Fast. (#44) 4 years ago
utils.py Update utils.py 2 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.