Update sweebot.py

This commit is contained in:
Swee 2024-09-22 13:18:15 -07:00
parent 26464f4e48
commit 44a41d9150

View file

@ -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}';")