Kirk Trombley 1 жил өмнө
parent
commit
6c520015b0

+ 4 - 0
drivers/discord_driver.py

@@ -95,6 +95,10 @@ class DiscordBot(rollbot.Rollbot[discord.Message]):
             sender_name=msg.author.name,
             text=msg.content,
             attachments=attachments,
+            force_command=(
+                isinstance(msg.channel, discord.DMChannel)
+                and msg.author != msg.channel.me
+            ),
         )
 
     async def respond(self, response: rollbot.Response):