aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-10-14 14:52:58 +0100
committerGravatar jesopo2019-10-14 14:52:58 +0100
commit88ffa421c15bb2ec53154dd5aaf6cf932d96be4b (patch)
treeb2be9671afcb1f0de2510c0b72e8a6a02c1509aa /src
parentrun Control callbacks on main thread (diff)
signature
add `bitbotctl reload` command to reload all modules
Diffstat (limited to 'src')
-rw-r--r--src/Control.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Control.py b/src/Control.py
index 5b59bfec..bdd36ab0 100644
--- a/src/Control.py
+++ b/src/Control.py
@@ -98,6 +98,10 @@ class Control(PollSource.PollSource):
self._bot.config.load()
self._bot.log.info("Reloaded config file")
keepalive = False
+ elif command == "reload":
+ result = self._bot.try_reload_modules()
+ response_data = result.message
+ keepalive = False
self._send_action(client, response_action, response_data, id)
if not keepalive: