示例#1
0
async def acceptmarriage(client, message):
    try:
        target = message.mentions[0]
        for i in readmarriages():
            if message.author.id in i:
                raise YouMarriedError("you already married", None)
            if target.id in i:
                raise ThemMarriedError("them already married", None)
        if readproposals()[target.id] == message.author.id:
            print("marrying...")
            acceptmarriage(message.author.id, target.id)
            await client.send_message(
                message.channel,
                "Congratulations on your espousal. If you choose the honeymoon suite tonight, I will be there, should you pay the added entertainment fee.",
            )
            print("married {} to {}".format(
                message.author.name.translate(trans),
                target.name.translate(trans)))
            await Stickers.award(target.id, "Married")
            await Stickers.award(message.author.id, "Married")
            return
        await client.send_message(
            message.channel,
            "You haven't been proposed to by this person. Perhaps winning more {} may cause them to consider you?"
            .format(Profile.gamble_currency_name),
        )
    except KeyError:
        await client.send_message(
            message.channel,
            "However, the Casino does offer marriage and reception venues, including my services for bachelor/ette parties"
            .format(utils.gibberish()),
        )
    except ThemMarriedError:
        await client.send_message(
            message.channel,
            "The person you're trying to marry is already in love with someone else. If you seek physical amenities, I provide very affordable services for the lonely.",
        )
    except YouMarriedError:
        await client.send_message(
            message.channel,
            "You've already given your heart to another. At least try to look loyal."
            .format(utils.gibberish().upper()),
        )
    except IndexError:
        await client.send_message(
            message.channel,
            "Please specify someone who's offered their soul to you.")
示例#2
0
async def acceptmarriage(client, message):
    try:
        target = message.mentions[0]
        for i in readmarriages():
            if message.author.id in i:
                raise YouMarriedError("you already married", None)
            if target.id in i:
                raise ThemMarriedError("them already married", None)
        if readproposals()[target.id] == message.author.id:
            print("marrying...")
            acceptmarriage(message.author.id, target.id)
            await client.send_message(
                message.channel, "Congratulations on your marriage!! xvo")
            print("married {} to {}".format(
                message.author.name.translate(trans),
                target.name.translate(trans)))
            await Stickers.award(target.id, "Married")
            await Stickers.award(message.author.id, "Married")
            return
        await client.send_message(
            message.channel,
            "You haven't been proposed to by them idiot {}".format(
                utils.gibberish()),
        )
    except KeyError:
        await client.send_message(
            message.channel,
            "They haven't proposed to anyone... yet. xwo".format(
                utils.gibberish()),
        )
    except ThemMarriedError:
        await client.send_message(
            message.channel,
            "The person you're trying to marry is already taken, bucko. ;3€",
        )
    except YouMarriedError:
        await client.send_message(
            message.channel,
            "YOU'RE ALREADY MARRIED CUCK {}".format(utils.gibberish().upper()),
        )
    except IndexError:
        await client.send_message(
            message.channel,
            "Please specify someone who's proposed to you xvo")
示例#3
0
async def pay(client, message):
    payer = Profile(message.author)
    recipient = Profile(message.mentions[0])
    amount = int(message.content.split()[2])
    if payer.id == wishid:
        recipient.amend_currency(amount)
        await client.send_message(
            message.channel,
            "Queen Wishi has amended {}'s balance by {}{}.".format(
                message.author.mention,
                message.mentions[0].mention,
                Profile.currency_symbol,
                amount,
            ),
        )
    elif amount <= 0:
        await client.send_message(
            message.channel,
            "You can't pay {} idiot {}.".format(amount, utils.gibberish()),
        )
        return
    elif payer.id == recipient.id:
        await client.send_message(message.channel,
                                  "Trying to defraud me? Nice try idiot.")
        return
    elif message.mentions[0].bot:
        await client.send_message(
            message.channel,
            "You can't even buy a bot's love, small dick energy cuck.")
        return
    elif payer.get_balance() >= amount:
        payer.amend_currency(-amount)
        recipient.amend_currency(amount)
        await client.send_message(
            message.channel,
            "{} has paid {} {}{}".format(
                message.author.mention,
                message.mentions[0].mention,
                Profile.currency_symbol,
                amount,
            ),
        )
    else:
        await client.send_message(message.channel,
                                  "Insufficient funds, ya broke cuck.")
示例#4
0
async def marry(client, message):
    try:
        target = message.mentions[0]
        if target.id == "447249858265481226":
            await client.send_message(message.channel,
                                      "This person is too ugly to be loved.")
            return
        if target.id == message.author.id:
            await client.send_message(
                message.channel,
                "Marrying yourself? This is so sad, Music Baby play despacito",
            )
            return
        if target.id == client.user.id:
            await client.send_message(
                message.channel, "My robot heart belongs to Queen Wishi. xwu")
            return
        for i in readmarriages():
            if target.id in i:
                raise ThemMarriedError("them already married", None)
            if message.author.id in i:
                raise YouMarriedError("you already married", None)
        propose(message.author.id, target.id)
        print("{} proposed to {}".format(message.author.name.translate(trans),
                                         target.name.translate(trans)))
        await client.send_message(
            message.channel,
            "<@{}>, will you accept <@{}>'s proposal? Use {}acceptmarriage [user] or {}denymarriage [user]."
            .format(target.id, message.author.id, prefix, prefix),
        )

    except ThemMarriedError:
        await client.send_message(
            message.channel,
            "The person you're trying to marry is already taken, bucko. ;3€",
        )
    except YouMarriedError:
        await client.send_message(
            message.channel,
            "YOU'RE ALREADY MARRIED CUCK {}".format(gibberish().upper()),
        )
示例#5
0
async def converse(client, message):
    if ("WHO'S YOUR DADDY" in message.content.upper() or "WHO'S YOUR BIG DADDY"
            in message.content.upper()) and message.author.id == wishid:
        await client.send_message(message.channel, "Hoshi!")

    elif message.content.upper().startswith(
            "I MADE") or message.content.upper().startswith("TODAY I"):
        await client.send_message(message.channel,
                                  random.choice(["Ooh",
                                                 utils.gibberish()]))

    elif "SEX" in message.content.upper(
    ) or "EAR RAPE" in message.content.upper():
        await client.send_message(
            message.channel,
            discord.utils.get(client.get_all_emojis(), name="repent"))

    elif "LOL" in message.content.upper().replace(" ", ""):
        await client.add_reaction(
            message,
            discord.utils.get(client.get_all_emojis(), name="despacito"))
示例#6
0
async def gibberish(client, message):
    await client.send_message(message.channel, utils.gibberish())
    await Stickers.award(message.author.id, "SecretHunter")