Fix missing config for rook
This commit is contained in:
parent
b8aa191750
commit
fe8bd90854
1 changed files with 3 additions and 0 deletions
|
@ -22,6 +22,7 @@ class JarvisConfig(CConfig):
|
|||
"max_messages": 1000,
|
||||
"twitter": None,
|
||||
"reddit": None,
|
||||
"rook_token": None,
|
||||
}
|
||||
|
||||
|
||||
|
@ -50,6 +51,7 @@ class Config(object):
|
|||
max_messages: int = 1000,
|
||||
twitter: dict = None,
|
||||
reddit: dict = None,
|
||||
rook_token: str = None,
|
||||
) -> None:
|
||||
"""Initialize the config object."""
|
||||
self.token = token
|
||||
|
@ -63,6 +65,7 @@ class Config(object):
|
|||
self.twitter = twitter
|
||||
self.reddit = reddit
|
||||
self.sync = sync or os.environ.get("SYNC_COMMANDS", False)
|
||||
self.rook_token = rook_token
|
||||
self.__db_loaded = False
|
||||
self.__mongo = MongoClient(**self.mongo["connect"])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue