diff --git a/src/commands/Help.py b/src/commands/Help.py index ebae7de..ae2b796 100644 --- a/src/commands/Help.py +++ b/src/commands/Help.py @@ -16,6 +16,8 @@ def __init__(self, bot : commands.Bot) -> None: description="Shows the available commands" ) async def help(self, ctx): + await ctx.defer() + user = await self.bot.fetch_user(self.ownerID) helpEmbed: discord.Embed = discord.Embed( diff --git a/src/commands/RegisterID.py b/src/commands/RegisterID.py index 97d1802..bdc5ced 100644 --- a/src/commands/RegisterID.py +++ b/src/commands/RegisterID.py @@ -81,6 +81,8 @@ def __init__(self, bot : commands.Bot) -> None: ] ) async def registerID(self, ctx, hiveid : str): + await ctx.defer(ephemeral=True) + disclaimerEmbed: discord.Embed = discord.Embed( title="⚠️ Disclaimer ⚠️", description="By clicking on the button below, you agree to share your Hive ID with the bot. \n\ diff --git a/src/commands/Trigger.py b/src/commands/Trigger.py index 7b5217d..7879969 100644 --- a/src/commands/Trigger.py +++ b/src/commands/Trigger.py @@ -24,6 +24,8 @@ def __init__(self, bot : commands.Bot) -> None: ) @commands.is_owner() async def trigger(self, ctx, code : str): + await ctx.defer(ephemeral=True) + LOGGER.log(f"Invoked command trigger by {ctx.author.name} with code {code}", "INFO") resp, errors = multiFetch(code) diff --git a/src/commands/UnregisterID.py b/src/commands/UnregisterID.py index f8fa1c5..f819bf1 100644 --- a/src/commands/UnregisterID.py +++ b/src/commands/UnregisterID.py @@ -22,6 +22,8 @@ def __init__(self, bot : commands.Bot) -> None: ] ) async def unregisterID(self, ctx, hiveid : str): + await ctx.defer(ephemeral=True) + text: str = "" logText: str = f"UnregisterID command invoked by {ctx.author.name}:" diff --git a/src/commands/UseCode.py b/src/commands/UseCode.py index 15e46f2..40fd934 100644 --- a/src/commands/UseCode.py +++ b/src/commands/UseCode.py @@ -28,6 +28,8 @@ def __init__(self, bot : commands.Bot) -> None: ] ) async def useCode(self, ctx, hiveid : str, code : str): + await ctx.defer(ephemeral=True) + LOGGER.log(f"Usecode command invoked by {ctx.author.name} with Hive ID and code: {code}", "INFO") text: str rCode, resp = fetch(hiveid, code) diff --git a/src/utils/fetcher.py b/src/utils/fetcher.py index f44841e..fe0a15c 100644 --- a/src/utils/fetcher.py +++ b/src/utils/fetcher.py @@ -1,7 +1,7 @@ import requests from requests.exceptions import HTTPError import json -from logger import Logger +from utils.logger import Logger LOGGER = Logger()