mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
jedi list
This commit is contained in:
parent
2997c2ef94
commit
b22dbfef15
@ -134,7 +134,7 @@ def bot_command_nick(bot, trigger):
|
|||||||
bot.osd(trigger.nick + ", what would you like me to beam you?")
|
bot.osd(trigger.nick + ", what would you like me to beam you?")
|
||||||
return
|
return
|
||||||
|
|
||||||
elif fulltrigger.lower().startswith(tuple(["beam me to"])):
|
elif fulltrigger.lower().startswith("beam me to"):
|
||||||
location = spicemanip.main(triggerargs, "4+") or None
|
location = spicemanip.main(triggerargs, "4+") or None
|
||||||
if location:
|
if location:
|
||||||
bot.osd("locks onto " + trigger.nick + "s coordinates and transports them to " + location, 'action')
|
bot.osd("locks onto " + trigger.nick + "s coordinates and transports them to " + location, 'action')
|
||||||
@ -142,7 +142,7 @@ def bot_command_nick(bot, trigger):
|
|||||||
bot.osd(trigger.nick + ", where would you like me to beam you?")
|
bot.osd(trigger.nick + ", where would you like me to beam you?")
|
||||||
return
|
return
|
||||||
|
|
||||||
elif fulltrigger.lower().startswith(tuple(["beam me up"])):
|
elif fulltrigger.lower().startswith("beam me up"):
|
||||||
bot.osd("locks onto " + trigger.nick + "s coordinates and transports them to the transporter room.", 'action')
|
bot.osd("locks onto " + trigger.nick + "s coordinates and transports them to the transporter room.", 'action')
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ def bot_command_nick(bot, trigger):
|
|||||||
if trigger.is_privmsg:
|
if trigger.is_privmsg:
|
||||||
jedi = None
|
jedi = None
|
||||||
else:
|
else:
|
||||||
jedilist = bot.channels[trigger.sender].privileges.keys()
|
jedilist = list(bot.channels[trigger.sender].privileges.keys())
|
||||||
for nonjedi in [bot.nick, trigger.nick]:
|
for nonjedi in [bot.nick, trigger.nick]:
|
||||||
if nonjedi in jedilist:
|
if nonjedi in jedilist:
|
||||||
jedilist.remove(nonjedi)
|
jedilist.remove(nonjedi)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user