meta.py 文件源码

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

项目:Chiaki-Nanami 作者: Ikusaba-san 项目源码 文件源码
def about(self, ctx):
        """Shows some info about the bot."""
        bot = ctx.bot
        description = 'This page contains some basic but useful info.'
        useful_links = (
            f'[Click here to go to the support server!]({bot.support_invite})\n'
            f'[Click me to invite me to your server!]({bot.invite_url})\n'
            "[Check the code out here (it's fire!)](https://github.com/Ikusaba-san/Chiaki-Nanami)\n"
        )

        embed = (discord.Embed(colour=bot.colour)
                 .set_thumbnail(url=bot.user.avatar_url)
                 .set_author(name=str(bot.user))
                 .add_field(name='Creator', value=bot.creator)
                 .add_field(name='Servers', value=bot.guild_count)
                 .add_field(name='Python', value=platform.python_version())
                 .add_field(name='Library', value=DISCORD_PY_LIB)
                 .add_field(name='Useful links', value=useful_links, inline=False)
                 .set_footer(text=f'Chiaki is on Version {bot.__version__} <3')
                 )
        await ctx.send(embed=embed)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号