diff --git a/sweebot.py b/sweebot.py index 391ef10..0f11818 100644 --- a/sweebot.py +++ b/sweebot.py @@ -13,8 +13,8 @@ import threading class config: def __init__(self): import sqlite3 - conn = sqlite3.connect(cwd + "/sbirc.db") - self.database = conn.cursor() + self.conn = sqlite3.connect(cwd + "/sbirc.db") + self.database = self.conn.cursor() def perms(self, cloak: str): try: self.database.execute(f"SELECT * FROM users WHERE username = '{cloak}';")