Commit e28d3db9 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents bae77dff 45ff6fa0
## SRVPro
一个YGOPro服务器。
现用于[萌卡](https://mycard.moe/)[YGOPro 233服](https://ygo233.com/)
现用于[萌卡](https://mycard.moe/)[YGOPro 233服](https://ygo233.com/)[YGOPro Koishi服](http://koishi.222diy.gdn/)
### 支持功能
* Linux上运行
......
......@@ -2740,7 +2740,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
ygopro.stoc_send_random_tip(client) if settings.modules.tips.enabled
when '/ai'
if settings.modules.windbot.enabled
if settings.modules.windbot.enabled and client.is_host and !settings.modules.challonge.enabled
if name = cmd[1]
windbot = _.sample _.filter windbots, (w)->
w.name == name or w.deck == name
......
......@@ -3468,7 +3468,7 @@
}
break;
case '/ai':
if (settings.modules.windbot.enabled) {
if (settings.modules.windbot.enabled && client.is_host && !settings.modules.challonge.enabled) {
if (name = cmd[1]) {
windbot = _.sample(_.filter(windbots, function(w) {
return w.name === name || w.deck === name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment