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')
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' )
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)
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)
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))
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) )
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))