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)
评论列表
文章目录