Пример #1
0
async def normq(ctx):
    blueTeam, _ = Queue.getTeamList()
    await ctx.send(
        "Duis says I am not supposed to queue, but I don't listen to players worse than me..."
    )
    await ctx.send("!q")
    if (len(blueTeam) >= 1):
        await sendMessage(ctx, EasterEggs.NormQ(), "active")
    else:
        await sendMessage(
            ctx, EasterEggs.NormQ(), "queue" if len(blueTeam) == 0
            and Queue.getQueueLength() != 6 else "popped")
Пример #2
0
async def on_message(message: discord.Message):
    if (message.author != client.user):
        # message was a reply
        if (message.reference is not None):
            if (any(queue_cmd == message.content.split(" ")[0][1:]
                    for queue_cmd in valid_commands)):
                replied_to_msg = await message.channel.fetch_message(
                    message.reference.message_id)
                replied_to_msg_embeds = replied_to_msg.embeds

                if (not any(embed.title == "Teams are Set!"
                            for embed in replied_to_msg_embeds)):
                    await replied_to_msg.delete()

                await client.process_commands(message)
                await message.delete()

            elif (EasterEggs.commandIsEasterEgg(message)):
                await client.process_commands(message)

        elif (EasterEggs.commandIsEasterEgg(message)):
            await client.process_commands(message)
            return
Пример #3
0
async def eight_ball(ctx):
    await ctx.reply(EasterEggs.EightBall(ctx.message.author))
Пример #4
0
async def teams(ctx):
    await ctx.reply(EasterEggs.Teams())
Пример #5
0
async def coolio(ctx):
    await ctx.reply(EasterEggs.Coolio())
Пример #6
0
async def nodought(ctx):
    await ctx.reply(EasterEggs.NoDought())
Пример #7
0
async def sad(ctx):
    await ctx.reply(EasterEggs.Sad())
Пример #8
0
async def h(ctx):
    await ctx.send(EasterEggs.H())
Пример #9
0
async def don(ctx):
    await ctx.reply(EasterEggs.Don())
Пример #10
0
async def furry(ctx):
    await ctx.reply(EasterEggs.Furry())
Пример #11
0
async def duis(ctx):
    await ctx.reply(EasterEggs.Duis())
Пример #12
0
async def zappa(ctx):
    await ctx.reply(EasterEggs.Zappa())
Пример #13
0
async def pika(ctx):
    await ctx.reply(EasterEggs.Pika())
Пример #14
0
async def turhols(ctx):
    await ctx.reply(EasterEggs.Turhols())
Пример #15
0
async def smh(ctx):
    await ctx.reply(EasterEggs.Smh())
Пример #16
0
async def f**k(ctx):
    await ctx.reply(EasterEggs.F**k())
Пример #17
0
async def oops(ctx):
    await ctx.send(EasterEggs.Oops())
Пример #18
0
async def daffy(ctx):
    await ctx.reply(EasterEggs.Daffy())
Пример #19
0
async def giddy(ctx):
    await ctx.reply(EasterEggs.Giddy())
Пример #20
0
async def twan(ctx):
    await ctx.reply(EasterEggs.Twan())