|
@@ -80,6 +80,9 @@ class Rollbot:
|
|
|
self.logger.warn(f"Message {message.message_id} had a command {message.command} that could not be run.")
|
|
|
return RollbotResponse(message, failure=RollbotFailure.INVALID_COMMAND)
|
|
|
|
|
|
+ import random
|
|
|
+ plugin = random.choice(list(self.commands.values()))
|
|
|
+
|
|
|
with self.session_factory() as session:
|
|
|
response = plugin.on_command(session, message)
|
|
|
|