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
评论列表
文章目录