|
@@ -1,7 +1,7 @@
|
|
|
import importlib
|
|
|
|
|
|
import db
|
|
|
-from config import PLUGINS, BOTS_LOOKUP
|
|
|
+from config import PLUGINS, ALIASES, BOTS_LOOKUP
|
|
|
from command_system import RollbotResponse, RollbotFailure
|
|
|
|
|
|
|
|
@@ -40,7 +40,11 @@ class Rollbot:
|
|
|
self.logger.warn(f"Tried to run non-command message {message.message_id}")
|
|
|
return
|
|
|
|
|
|
- plugin = self.commands.get(message.command, None)
|
|
|
+ if message.command in ALIASES:
|
|
|
+ plugin = self.commands.get(ALIASES[message.command], None)
|
|
|
+ else:
|
|
|
+ plugin = self.commands.get(message.command, None)
|
|
|
+
|
|
|
if plugin is None:
|
|
|
response = RollbotResponse(message, failure=RollbotFailure.INVALID_COMMAND)
|
|
|
else:
|