示例#1
0
async def waft(cmd):
    user_data = EwUser(member=cmd.message.author)
    mutations = user_data.get_mutations()
    if ewcfg.mutation_id_aposematicstench not in mutations:
        response = "You stink, but not that badly. Get Aposematic Stench before you try that."
    else:
        user_data.applyStatus(ewcfg.status_repelled_id)
        response = "You clench as hard as you can, and your pores excrete a mushroom cloud of pure, olive green musk. It's so caustic you might not have eyebrows anymore. You should be immune from monsters, though!"

    return await ewutils.send_message(
        cmd.client, cmd.message.channel,
        ewutils.formatMessage(cmd.message.author, response))
示例#2
0
async def hogtie(cmd):
    if not cmd.message.author.guild_permissions.administrator:
        return await ewutils.fake_failed_command(cmd)
    else:
        if cmd.mentions_count == 1:
            target_data = EwUser(member=cmd.mentions[0])
            target_status = target_data.getStatusEffects()
            if ewcfg.status_hogtied_id in target_status:
                target_data.clear_status(id_status=ewcfg.status_hogtied_id)
                response = "Whew-whee! She's buckin' so we gotta let 'er go."
                await ewutils.send_message(
                    cmd.client, cmd.message.channel,
                    ewutils.formatMessage(cmd.message.author, response))
            else:
                target_data.applyStatus(ewcfg.status_hogtied_id)
                response = "Boy howdy! Looks like we lasso'd up a real heifer there! A dang ol' big'un."
                await ewutils.send_message(
                    cmd.client, cmd.message.channel,
                    ewutils.formatMessage(cmd.message.author, response))