Ejemplo n.º 1
0
async def kick(message):
    db = loader.db_loaded()
    if message.mentions.__len__() > 0:
        for user in message.mentions:
            user = await message.guild.query_members(user_ids=[user.id])
        user = user[0]
        await user.kick(reason="Kicked by roBOT!")
Ejemplo n.º 2
0
async def unmute(message):
    db = loader.db_loaded()
    if message.mentions.__len__() > 0:
        for user in message.mentions:
            user = await message.guild.query_members(user_ids=[user.id])
        user = user[0]
        try:
            await user.edit(mute=False)
        except Exception:
            await message.channel.send("User's not connected to voice!")
Ejemplo n.º 3
0
async def confess(discord, message):
    await message.delete()
    db = loader.db_loaded()
    client = loader.client_loaded()
    hold = message.content.find(
        " ")  # searches for the first space after the command
    await db.confess(
        client,
        discord,
        message.content[(hold + 1):len(message.content)],
        message,
    )
Ejemplo n.º 4
0
async def rank(discord, message):
    db = loader.db_loaded()
    await db.rank_query(message)
    await message.add_reaction("\U0001f44d")
Ejemplo n.º 5
0
async def deconfigconfess(message):
    db = loader.db_loaded()
    await db.confess_deconfig(message.guild.id, message)
Ejemplo n.º 6
0
async def moderation(message):
    db = loader.db_loaded()
    await db.moderation_service(message.guild.id, message)
Ejemplo n.º 7
0
async def leave(message):
    db = loader.db_loaded()
    await db.leave_server(message.guild.id, message)
Ejemplo n.º 8
0
async def deconfigure(message):
    db = loader.db_loaded()
    await db.server_deconfig(message.guild.id, message)