1
0

2 Commits 20eeacb169 ... 00bda5210f

Autor SHA1 Nachricht Datum
  baumsplitter41 00bda5210f automatically adding reaction to the embed vor 3 Tagen
  baumsplitter41 0c9def481a editing the placeholder vor 3 Tagen
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  1. 6 1
      VPD_BOT/cogs/matesearch.py

+ 6 - 1
VPD_BOT/cogs/matesearch.py

@@ -31,7 +31,7 @@ class Matesearch(commands.Cog):
                 min_values=1,
                 max_values=1))"""
             self.add_item(discord.ui.InputText(label="Tag", placeholder="Montag, Dienstag, Mittwoch, Donnerstag, Freitag", required=False, ))
-            self.add_item(discord.ui.InputText(label="Time", placeholder="Insert the estimated time."))
+            self.add_item(discord.ui.InputText(label="Zeit", placeholder="19 Uhr"))
             
         #funktions to load the config and get the channels
         def _load_config(self):
@@ -79,6 +79,11 @@ class Matesearch(commands.Cog):
             await interaction.response.send_message("Your search for players has been submitted.", ephemeral=True)
             search_channel = self._get_channel()
             await search_channel.send(embeds=[embed])
+            try:
+                await embed.add_reaction("✅")
+                await embed.add_reaction("❌")
+            except Exception as e:
+                await interaction.respond(f"Failed to add reaction: {e}", ephemeral=True)
             await search_channel.send(f"<@&{role}>")
 
     #Slash command to trigger the Modal form