Update sweebot.py
This commit is contained in:
parent
26464f4e48
commit
44a41d9150
1 changed files with 2 additions and 2 deletions
|
@ -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}';")
|
||||||
|
|
Loading…
Reference in a new issue