diff --git a/cord/accounts.py b/cord/accounts.py index 58093d0..3eea3db 100644 --- a/cord/accounts.py +++ b/cord/accounts.py @@ -125,8 +125,10 @@ Please report this issue to the staff!""", ephemeral=True) async def reset_key(interaction): account = await get_account(interaction) - + if not account: - return + interaction.message.reply("""You don't have an account yet!""") - print(account) \ No newline at end of file + print(account) + + interaction.message.reply("""1""") \ No newline at end of file diff --git a/cord/bot.py b/cord/bot.py index 863053c..c9d5172 100644 --- a/cord/bot.py +++ b/cord/bot.py @@ -126,7 +126,7 @@ async def music(interaction: nextcord.Interaction): @bot.slash_command(description='Get yourself a new API key') async def resetkey(interaction: nextcord.Interaction): - ... + return await accounts.reset_key(interaction) async def status_update(): guild = bot.get_guild(int(os.getenv('DISCORD_GUILD')))