Working on the reset_key

This commit is contained in:
henceiusegentoo 2023-09-19 23:58:20 +02:00
parent 6bf0c7ab5b
commit 3005032489
2 changed files with 11 additions and 0 deletions

View file

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

View file

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