Skip to content

Instantly share code, notes, and snippets.

@dijit
Created March 13, 2024 09:39
Show Gist options
  • Save dijit/3c3c9754b79fa961805172fb48c72b8d to your computer and use it in GitHub Desktop.
Save dijit/3c3c9754b79fa961805172fb48c72b8d to your computer and use it in GitHub Desktop.
@botcmd(split_args_with=None)
def insult(self, msg, args):
"""
Generate an insult.
"""
verbs = [
"lazy",
"stupid",
"insecure",
"idiotic",
"slimey",
"slutty",
"smelly",
"pompous",
"communist",
"dicknose",
"pie-eating",
"racist",
"elitist",
"white trash",
"drug-loving",
"butterface",
"tone-deaf",
"ugly",
"creepy"
]
adjectives = [
"douche",
"ass ",
"turd",
"rectum",
"butt",
"cock",
"shit",
"crotch",
"bitch",
"turd",
"prick",
"slut",
"taint",
"fuck",
"dick",
"boner",
"shard",
"nut",
"sphincter"
]
nouns = [
"pilot",
"canoe",
"captain",
"pirate",
"hammer",
"knob",
"box",
"jockey",
"nazi",
"waffle",
"goblin",
"blossum",
"biscuit",
"clown",
"socket",
"monster",
"hound",
"dragon",
"balloon"
]
if len(args) > 0:
disallowed = ['@jmh', 'jmh', '@zeta', 'zeta']
if args[0] in disallowed:
insult = "Hey @{}! ".format(str(msg.frm).split("/")[-1])
else:
insult = "Hey {}! ".format(args[0])
else:
insult = ""
insult += "You {0} {1} {2}".format(
random.choice(verbs),
random.choice(adjectives),
random.choice(nouns)
)
return insult
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment