info.py 文件源码

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

项目:csss-minion 作者: henrymzhao 项目源码 文件源码
def __init__(self, bot):
        self.bot = bot

    # Voting done, command disabled
    # @commands.command()
    # async def vote():
    #     embed = discord.Embed(colour=discord.Colour(0xdc4643), timestamp=datetime.datetime.utcfromtimestamp(1490339531))

    #     embed.set_thumbnail(url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")
    #     embed.set_author(name="CSSS-Minion", icon_url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")
    #     embed.set_footer(text="CSSS-Minion", icon_url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")

    #     embed.add_field(name="CSSS Voting Information", value="The voting period for the Computing Science Student Society General Elections for the 2017-2018 term begins on Monday March 20th, 2017 at 11:59 PM and closes on Monday March 27th, 2017 at 11:59 PM. \n\nVisit https://www.sfu.ca/~pjalali/speeches.html to view candidate speeches, and http://websurvey.sfu.ca/survey/273372327 to vote.")

    #     await bot.say(embed=embed)

    # @commands.command(pass_context = True)
    # async def voteresult(self, ctx):
    #     """Return the voting results from the previous CSSS election."""
    #     if ctx.invoked_subcommand is None:
    #         embed = discord.Embed(title="CSSS Exec Positions", colour=discord.Colour(0xdc4643), timestamp=datetime.datetime.utcfromtimestamp(1490339531))

    #         embed.set_thumbnail(url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")
    #         embed.set_author(name="CSSS-Minion", icon_url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")
    #         embed.set_footer(text="CSSS-Minion", icon_url="https://cdn.discordapp.com/app-icons/293110345076047893/15e2a6722723827ff9bd53ca787df959.jpg")

    #         embed.add_field(name="President", value="David Miiller")
    #         embed.add_field(name="Vice President", value="Jon Loewen")
    #         embed.add_field(name="Treasurer", value="Dustin Cao")
    #         embed.add_field(name="Director of Resources", value="Kiarash Mirsalehi")
    #         embed.add_field(name="Director of Events", value="Brendan Chan")
    #         embed.add_field(name="Director of Communications", value="Henry Zhao")
    #         embed.add_field(name="Director of Archives", value="Josh Wu")
    #         embed.add_field(name="Source Code", value="https://github.com/henrymzhao/csss-minion/")

    #         await self.bot.say(embed=embed)


    # the following several functions are inspired by formatterhelper and default_help command
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号