Skip to content

Leozgu/UNO-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

项目来源jh0ker/mau_mau_bot

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 启动机器人. 或者 nohup python3 bot.py & 后台运行机器人

其他

详细教程

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages