Sfoglia il codice sorgente

April Fools is over.

ivan 6 anni fa
parent
commit
bc0586aa95
1 ha cambiato i file con 0 aggiunte e 3 eliminazioni
  1. 0 3
      src/rollbot.py

+ 0 - 3
src/rollbot.py

@@ -80,9 +80,6 @@ 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)