|
@@ -41,3 +41,11 @@ def choice(message):
|
|
opts = list(message.args())
|
|
opts = list(message.args())
|
|
chosen = random.choice(opts)
|
|
chosen = random.choice(opts)
|
|
return f"Randomly chose {chosen} from {len(opts)} options"
|
|
return f"Randomly chose {chosen} from {len(opts)} options"
|
|
|
|
+
|
|
|
|
+@as_plugin
|
|
|
|
+def inquire(message):
|
|
|
|
+ opts = "Yes", "No", "Maybe", "Perhaps", "I guess", "Probably shouldn't", "rand"
|
|
|
|
+ chosen = random.choice(opts)
|
|
|
|
+ if chosen == "rand":
|
|
|
|
+ chosen = str(random.randrange(10))
|
|
|
|
+ return chosen
|