From 3005032489201cd362c24e97210195094a84edaf Mon Sep 17 00:00:00 2001 From: henceiusegentoo Date: Tue, 19 Sep 2023 23:58:20 +0200 Subject: [PATCH] Working on the reset_key --- cord/accounts.py | 8 ++++++++ cord/bot.py | 3 +++ 2 files changed, 11 insertions(+) diff --git a/cord/accounts.py b/cord/accounts.py index 40e8398..58093d0 100644 --- a/cord/accounts.py +++ b/cord/accounts.py @@ -122,3 +122,11 @@ Please report this issue to the staff!""", ephemeral=True) raise exc await embedder.ok(interaction, f"""Successfully set the credits of {user.name} to **{amount}**.""", ephemeral=True) + +async def reset_key(interaction): + account = await get_account(interaction) + + if not account: + return + + print(account) \ No newline at end of file diff --git a/cord/bot.py b/cord/bot.py index 40279ab..863053c 100644 --- a/cord/bot.py +++ b/cord/bot.py @@ -124,6 +124,9 @@ async def music(interaction: nextcord.Interaction): return await embedder.ok(interaction, text) return await embedder.error(interaction, 'No one is listening to anything right now.') +@bot.slash_command(description='Get yourself a new API key') +async def resetkey(interaction: nextcord.Interaction): + ... async def status_update(): guild = bot.get_guild(int(os.getenv('DISCORD_GUILD')))