aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar dongfix2018-08-30 16:03:54 +0100
committerGravatar GitHub2018-08-30 16:03:54 +0100
commitf6f183c2bda48cb4211f5ea0585035da3b10a05b (patch)
treebc8d114e85b4c1e324644a6abd4b7ddb62a6ec57 /modules
parentAdd strax.py .strax command. (diff)
Fix strax.py to randomise other things and fix random choice 1,2
Diffstat (limited to 'modules')
-rw-r--r--modules/strax.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/strax.py b/modules/strax.py
index 85abad54..ebb67a2c 100644
--- a/modules/strax.py
+++ b/modules/strax.py
@@ -23,11 +23,11 @@ class Module(object):
"xenomorphs", "lots and lots of C4", "tactical nukes", "MacGyver", "bio-weapons",
"rocket launchers", "an elephant", "a memory worm for afterwards", "this pencil"]
- method_of_attack = " an " + random.choice(method_of_attack_an) if random.choice(1,
- 2) == 1 else " a " + random.choice(
+ method_of_attack = " an " + random.choice(method_of_attack_an) if random.choice([1,
+ 2]) == 1 else " a " + random.choice(
method_of_attack_a)
suggestion = random.choice(
- suggestion_greeting) + method_of_attack + " " + type_of_attack + " with " + attack_adjective + " " + attack_object + " and " + attack_object_two + "?"
+ 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) + "?"
event["stdout"].write(suggestion)