def about(self, ctx):
"""Display bot information."""
description = 'Uptime: {}\n[Invite Link]({})'.format(self.bot.get_uptime(brief=True),
self.oauth_url)
embed = discord.Embed(description=description)
embed.set_author(name=str(self.bot.app.owner), icon_url=self.bot.app.owner.avatar_url)
embed.add_field(name='Guilds', value=str(len(self.bot.guilds)))
source = config.source
if source:
embed.add_field(name='Source', value=f'See [here]({source}).')
embed.set_footer(text='Made with discord.py | Online Since', icon_url='http://i.imgur.com/5BFecvA.png')
embed.timestamp = self.bot.start_time
await ctx.send(embed=embed)
评论列表
文章目录