diff options
| author | 2018-08-30 16:18:57 +0100 | |
|---|---|---|
| committer | 2018-08-30 16:18:57 +0100 | |
| commit | 25eb6091bd41ec308206b2a90123f7646cff72de (patch) | |
| tree | d19aac49ece9f25f359feeef1f56cdff427cba0d /modules/strax.py | |
| parent | Add missing comma in strax.py (diff) | |
| parent | Update strax generator to make more sense when exclaiming instead of question... (diff) | |
Merge pull request #5 from dngfx/master
Strax nonsense
Diffstat (limited to 'modules/strax.py')
| -rw-r--r-- | modules/strax.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/strax.py b/modules/strax.py index 9b6e431b..b2496839 100644 --- a/modules/strax.py +++ b/modules/strax.py @@ -7,7 +7,8 @@ class Module(object): self.strax, help="Glory to the sontaran empire, through IRC!") def strax(self, event): - suggestion_greeting = ["Might I suggest", "I'd suggest", "We should attack now with", "We must attack now with"] + suggestion_greeting = ["Might I suggest", "I'd suggest"] + command_greeting = ["We should attack now with", "We must attack now with"] method_of_attack_a = ["full-frontal", "pincer", "surprise", "brutally excessive", "multi-pronged", "glorious", "violent", "devestating", "superior"] method_of_attack_an = ["acid-heavy", "immediate", "overwhelming", "unstoppable"] @@ -27,7 +28,11 @@ class Module(object): 2]) == 1 else " a " + random.choice( method_of_attack_a) - suggestion = random.choice( - suggestion_greeting) + method_of_attack + " " + random.choice(type_of_attack) + " with " + random.choice(attack_adjective) + " " + random.choice(attack_object) + " and " + random.choice(attack_object_two) + "?" + + greeting_choice = random.choice([1,2]) + greeting = random.choice(suggestion_greeting) if greeting_choice == 1 else random.choice(command_greeting) + exclamation = "?" if greeting_choice == 1 else "!" + + suggestion = greeting + method_of_attack + " " + random.choice(type_of_attack) + " with " + random.choice(attack_adjective) + " " + random.choice(attack_object) + " and " + random.choice(attack_object_two) + exclamation event["stdout"].write(suggestion) |
