Update config

This commit is contained in:
Zeva Rose 2022-03-23 09:30:14 -06:00
parent 32841b230a
commit dc5919ff86
2 changed files with 28 additions and 22 deletions

View file

@ -1,24 +1,34 @@
--- ---
token: api key here token: bot token
client_id: 123456789012345678 twitter:
logo: alligator2 consumer_key: key
consumer_secret: secret
access_token: access token
access_secret: access secret
mongo: mongo:
connect: connect:
username: user username: username
password: pass password: password
host: localhost host: hostname
port: 27017 port: 27017
database: database database: database
urls: urls:
url_name: url extra: urls
url_name2: url2 max_messages: 10000
max_messages: 1000 gitlab_token: token
gitlab_token: null
cogs: cogs:
- list - admin
- of - autoreact
- enabled - dev
- cogs - image
- all - gl
- if - remindme
- empty - rolegiver
# - settings
- starboard
- twitter
- util
- verify
log_level: INFO
sync: false
#sync_commands: True

View file

@ -12,7 +12,7 @@ except ImportError:
class JarvisConfig(CConfig): class JarvisConfig(CConfig):
REQUIRED = ["token", "client_id", "mongo", "urls"] REQUIRED = ["token", "mongo", "urls"]
OPTIONAL = { OPTIONAL = {
"sync": False, "sync": False,
"log_level": "WARNING", "log_level": "WARNING",
@ -39,8 +39,6 @@ class Config(object):
def init( def init(
self, self,
token: str, token: str,
client_id: str,
logo: str,
mongo: dict, mongo: dict,
urls: dict, urls: dict,
sync: bool = False, sync: bool = False,
@ -53,8 +51,6 @@ class Config(object):
) -> None: ) -> None:
"""Initialize the config object.""" """Initialize the config object."""
self.token = token self.token = token
self.client_id = client_id
self.logo = logo
self.mongo = mongo self.mongo = mongo
self.urls = urls self.urls = urls
self.log_level = log_level self.log_level = log_level