diff options
Diffstat (limited to 'src/Control.py')
| -rw-r--r-- | src/Control.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Control.py b/src/Control.py index 6f864303..ed5a5351 100644 --- a/src/Control.py +++ b/src/Control.py @@ -104,6 +104,13 @@ class Control(PollSource.PollSource): keepalive = False elif command == "stop": self._bot.stop() + elif command == "command" and data: + subcommand, _, data = data.partition(" ") + output = self._bot._events.on("control").on(subcommand + ).call_for_result(data=data) + if not output == None: + response_data = output + keepalive = False self._send_action(client, response_action, response_data, id) if not keepalive: |
