cog_info.py 文件源码

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

项目:Godavaru 作者: Godavaru 项目源码 文件源码
def about(self, ctx):
        """Show the stuff about me! I promise I'm interesting uwu

        **Usage:** `g_about [credits]`

        **Permission:** User"""
        args = ctx.message.content
        args = args.split(' ')
        member_count = 0
        server_count = len(self.bot.guilds)
        for server in self.bot.guilds:
            for member in server.members:
                member_count += 1
        abtEm = discord.Embed(title='About Godavaru!', description=abtDesc, color=0x9B59B6)
        abtEm.add_field(name='Version Number', value='{}'.format(self.bot.version), inline=False)
        abtEm.add_field(name='Servers', value=str(server_count))
        abtEm.add_field(name='Users',value=str(member_count) + '\n\n[Invite me](https://goo.gl/chLxM9)\n[Support guild](https://discord.gg/ewvvKHM)\n[Patreon page](https://www.patreon.com/godavaru)', inline=False).set_footer(text="Made with love <3 | Check out g_about credits for special credits.").set_thumbnail(url="https://cdn.discordapp.com/avatars/311810096336470017/fa4daf0662e13f25bdbd09fd18bdc36d.png")
        try:
            if args[1] == "credits":
                embed = discord.Embed(title="Special Recognition",description=""
                                      +"**Primary Developer:** Desiree#3658\n"
                                      +"**Developers:** Yuvira#7655, AttributeError#2513, and Jonas B.#9089\n"
                                      +"**Sensei:** Yuvira#7655\n"
                                      +"**Emotional Support & Boyfriend:** MrLar#8117\n"
                                      +"**Inspiration:** Kodehawa#3457 (`and MantaroBot, if it wasn't for that project I probably would never have tried to make a bot`)\n\n"
                                      +"And thanks to everyone who has used the bot. Much love <3",
                                      color=0x1abc9c)
            else:
                embed = abtEm
        except IndexError:
            embed = abtEm
        await ctx.send(content=None, embed=embed)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号