Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/commands/Help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 2 additions & 0 deletions src/commands/RegisterID.py
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
2 changes: 2 additions & 0 deletions src/commands/Trigger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 2 additions & 0 deletions src/commands/UnregisterID.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}:"

Expand Down
2 changes: 2 additions & 0 deletions src/commands/UseCode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fetcher.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
from requests.exceptions import HTTPError
import json
from logger import Logger
from utils.logger import Logger

LOGGER = Logger()

Expand Down