mirror of
https://github.com/osmarks/autobotrobot
synced 2025-01-24 14:16:52 +00:00
fix user_config
This commit is contained in:
parent
bf6e413eb6
commit
ef1c20803d
@ -26,7 +26,7 @@ async def achieve(bot: commands.Bot, message: discord.Message, achievement):
|
|||||||
|
|
||||||
uid = message.author.id
|
uid = message.author.id
|
||||||
# ensure the user doesn't have achievements off
|
# ensure the user doesn't have achievements off
|
||||||
conf = await bot.database.execute_fetchone("SELECT * FROM user_config")
|
conf = await bot.database.execute_fetchone("SELECT * FROM user_config WHERE id = ?", (uid,))
|
||||||
if conf and conf["achievement_tracking_enabled"] == 0: return
|
if conf and conf["achievement_tracking_enabled"] == 0: return
|
||||||
if not conf:
|
if not conf:
|
||||||
await bot.database.execute("INSERT INTO user_config VALUES (?, NULL)", (uid,))
|
await bot.database.execute("INSERT INTO user_config VALUES (?, NULL)", (uid,))
|
||||||
|
Loading…
Reference in New Issue
Block a user