Add missing properties
This commit is contained in:
parent
b8a7c71a0f
commit
7d5571afcb
10
xbotlib.py
10
xbotlib.py
@ -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."""
|
||||||
|
Reference in New Issue
Block a user