Browse Source

Nothing at all

Kirk Trombley 6 years ago
parent
commit
e18e6ded17
2 changed files with 4 additions and 0 deletions
  1. 1 0
      config/config.toml
  2. 3 0
      src/rollbot.py

+ 1 - 0
config/config.toml

@@ -20,6 +20,7 @@ guess = "Rollbot's back - tell a friend!"
 unmeme = "get a job"
 issues = "https://kirkleon.ddns.net/gogs/kirkleon/rollbot3/issues"
 bump = "Bumping the chat!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAll done!"
+vore = "What? No"
 
 [teamspeak]
 host = "kirkleon.ddns.net"

+ 3 - 0
src/rollbot.py

@@ -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)