fun.py 1.37 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
#encoding: utf-8
"""
Fun commands.
"""

from random import choice

def fun(user, channel, message):
    """
    This function is there to add some fun commands which could be not used easily.
    """
    # Specific answer to Deltree, the animal's joke
    if user.lower()=="deltree" and msg=="\_o< ~ Coin ~ >o_/":
        animal = choice([
            {
                "left": """><((('>""",
                "right": """<')))><""",
                "sound": "blub",
            },
            {
                "left": """=^..^=""",
                "right": """=^..^=""",
                "sound": "meow",
            },
            {
                "left": """ˁ˚ᴥ˚ˀ""",
                "right": """ˁ˚ᴥ˚ˀ""",
                "sound": "wouf",
            },
            {
                "left": """\_o<""",
                "right": """>o_/""",
                "sound": "coin",
            },
            {
                "left": """^(*(oo)*)^""",
                "right": """^(*(oo)*)^""",
                "sound": "grouïk",
            },
            {
                "left": """~~(__^·>""",
                "right": """<·^__)~~""",
                "sound": "yiik",
            },
        ])
46
        return "%s ~ %s ~ Deltree ~ %s ~ %s" % (
47 48 49 50 51 52
            animal["left"],
            animal["sound"],
            animal["sound"],
            animal["right"],
        )
    return ""