From 3a4b866eec028203c70db2edbbb0181ddfa4ac3b Mon Sep 17 00:00:00 2001 From: henceiusegentoo Date: Wed, 20 Sep 2023 00:00:02 +0200 Subject: [PATCH] Integration --- cord/accounts.py | 8 +++++--- cord/bot.py | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) 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')))