diff options
| author | 2020-12-19 17:54:57 +0000 | |
|---|---|---|
| committer | 2020-12-19 17:54:57 +0000 | |
| commit | 115f97daa87715a3f82faeeaa1ee88611586caaa (patch) | |
| tree | 67ebc8d7b426ca44172d0e77590be26baf227c6a | |
| parent | Create CODEOWNERS (diff) | |
Don't track bot messages
| -rw-r--r-- | metricity/bot.py | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/metricity/bot.py b/metricity/bot.py index ffdef0c..63d06ab 100644 --- a/metricity/bot.py +++ b/metricity/bot.py @@ -304,6 +304,9 @@ async def on_message(message: DiscordMessage) -> None:      if not message.guild:          return +     +    if message.author.bot: +        return      if message.guild.id != BotConfig.guild_id:          return @@ -347,7 +350,7 @@ async def opt_in(ctx: Context) -> None:              f"Sorry {ctx.author.mention}, I don't have a record for you yet"              " which probably means you joined recently enough to have missed"              " the user synchronisation. Please check back soon or contact" -            " `joe#1337` for additional help." +            " `joe#6000` for additional help."          )      await user.update(opt_out=False).apply() @@ -370,7 +373,7 @@ async def opt_out(ctx: Context) -> None:              f"Sorry {ctx.author.mention}, I don't have a record for you yet"              " which probably means you joined recently enough to have missed"              " the user synchronisation. Please check back soon or contact" -            " `joe#1337` for additional help." +            " `joe#6000` for additional help."          )      await user.update(opt_out=True).apply()  |