chore: alright, I will remove this

This commit is contained in:
2025-07-13 18:17:17 +02:00
parent 4b326bda7e
commit bf518b06ed
5 changed files with 6 additions and 7 deletions

View File

@@ -181,4 +181,4 @@ async def forward_to_google_api(
mention_author=True, mention_author=True,
) )
# Add a reaction to the reply message (if the user decides to delete it) # Add a reaction to the reply message (if the user decides to delete it)
await reply_message.add_reaction("\U0000274C") await reply_message.add_reaction("\U0000274c")

View File

@@ -79,7 +79,7 @@ async def setup(bot):
guild=discord.Object(id=GUILD_ID), guild=discord.Object(id=GUILD_ID),
) )
async def stats( async def stats(
interaction: discord.Interaction, game: Literal["iw4", "s1", "iw6", "t7", "all"] interaction: discord.Interaction, game: Literal["s1", "iw6", "t7", "all"]
): ):
if game == "all": if game == "all":
stats_message = await compile_stats() stats_message = await compile_stats()
@@ -120,7 +120,7 @@ async def setup(bot):
response, ephemeral=False response, ephemeral=False
) )
# Add a reaction to the reply message (if the user decides to delete it) # Add a reaction to the reply message (if the user decides to delete it)
await reply_message.add_reaction("\U0000274C") await reply_message.add_reaction("\U0000274c")
break break
else: else:
await interaction.response.send_message( await interaction.response.send_message(

View File

@@ -9,7 +9,6 @@ from database import add_user_to_role
BOT_LOG = 1112049391482703873 BOT_LOG = 1112049391482703873
GENERAL_CHANNEL = 1110531063744303138 GENERAL_CHANNEL = 1110531063744303138
FAILED_EMBED_MESSAGE = "https://cdn.discordapp.com/attachments/1112049391482703873/1375848830175547482/download_3.png"
CRAZY_USER_ID = 1319364607487512658 CRAZY_USER_ID = 1319364607487512658
CRAZY_URL = "https://cdn.discordapp.com/attachments/1119371841711112314/1329770453744746559/download.png" CRAZY_URL = "https://cdn.discordapp.com/attachments/1119371841711112314/1329770453744746559/download.png"
@@ -432,5 +431,5 @@ async def handle_message(message, bot):
and not message.embeds and not message.embeds
and message.channel.id == GENERAL_CHANNEL and message.channel.id == GENERAL_CHANNEL
): ):
await message.reply(FAILED_EMBED_MESSAGE) await message.reply("You do not have embed permissions on this server")
return return

View File

@@ -7,7 +7,7 @@ async def handle_reaction_add(reaction, user, bot):
if user == bot.user: if user == bot.user:
return return
if reaction.emoji != "\U0000274C": if reaction.emoji != "\U0000274c":
return return
if reaction.message.author != bot.user: if reaction.message.author != bot.user:

View File

@@ -27,7 +27,7 @@ async def fetch_game_stats(game: str):
async def compile_stats(): async def compile_stats():
games = ["iw4", "s1", "iw6", "t7"] games = ["s1", "iw6", "t7"]
stats_message = "**Stats for all games:**\n" stats_message = "**Stats for all games:**\n"
for game in games: for game in games:
data = await fetch_game_stats(game) data = await fetch_game_stats(game)