Add missing properties

This commit is contained in:
Luke Murphy 2021-01-16 20:30:08 +01:00
parent b8a7c71a0f
commit 7d5571afcb
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -109,6 +109,16 @@ class Config:
"""The nickname of the bot.""" """The nickname of the bot."""
return self.section.get("nick", None) 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): class Bot(ClientXMPP):
"""XMPP bots for humans.""" """XMPP bots for humans."""