diff options
author | 2020-12-19 22:50:00 +0000 | |
---|---|---|
committer | 2020-12-19 22:50:00 +0000 | |
commit | 43a963e230fd3e9e52df0acd30b7a3e4710de182 (patch) | |
tree | 538d6f50d67c78dec91094acbcb4c0d8e4823873 | |
parent | Version bump to 1.1.0 (diff) | |
parent | Remove whitespace (diff) |
Merge branch 'master' of github.com:python-discord/metricity
-rw-r--r-- | .github/CODEOWNERS | 2 | ||||
-rw-r--r-- | metricity/bot.py | 7 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..cf343e5 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Request Joe for any PR +* @jb3 diff --git a/metricity/bot.py b/metricity/bot.py index 984fb3a..71f2c19 100644 --- a/metricity/bot.py +++ b/metricity/bot.py @@ -286,6 +286,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 @@ -328,7 +331,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() @@ -351,7 +354,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() |