From a87bab8b705567ad0722ec721c6669476d4384fb Mon Sep 17 00:00:00 2001 From: Swee Date: Sun, 22 Sep 2024 13:47:08 -0700 Subject: [PATCH] Update sweebot.py --- sweebot.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sweebot.py b/sweebot.py index cc05ab4..5757bae 100644 --- a/sweebot.py +++ b/sweebot.py @@ -21,6 +21,7 @@ class config: output = self.database.fetchall() return output[0][1] except: + print(traceback.format_exc()) return '' # Code snippet from my buddy Irish @@ -218,7 +219,7 @@ while True: nick = text.split(" ")[0][1:].split("!")[0] username = text.split(" ")[0][1:].split("@")[1] try: - perms = config.perms(username) + perms = sbconfig.perms(username) except: perms = "" print(command) @@ -272,8 +273,8 @@ while True: elif command[0] == "$perms": if len(command) == 2: - if config.perms(command[1]) != "": - irc.send_irc(channel, nick + ": permissions of cloak " + command[1] + ": " + config.perms(command[1])) + if sbconfig.perms(command[1]) != "": + irc.send_irc(channel, nick + ": permissions of cloak " + command[1] + ": " + sbconfig.perms(command[1])) else: irc.send_irc(channel, nick + ": The cloak " + command[1] + " Doesn't have permissions.") else: