/UNO_CN_Bot

Telegram UNO Bot, Chinese is the default language(默认语言为中文). (fork from jh0ker/mau_mau_bot)

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

UNO_CN_Bot

License: AGPL v3

一个可以在群里玩UNO的Telegram机器人。

创建机器人所需环境:

Setup

  • @BotFather获取机器人token,并填入config.json.
  • locales文件夹下,执行compile.sh,将所有语言文件由.po转化为.mo. 或执行: find . -maxdepth 2 -type d -name 'LC_MESSAGES' -exec bash -c 'msgfmt {}/unobot.po -o {}/unobot.mo' \;.
  • 在BotFather中为机器人启用 /setinline/setinlinefeedback.
  • 安装模块 (建议使用 virtualenv ): pip install -r requirements.txt

你可以在config.json中更改一些游戏参数,如回合时间、最少玩家数量和默认游戏模式

目前可用游戏模式: Classic , Sanic and Wild. (使用 /modes 命令查看模式内容)

Run

执行 python3 bot.py 启动机器人.