main.py 文件源码

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

项目:Godavaru 作者: Godavaru 项目源码 文件源码
def lol(ctx):
    if ctx.message.guild.id == 213468583252983809:
        msg = await ctx.send("Searching channels... (this may take a while)")
        l = 0
        for c in ctx.message.guild.channels:
            if isinstance(c, discord.TextChannel):
                if c.permissions_for(ctx.message.guild.me).read_messages:
                    async for m in c.history():
                        if m.author.id == 132584525296435200 and "lol" in m.content.lower():
                            l = l+1
        await msg.edit(content="Lars' total lol counter so far is: `{}`".format(l))

# force update
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号