Пример #1
0
async def catbot_admin_check_admin_state(ctx, *, message: str):
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return

    await client.send_message(
        ctx.message.channel,
        'Yeah!! :D' if is_admin(int(message)) else 'Nah :c')
Пример #2
0
async def catbot_admin_check_admin_state(ctx, *, message: str):
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return

    await client.send_message(
        ctx.message.channel,
        'Yeah!! :D' if is_admin(int(message)) else 'Nah :c'
    )
Пример #3
0
async def catbot_admin_chat(ctx, channel_id: str, *, message: str):
    user = ctx.message.author
    channel = get_channel_by_id(client, channel_id)

    if not user or not channel or not is_admin(int(user.id)):
        return
    await client.send_message(channel, message)
Пример #4
0
async def catbot_admin_chat(ctx, channel_id: str, *, message: str):
    user = ctx.message.author
    channel = get_channel_by_id(client, channel_id)

    if not user or not channel or not is_admin(int(user.id)):
        return
    await client.send_message(channel, message)
Пример #5
0
async def catbot_admin_join_v(ctx, channel_id: str):
    global active_voice_channel

    user = ctx.message.author
    channel = get_channel_by_id(client, channel_id)

    if not user or not is_admin(int(user.id)):
        return

    await _reset_voice_state()
    active_voice_channel = await client.join_voice_channel(channel)
Пример #6
0
async def catbot_admin_join_v(ctx, channel_id: str):
    global active_voice_channel

    user = ctx.message.author
    channel = get_channel_by_id(client, channel_id)

    if not user or not is_admin(int(user.id)):
        return

    await _reset_voice_state()
    active_voice_channel = await client.join_voice_channel(channel)
Пример #7
0
async def catbot_admin_t_reply(ctx):
    global client_reply_state
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return

    # Toggle replies on or off
    client_reply_state = not client_reply_state
    await client.send_message(
        ctx.message.channel,
        'Reply state is now {}, myan!'.format(client_reply_state))
Пример #8
0
async def catbot_admin_t_reply(ctx):
    global client_reply_state
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return

    # Toggle replies on or off
    client_reply_state = not client_reply_state
    await client.send_message(
        ctx.message.channel,
        'Reply state is now {}, myan!'.format(client_reply_state)
    )
Пример #9
0
async def catbot_admin_set_status(ctx, *, message: str):
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return
    await client.change_presence(game=Game(name=message))
Пример #10
0
async def catbot_admin_set_status(ctx, *, message: str):
    user = ctx.message.author

    if not user or not is_admin(int(user.id)):
        return
    await client.change_presence(game=Game(name=message))