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')))