From 9d144924e9cff74355273f320aa3bdbaee3254b1 Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Mon, 23 May 2022 20:55:45 -0700 Subject: [PATCH] Add channels to server config This wasn't being loaded before, now it is. Signed-off-by: Alek Ratzloff --- omnibot/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/omnibot/config.py b/omnibot/config.py index 79b0ba2..9187166 100644 --- a/omnibot/config.py +++ b/omnibot/config.py @@ -71,6 +71,11 @@ class ServerConfig: ) self.plugins = obj["plugins"] + if "channels" in obj: + if not isinstance(obj["channels"], Sequence): + raise ConfigError("channels", "must by a list of strings") + self.channels = obj["channels"] + if "nick" in obj: if not isinstance(obj["nick"], str): raise ConfigError("nick", "must be a string")