general.py 文件源码

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

项目:spirit 作者: jgayfer 项目源码 文件源码
def donate(self, ctx):
        """Support the continued development of Spirit!"""
        manager = MessageManager(self.bot, ctx.author, ctx.channel, ctx.prefix, [ctx.message])
        e = discord.Embed(colour=constants.BLUE)

        text = ("Spirit is a work of love that has taken countless hours to develop. Your donation "
              + "will go towards server hosting costs, development tools, and if you donate "
              + "monthly, will also earn you some special privelges on the Spirit Discord server!\n\n"
              + "Donate once: https://www.paypal.me/spiritbot\n"
              + "Donate monthly: https://www.patreon.com/spiritbot")
        reward_1 = "- Colored name on the Spirit Discord server"
        reward_2 = ("- Patron role and colored name on the Spirit Discord server\n"
                  + "- Access to the developer blog on Patreon and the Spirit Discord server\n"
                  + "- Access to a patron only channel on the Spirit Discord server which includes sneak peeks of new features!")
        reward_3 = ("- All rewards from the previous tier\n"
                  + "- Your own personalized message built right into Spirit!")

        e.description = text
        e.add_field(name="$1/Month", value=reward_1)
        e.add_field(name="$5/Month", value=reward_2)
        e.add_field(name="$10/Month", value=reward_3)

        await manager.say(e, embed=True, delete=False)
        await manager.clear()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号