No description
images | ||
locales | ||
test | ||
.gitignore | ||
AUTHORS.md | ||
bot.py | ||
card.py | ||
chat_setting.py | ||
config.json.example | ||
database.py | ||
deck.py | ||
errors.py | ||
game.py | ||
game_manager.py | ||
internationalization.py | ||
LICENSE | ||
logo.png | ||
mwt.py | ||
player.py | ||
README.md | ||
requirements.txt | ||
results.py | ||
settings.py | ||
shared_vars.py | ||
simple_commands.py | ||
start_bot.py | ||
TRANSLATORS.md | ||
user_setting.py | ||
utils.py |
UNO Bot
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:
- Python (tested with 3.4+)
- The python-telegram-bot module
- Pony ORM
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 scriptcompile.sh
located in thelocales
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
Then run the bot with python3 bot.py
.
Code documentation is minimal but there.