Esempio n. 1
0
def is_ex_bot_channel(message):
    if message.channel.id == EX_BOT_CHANNEL:
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#public_bot`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 2
0
def is_ex_fan_release_channel(message):
    if message.channel.id == EX_FANSUB_CHANNEL:
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#releases_fansubs`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 3
0
def is_troll_command(client, message):
    if message.guild.id == EX_SERVER:
        asyncio.ensure_future(delete_user_message(message))
        if random.randint(1, 3) == 2:
            return True
        asyncio.ensure_future(punish_user(client, message))
    return False
Esempio n. 4
0
def is_ex_bot_channel(message):
    if message.channel.id == "300947822956773376":
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#public_bot`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 5
0
def command_not_allowed(message):
    asyncio.ensure_future(
        private_msg(
            message,
            "This command is atm not allowed. Ask Infi for more information."))
    asyncio.ensure_future(delete_user_message(message))
    return False
Esempio n. 6
0
def is_ex_fan_release_channel(message):
    if message.channel.id == "221920731871707136":
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#releases_fansubs`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 7
0
def is_ex_trap_channel(message):
    if message.channel.id == "356169435360264192":
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#nsfw-traps`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 8
0
def is_ex_yaoi_channel(message):
    if message.channel.id == "328942447784624128":
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#nsfw-yaoi`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 9
0
def is_ex_yuri_channel(message):
    if message.channel.id == "328616388233265154":
        return True
    asyncio.ensure_future(
        private_msg(message,
                    "Stop using this command outside of `#nsfw-yuri`"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 10
0
def is_ex_server(message):
    if message.guild and message.guild.id == EX_SERVER:
        return True
    asyncio.ensure_future(
        private_msg(message, "Stop using this command outside of eX-Server"))
    asyncio.ensure_future(delete_user_message(message))
Esempio n. 11
0
def is_ex_mod_channel(message):
    if message.channel.id == "246368272327507979":
        return True
    asyncio.ensure_future(delete_user_message(message))
    asyncio.ensure_future(private_msg(message, "Stop using this command!"))
Esempio n. 12
0
def is_ex_server(message):
    if message.server and message.server.id == "221919789017202688":
        return True
    asyncio.ensure_future(
        private_msg(message, "Stop using this command outside of EX-Server"))
    asyncio.ensure_future(delete_user_message(message))