From aa2511baaa7f28314b8720191b8f3e4d7778de68 Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 17 Oct 2019 16:53:48 +0100 Subject: add IRCBot.stop() - use it for !shutdown and './bitbotctl stop' --- src/Control.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Control.py') 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: -- cgit v1.3.1-10-gc9f91