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.
 
 
 
kutsaltotem 52b0d192ae fixed 3 years ago
images renaming files 5 years ago
locales fixed 3 years ago
test Added gamemodes. New mode: Fast. (#44) 5 years ago
.gitignore python-telegram-bot v7 compatability + more (#35) 5 years ago
AUTHORS.md fix: `alphabetically' 3 years ago
LICENSE move to AGPL (#4) 6 years ago
Pipfile feature: add pipenv support. 3 years ago
Pipfile.lock feature: add pipenv support. 3 years ago
README.md Add /kick command and remove botan support (#38) 5 years ago
TRANSLATORS.md translator.md TR 3 years ago
actions.py i18n: logger messages shouldn't be translatable. 3 years ago
bot.py Update bot.py 3 years ago
card.py Revert "new (temp) stickers for r_8 and g_9" 5 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) 3 years ago
errors.py add encoding 6 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 ... 3 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 5 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 Added gamemodes. New mode: Fast. (#44) 5 years ago
settings.py python-telegram-bot v7 compatability + more (#35) 5 years ago
shared_vars.py Add /kick command and remove botan support (#38) 5 years ago
simple_commands.py i18n: add pot generator and ... 3 years ago
start_bot.py add encoding 6 years ago
user_setting.py Added gamemodes. New mode: Fast. (#44) 5 years ago
utils.py Add /kick command and remove botan support (#38) 5 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.
  • 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.