mirror of
https://github.com/NovaOSS/nova-cord.git
synced 2024-11-25 14:43:58 +01:00
Working on the reset_key
This commit is contained in:
parent
6bf0c7ab5b
commit
3005032489
|
@ -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)
|
|
@ -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')))
|
||||
|
|
Loading…
Reference in a new issue