def on_message(self, message: discord.Message):
# do not handle invisibility in dms
if isinstance(message.channel, discord.abc.PrivateChannel):
return
if await self.bot.config_is_set(message.guild, 'invisible_nag'):
if message.author.status is discord.Status.offline:
reply = 'Hey {0.mention}! You\'re invisible. Stop being invisible, please. Thanks.'
await message.channel.send(reply.format(message.author))
评论列表
文章目录