Prechádzať zdrojové kódy

temp revert typing indicator while I figure out the right way to handle it

Kirk Trombley 2 rokov pred
rodič
commit
5f41ef9110
1 zmenil súbory, kde vykonal 5 pridanie a 5 odobranie
  1. 5 5
      drivers/discord_driver.py

+ 5 - 5
drivers/discord_driver.py

@@ -36,11 +36,11 @@ class DiscordBot(rollbot.Rollbot[discord.Message]):
                 return None
         return cfg
     
-    async def on_message(self, incoming: discord.Message):
-        if incoming.author.bot:
-            return await super().on_message(incoming)
-        async with incoming.channel.typing():
-            return await super().on_message(incoming)
+    # async def on_message(self, incoming: discord.Message):
+    #     if incoming.author.bot:
+    #         return await super().on_message(incoming)
+    #     async with incoming.channel.typing():
+    #         return await super().on_message(incoming)
 
     async def on_reaction_add(self, reaction: discord.Reaction, user: discord.Member | discord.User):
         sender_id = getattr(reaction.message.author, "id", None)