From b22dbfef15648b45cecec7f5182fc0e785f61265 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 9 May 2019 14:51:27 -0400 Subject: [PATCH] jedi list --- sopel_modules/SpiceBot_AI/AI.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sopel_modules/SpiceBot_AI/AI.py b/sopel_modules/SpiceBot_AI/AI.py index 322fe57..682e1fa 100644 --- a/sopel_modules/SpiceBot_AI/AI.py +++ b/sopel_modules/SpiceBot_AI/AI.py @@ -134,7 +134,7 @@ def bot_command_nick(bot, trigger): bot.osd(trigger.nick + ", what would you like me to beam you?") return - elif fulltrigger.lower().startswith(tuple(["beam me to"])): + elif fulltrigger.lower().startswith("beam me to"): location = spicemanip.main(triggerargs, "4+") or None if location: 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?") 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') return @@ -153,7 +153,7 @@ def bot_command_nick(bot, trigger): if trigger.is_privmsg: jedi = None else: - jedilist = bot.channels[trigger.sender].privileges.keys() + jedilist = list(bot.channels[trigger.sender].privileges.keys()) for nonjedi in [bot.nick, trigger.nick]: if nonjedi in jedilist: jedilist.remove(nonjedi)