Update cc/give
All checks were successful
Check syntax / check (push) Successful in 6s

This commit is contained in:
Nova Cat 2024-12-28 18:41:29 -08:00
parent 2a8f19f981
commit fdcd44ef16

View file

@ -2,14 +2,7 @@ from sys import argv
import sqlite3
conn = sqlite3.connect("/home/sweebotirc/sbirc.db")
database = conn.cursor()
def getperms(cloak: str):
try:
database.execute("SELECT * FROM users WHERE username = '"+ cloak + "';")
output = database.fetchall()
return output[0][1]
except:
return ''
if getperms(argv[2]) == "full":
if argv[2] == "full":
if len(argv) == 5:
if argv[3] == argv[2]:
print(argv[1] + ": You wanna give yourself permissions!?")