base.py 文件源码

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

项目:Asurix-bot 作者: Beafantles 项目源码 文件源码
def set_name(self, *name):
        """Sets bot's name
        Parameters:
            *name: The name you want to set for the bot

        Example: [p]set_name Beaftek's bot"""
        try:
            await self.bot.edit_profile(username=" ".join(name))
            await self.bot.say("Done!")
        except discord.HTTPException:
            await self.bot.say("HTTP Exception")
        except discord.InvalidArgument:
            await self.bot.say("Wrong name format (too long?)")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号