mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
Format with black
This commit is contained in:
@@ -19,6 +19,7 @@ os.environ[
|
||||
with open(os.path.abspath(os.path.join("src", "prompts", "functions.json"))) as f:
|
||||
functions = json.load(f)
|
||||
|
||||
|
||||
def debug(message):
|
||||
# if the os is windows, we logging.info(message), if
|
||||
if os.name == "nt":
|
||||
@@ -26,18 +27,21 @@ def debug(message):
|
||||
else:
|
||||
print(message)
|
||||
|
||||
|
||||
def ctx_to_guid(ctx):
|
||||
if ctx.guild is None:
|
||||
return ctx.author.id
|
||||
else:
|
||||
return ctx.guild.id
|
||||
|
||||
|
||||
def mg_to_guid(mg):
|
||||
if mg.guild is None:
|
||||
return mg.author.id
|
||||
else:
|
||||
return mg.guild.id
|
||||
|
||||
|
||||
con_data = sqlite3.connect("./database/data.db")
|
||||
curs_data = con_data.cursor()
|
||||
con_premium = sqlite3.connect("./database/premium.db")
|
||||
|
||||
Reference in New Issue
Block a user