#!/usr/bin/env python3

import random
import sys
import platform


class RuimError(Exception):
    def __init__(self, message="Ruuuuimmm esse erro, Hein!!!"):
        super().__init__(message)


if(platform.system() == "Linux"):
    cRED = "\033[31m"
    cBLUE = "\033[34m"
    cGREEN = "\033[32m"
    cRESET_ALL = "\033[0m"

else:
    cRED = ""
    cBLUE = ""
    cGREEN = ""
    cRESET_ALL = ""


osObjetos = [
    "O Crime",
    "A Felicidade",
    "O Escudo",
    "A Espada",
    "As Polainas",
    "O Escafandro",
    "O Tradutor",
    "A Esperança"
]

asPessoas = [
    "Do Ignorante",
    "Do Sádico",
    "Do Abestado",
    "Do Sábio",
    "Do Satanista",
    "Do Sagrado",
    "Do Programador",
    "Do Desajustado",
    "Do Paladino",
    "Do Clérigo",
    "De Odin",
    "Do Bom Samaritano",
    "Do Assustado",
    "Do Absoluto",
    "Do Excomungado",
    "Do Fraco"
]

asCarinhas = [
    "( ͡° ͜ʖ ͡°)",
    "¯\_(ツ)_/¯",
    "ಠ_ಠ",
    "(╯°□°）╯︵ ┻━┻",
    "(⌐■_■)",
    "ʕ•ᴥ•ʔ",
    "(•̀ᴗ•́)و",
    "ಥ_ಥ",
    "(⊙_☉)",
    "(ง •̀_•́)ง",
    "乁(‍‍ ͡o‍‍͜つ‍‍ ͡o‍‍)ㄏ‍",
    "Ƹ‍‍◑‍‍ヮ‍‍◐‍‍Ʒ‍",
    "( ͡°ᴥ ͡° ʋ)",
    "(̅(̅_̅_̅_̅м̲̅a̲̅я̲̅l̲̅b̲̅o̲̅r̲̅o̲̅̅_̅_̅̅(ด้้้้้็็็",
    "... ♫♪.ılılıll|̲̅̅●̲̅̅|̲̅̅=̲̅̅|̲̅̅●̲̅̅|llılılı.♫♪ ... ┐(・。・┐) ",
    "︻デ═一",
    "┌∩┐(◣_◢)┌∩┐",
    "-`ღ´-",
    "ᶠᶸᶜᵏ♥ᵧₒᵤ",
    "୧ʕ•̀ᴥ•́ʔ୨",
    "ℓ٥ﻻ ﻉ√٥υ",
    "───==≡≡ΣΣ((( つºل͜º)つ",
    "ヽ(⌐■_■)ノ♪♬",
    "Yᵒᵘ Oᶰˡʸ Lᶤᵛᵉ Oᶰᶜᵉ",
]


if __name__ == "__main__":
    try:
        try:
            palavra = sys.argv[1].upper()+" "+(" ".join(sys.argv[2:]))
        except:
            palavra = "O Uso Errado"
        objeto = random.choice(osObjetos)
        pessoa = random.choice(asPessoas)
        carinha = random.choice(asCarinhas)

        pre = "\n{red}{palavra}{reset} é {blue}{obj}{reset} {green}{pes}{reset} {car}\n"\
        .format(palavra=palavra, obj=objeto, pes=pessoa, car=carinha, red=cRED,
                blue=cBLUE, green=cGREEN, reset=cRESET_ALL)

        print(pre)
    except:
        raise RuimError
