Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
class Tux(Cowacter):
def __init__(self, **kwargs):
kwargs['body'] = (
" {thoughts}\n"
" {thoughts}\n"
" .--.\n"
" |o_o |\n"
" |:_/ |\n"
" // \\ \\\n"
" (| | )\n"
" /'\\_ _/`\\\n"
" \\___)=(___/")
super(Tux, self).__init__(**kwargs)
COWACTERS['tux'] = Tux
class Udder(Cowacter):
def __init__(self, **kwargs):
kwargs['body'] = (
" {thoughts}\n"
" {thoughts} (__)\n"
" {eyes}\\\n"
" ('') \\---------\n"
" {tongue} \\ \\\n"
" | |\\\n"
" ||---( )_|| *\n"
" || UU ||\n"
" == ==")
super(Udder, self).__init__(**kwargs)
def __init__(self, **kwargs):
kwargs['body'] = (
" {thoughts}\n"
" {thoughts}\n"
" .--.\n"
" |o_o |\n"
" |:_/ |\n"
" // \\ \\\n"
" (| | )\n"
" /'\\_ _/`\\\n"
" \\___)=(___/")
super(Tux, self).__init__(**kwargs)
"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")
def download_file(url, destination):
req = requests.get(url)
file = open(destination, "wb")
for chunk in req.iter_content(100000):
file.write(chunk)
file.close()