diff options
| author | 2019-10-17 16:53:48 +0100 | |
|---|---|---|
| committer | 2019-10-17 16:53:48 +0100 | |
| commit | aa2511baaa7f28314b8720191b8f3e4d7778de68 (patch) | |
| tree | 76262c951fc379b4eb591a2b2b49819c9fe2d54a /src/Control.py | |
| parent | move bot.conf.example to docs/ (diff) | |
| signature | ||
add IRCBot.stop() - use it for !shutdown and './bitbotctl stop'
Diffstat (limited to 'src/Control.py')
| -rw-r--r-- | src/Control.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Control.py b/src/Control.py index 57f48ea4..cabea9f2 100644 --- a/src/Control.py +++ b/src/Control.py @@ -102,6 +102,9 @@ class Control(PollSource.PollSource): result = self._bot.try_reload_modules() response_data = result.message keepalive = False + elif command == "stop": + self._bot.stop() + keepalive = False self._send_action(client, response_action, response_data, id) if not keepalive: |
