From 7d5571afcb066d0a0be309f13b4aeb4a8ca29e6a Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 16 Jan 2021 20:30:08 +0100 Subject: [PATCH] Add missing properties --- xbotlib.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xbotlib.py b/xbotlib.py index 7d816b4..723f024 100644 --- a/xbotlib.py +++ b/xbotlib.py @@ -109,6 +109,16 @@ class Config: """The nickname of the bot.""" return self.section.get("nick", None) + @property + def avatar(self): + """The avatar of the bot.""" + return self.section.get("avatar", None) + + @property + def redis_url(self): + """The Redis connection URL.""" + return self.section.get("redis_url", None) + class Bot(ClientXMPP): """XMPP bots for humans."""