Commit 45ff6fa0 authored by nanahira's avatar nanahira

no summon windbot in challonge

parent a705a79b
...@@ -2502,7 +2502,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)-> ...@@ -2502,7 +2502,7 @@ ygopro.ctos_follow 'CHAT', true, (buffer, info, client, server)->
ygopro.stoc_send_random_tip(client) if settings.modules.tips.enabled ygopro.stoc_send_random_tip(client) if settings.modules.tips.enabled
when '/ai' when '/ai'
if settings.modules.windbot.enabled and client.is_host if settings.modules.windbot.enabled and client.is_host and !settings.modules.challonge.enabled
if name = cmd[1] if name = cmd[1]
windbot = _.sample _.filter windbots, (w)-> windbot = _.sample _.filter windbots, (w)->
w.name == name or w.deck == name w.name == name or w.deck == name
......
...@@ -3102,7 +3102,7 @@ ...@@ -3102,7 +3102,7 @@
} }
break; break;
case '/ai': case '/ai':
if (settings.modules.windbot.enabled && client.is_host) { if (settings.modules.windbot.enabled && client.is_host && !settings.modules.challonge.enabled) {
if (name = cmd[1]) { if (name = cmd[1]) {
windbot = _.sample(_.filter(windbots, function(w) { windbot = _.sample(_.filter(windbots, function(w) {
return w.name === name || w.deck === name; 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