mod.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:dogbot 作者: slice 项目源码 文件源码
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))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号