How to use the cowpy.cow.Daemon function in cowpy

To help you get started, we’ve selected a few cowpy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jeffbuttars / cowpy / cowpy / cow.py View on Github external
"           `-^--'`<     '\n"
            "          (_.)  _  )   /\n"
            "           `.___/`    /\n"
            "             `-----' /\n"
            "<----.     __ / __   \\\n"
            "<----|====O)))==) \\) /====\n"
            "<----'    `--' `.__,' \\\n"
            "             |        |\n"
            "              \\       /\n"
            "        ______( (_  / \\______\n"
            "      ,'  ,-----'   |        \\\n"
            "      `--{{__________)        \\/")
        super(Daemon, self).__init__(**kwargs)


COWACTERS['daemon'] = Daemon


class DragonAndCow(Cowacter):

    def __init__(self, **kwargs):
        kwargs['body'] = (
                "             {thoughts}                    ^    /^\n"
                "              {thoughts}                  / \\  // \\\n"
                "               {thoughts}   |\\___/|      /   \\//  .\\\n"
                "                {thoughts}  /O  O  \\__  /    //  | \\ \\           *----*\n"
                "                  /     /  \\/_/    //   |  \\  \\          \\   |\n"
                "                  \@___\@`    \\/_   //    |   \\   \\         \\/\\ \\\n"
                "                 0/0/|       \\/_ //     |    \\    \\         \\ \\\n"
                "             0/0/0/0/|        \\///      |     \\     \\       | |\n"
                "          0/0/0/0/0/_|_ /   (  //       |      \\     _\\     |  /\n"
                "       0/0/0/0/0/0/`/,_ _ _/  ) ; -.    |    _ _\\.-~       /   /\n"
github ZeroEpoch1969 / RubyRoseBot / utils / tools.py View on Github external
}

decode_morse = dict((morse_char, char) for (char, morse_char) in encode_morse.items())

cowList = {
    "cow":cow.Cowacter(),
    "hellokitty":cow.HelloKitty(),
    "bunny":cow.Bunny(),
    "cheese":cow.Cheese(),
    "milk":cow.Milk(),
    "bong":cow.BongCow(),
    "eyes":cow.Eyes(),
    "legitvore":cow.HeadInCow(),
    "666":cow.Satanic(),
    "frogs":cow.BudFrogs(),
    "daemon":cow.Daemon(),
    "moofasa":cow.Moofasa(),
    "mutilated":cow.Mutilated(),
    "skeleton":cow.Skeleton(),
    "small":cow.Small(),
    "excusemewhatthefuck":cow.Sodomized(),
    "garfield":cow.Stimpy(),
    "tux":cow.Tux(),
    "vader":cow.Vader()
}

def write_file(filename, contents):
    with open(filename, "w", encoding="utf8") as file:
        for item in contents:
            file.write(str(item))
            file.write("\n")
github jeffbuttars / cowpy / cowpy / cow.py View on Github external
"           (/\\/ \\ \\   /\\\n"
            "           / /   | `    \\\n"
            "           O O   ) /    |\n"
            "           `-^--'`<     '\n"
            "          (_.)  _  )   /\n"
            "           `.___/`    /\n"
            "             `-----' /\n"
            "<----.     __ / __   \\\n"
            "<----|====O)))==) \\) /====\n"
            "<----'    `--' `.__,' \\\n"
            "             |        |\n"
            "              \\       /\n"
            "        ______( (_  / \\______\n"
            "      ,'  ,-----'   |        \\\n"
            "      `--{{__________)        \\/")
        super(Daemon, self).__init__(**kwargs)