mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -05:00
logic
This commit is contained in:
parent
f95a84c11f
commit
b350b4d73d
@ -19,7 +19,6 @@ def query_detection_nick(bot, trigger):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
triggerargs, triggercommand = sopel_triggerargs(bot, trigger, 'nickname_command')
|
triggerargs, triggercommand = sopel_triggerargs(bot, trigger, 'nickname_command')
|
||||||
triggercommand = triggercommand[1:]
|
|
||||||
|
|
||||||
# command issued, check if valid
|
# command issued, check if valid
|
||||||
if not triggercommand or not len(triggercommand):
|
if not triggercommand or not len(triggercommand):
|
||||||
@ -27,6 +26,7 @@ def query_detection_nick(bot, trigger):
|
|||||||
|
|
||||||
if not triggercommand[0] == "?":
|
if not triggercommand[0] == "?":
|
||||||
return
|
return
|
||||||
|
triggercommand = triggercommand[1:]
|
||||||
|
|
||||||
if not letters_in_string(triggercommand):
|
if not letters_in_string(triggercommand):
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user