mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
identify check
This commit is contained in:
parent
70fcf7d1f4
commit
977b9aa41f
@ -295,11 +295,9 @@ def trigger_runstatus_query(bot, trigger, botcom):
|
|||||||
|
|
||||||
# registered nick, but not identified
|
# registered nick, but not identified
|
||||||
else:
|
else:
|
||||||
message = "None"
|
if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]:
|
||||||
# if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]:
|
message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot."
|
||||||
# message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot."
|
return trigger_cant_run(bot, trigger, botcom, message)
|
||||||
# return trigger_cant_run(bot, trigger, botcom, message)
|
|
||||||
# TODO
|
|
||||||
|
|
||||||
# don't run commands that are disabled in channels
|
# don't run commands that are disabled in channels
|
||||||
if not trigger.is_privmsg:
|
if not trigger.is_privmsg:
|
||||||
@ -362,11 +360,9 @@ def trigger_runstatus(bot, trigger, botcom):
|
|||||||
|
|
||||||
# registered nick, but not identified
|
# registered nick, but not identified
|
||||||
else:
|
else:
|
||||||
message = "None"
|
if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]:
|
||||||
# if str(trigger.nick).lower() not in [x.lower() for x in botusers.dict["identified"]]:
|
message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot."
|
||||||
# message = "Your nickname appears to be registered with IRC services. However, you have not identified. Identifying may take a few minutes to process with the bot."
|
return trigger_cant_run(bot, trigger, botcom, message)
|
||||||
# return trigger_cant_run(bot, trigger, botcom, message)
|
|
||||||
# TODO
|
|
||||||
|
|
||||||
# if botcom.dict["hyphen_arg"]:
|
# if botcom.dict["hyphen_arg"]:
|
||||||
# return False
|
# return False
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user