2019-05-25 20:40:06 +00:00
|
|
|
#--depends-on commands
|
|
|
|
|
2018-08-30 14:55:57 +00:00
|
|
|
import random
|
2018-10-03 12:22:37 +00:00
|
|
|
from src import ModuleManager, utils
|
2018-08-30 14:55:57 +00:00
|
|
|
|
2018-09-26 17:27:17 +00:00
|
|
|
class Module(ModuleManager.BaseModule):
|
2018-10-03 12:22:37 +00:00
|
|
|
@utils.hook("received.command.strax")
|
2018-08-30 14:55:57 +00:00
|
|
|
def strax(self, event):
|
2018-09-26 17:27:17 +00:00
|
|
|
"""
|
2018-09-30 16:29:09 +00:00
|
|
|
:help: Suggests a glorious method of battle for the glory of the
|
|
|
|
Sontaran Empire, through IRC!
|
2018-09-26 17:27:17 +00:00
|
|
|
"""
|
2018-08-31 09:51:47 +00:00
|
|
|
suggestion_greeting = ["Might I suggest", "Can I suggest", "Should we attack immediately with"]
|
|
|
|
command_greeting = ["We should attack now with", "We must attack now with", "I suggest attacking with",
|
2018-08-30 15:57:45 +00:00
|
|
|
"We should coordinate an attack with"]
|
2018-08-31 09:51:47 +00:00
|
|
|
method_of_attack_a = ["full-frontal", "pincer", "surprise", "brutally excessive", "multi-pronged", "glorious",
|
|
|
|
"violent", "devastating", "superior", "fast-paced", "fleet-wide", "stealth",
|
|
|
|
"diversionary", "exceptional", "point-blank", "night time"]
|
|
|
|
method_of_attack_an = ["acid-heavy", "immediate", "overwhelming", "unstoppable", "underground", "arial",
|
2018-08-30 15:57:45 +00:00
|
|
|
"naval", "amphibious", "full-scale"]
|
2018-08-31 09:51:47 +00:00
|
|
|
type_of_attack = ["assault", "attack", "bombardment", "offensive", "barrage", "charge", "strike", "operation",
|
2018-08-30 15:57:45 +00:00
|
|
|
"manoeuvre", "blitzkrieg", "ambush", "massacre"]
|
2018-08-31 09:51:47 +00:00
|
|
|
attack_adjective = ["laser", "berserker", "acid", "armoured attack", "proton",
|
2018-08-30 14:55:57 +00:00
|
|
|
"three kinds of", "atomic", "toxic", "explosive",
|
|
|
|
"red-hot", "thermal", "automated fire", "cluster",
|
2018-08-31 09:51:47 +00:00
|
|
|
"enhanced germ", "energy-drink-fueled", "battle ready", "Sontaran", "military"]
|
|
|
|
attack_object = ["bees", "chainsaws", "marmots", "acid", "monkeys", "mines", "bombs", "snakes", "spiders",
|
|
|
|
"knives", "rockets", "sharks", "owls", "repurposed cybermats", "cannons", "alligators", "ants",
|
|
|
|
"gorillas", "genetically enhanced cyber-elephants", "mechanoids", "KGB agents",
|
2018-08-30 15:57:45 +00:00
|
|
|
"MI5 operatives", "thermonuclear missiles"]
|
2018-08-31 09:51:47 +00:00
|
|
|
attack_object_two = ["robots", "ninjas", "grenades", "a dolphin full of napalm", "dynamite",
|
|
|
|
"xenomorphs", "lots and lots of C4", "tactical nukes", "bio-weapons",
|
|
|
|
"rocket launchers", "an elephant", "a memory worm for afterwards", "this pencil"]
|
2018-08-30 14:55:57 +00:00
|
|
|
|
2018-08-31 09:51:47 +00:00
|
|
|
method_of_attack = " an " + random.choice(method_of_attack_an) if random.choice([1,
|
|
|
|
2]) == 1 else " a " + random.choice(
|
2018-08-30 14:55:57 +00:00
|
|
|
method_of_attack_a)
|
|
|
|
|
2018-08-30 15:57:45 +00:00
|
|
|
greeting_choice = random.choice([1, 2])
|
2018-08-31 09:51:47 +00:00
|
|
|
greeting = random.choice(suggestion_greeting) if greeting_choice == 1 else random.choice(command_greeting)
|
2018-08-30 15:17:15 +00:00
|
|
|
exclamation = "?" if greeting_choice == 1 else "!"
|
|
|
|
|
2018-08-31 09:51:47 +00:00
|
|
|
suggestion = greeting + method_of_attack + " " + random.choice(type_of_attack) + " with " + random.choice(
|
|
|
|
attack_adjective) + " " + random.choice(attack_object) + " and " + random.choice(
|
2018-08-30 15:57:45 +00:00
|
|
|
attack_object_two) + exclamation
|
2018-08-30 14:55:57 +00:00
|
|
|
|
|
|
|
event["stdout"].write(suggestion)
|