1
0
Fork 0
forked from swee/MeowNex

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: class config:
def __init__(self): def __init__(self):
import sqlite3 import sqlite3
conn = sqlite3.connect(cwd + "/sbirc.db") self.conn = sqlite3.connect(cwd + "/sbirc.db")
self.database = conn.cursor() self.database = self.conn.cursor()
def perms(self, cloak: str): def perms(self, cloak: str):
try: try:
self.database.execute(f"SELECT * FROM users WHERE username = '{cloak}';") self.database.execute(f"SELECT * FROM users WHERE username = '{cloak}';")