No description
Find a file
2023-10-04 15:35:10 +08:00
.github/workflows feat(ci): build docker images on push and on the schedule 2023-06-10 18:12:59 +02:00
images 🍱 Add all colorblind images and helper scripts 2023-04-09 15:30:05 +02:00
locales 🐛 Add missing comma 2023-08-06 22:32:52 +02:00
test Fix DeckEmptyError 2021-03-10 14:40:39 +08:00
.gitignore 🍱 Add all colorblind images and helper scripts 2023-04-09 15:30:05 +02:00
actions.py fix: SyntaxWarning: "is" with a literal. Did you mean "=="? 2023-06-07 13:24:22 +02:00
AUTHORS.md I break and I fix 2021-11-16 23:51:41 -03:00
bot.py allow only one game perchat 2023-10-04 15:35:10 +08:00
card.py 💄 Use new colorblind-accessable card stickers 2023-04-09 15:55:28 +02:00
commandlist.txt Create commandlist.txt 2021-01-24 12:29:01 +00:00
config.json.example Add /kick command and remove botan support () 2017-12-07 09:27:51 +01:00
config.py Add /kick command and remove botan support () 2017-12-07 09:27:51 +01:00
database.py Added gamemodes. New mode: Fast. () 2017-11-27 17:59:19 +01:00
deck.py 🐛 Fix bluffing for +4s that have been played before () 2019-06-10 20:53:10 +02:00
docker-compose.yml latest python in Dockerfile & add docker compose 2022-11-29 13:40:03 +01:00
Dockerfile latest python in Dockerfile & add docker compose 2022-11-29 13:40:03 +01:00
errors.py add encoding 2016-05-19 23:15:46 +02:00
game.py fix: SyntaxWarning: "is" with a literal. Did you mean "=="? 2023-06-07 13:24:22 +02:00
game_manager.py fix: SyntaxWarning: "is" with a literal. Did you mean "=="? 2023-06-07 13:24:22 +02:00
genpot.sh i18n: add pot generator and ... 2019-08-28 15:07:20 +08:00
internationalization.py fix: SyntaxWarning: "is" with a literal. Did you mean "=="? 2023-06-07 13:24:22 +02:00
LICENSE move to AGPL () 2016-05-08 14:37:25 +02: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
Pipfile 🍱 Add all colorblind images and helper scripts 2023-04-09 15:30:05 +02:00
Pipfile.lock 🍱 Add all colorblind images and helper scripts 2023-04-09 15:30:05 +02:00
player.py fix: SyntaxWarning: "is" with a literal. Did you mean "=="? 2023-06-07 13:24:22 +02:00
README.md Update README.md 2021-01-24 12:29:31 +00:00
requirements.txt Update python-telegram-bot to 13 2022-02-10 15:00:51 +08:00
results.py Update results.py 2019-10-18 15:27:47 +02:00
settings.py Update python-telegram-bot to 13 2022-02-10 15:00:51 +08:00
shared_vars.py Update python-telegram-bot to 13 2022-02-10 15:00:51 +08:00
simple_commands.py Update python-telegram-bot to 13 2022-02-10 15:00:51 +08:00
start_bot.py add encoding 2016-05-19 23:15:46 +02:00
TRANSLATORS.md 📝 Credit Lê Minh Sơn for vi_VN translation 2023-03-05 15:18:20 +01:00
user_setting.py Added gamemodes. New mode: Fast. () 2017-11-27 17:59:19 +01:00
utils.py 🐛 Use v13 signature for error handler 2022-12-07 14:06:58 +01:00

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.