general.py 文件源码

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

项目:Dota2HelperBot 作者: enoch-ng 项目源码 文件源码
def changename(self, ctx):
        """Chooses a random new nickname for the bot (5s cooldown).

        Is not affected by Octarine Core, Refresher Orb, Rearm, or cooldown reduction talents."""
        if self.get_auto_change_nick(ctx.message.server):
            await self.bot.say("Too long have I endured this moniker. It is time to begin anew.")
            await self.set_nick(self.choose_nick())
        else:
            await self.bot.say("The automatic name changing setting is off. Type `%sautochangename on` to enable it." % self.bot.get_prefix())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号