Commit 64a1d124 authored by nanahira's avatar nanahira

Merge branch 'master' into tcg_random

parents 194b0a51 e28d3db9
## 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上运行
......
......@@ -2781,7 +2781,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
......
......@@ -3518,7 +3518,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