|
@@ -36,11 +36,9 @@ 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_command(self, raw: discord.Message, message: rollbot.Message, command: str):
|
|
|
+ async with raw.channel.typing():
|
|
|
+ return await super().on_command(raw, message, command)
|
|
|
|
|
|
async def on_reaction_add(self, reaction: discord.Reaction, user: discord.Member | discord.User):
|
|
|
sender_id = getattr(reaction.message.author, "id", None)
|