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
client_id: 123456789012345678
logo: alligator2
token: bot token
twitter:
consumer_key: key
consumer_secret: secret
access_token: access token
access_secret: access secret
mongo:
connect:
username: user
password: pass
host: localhost
username: username
password: password
host: hostname
port: 27017
database: database
urls:
url_name: url
url_name2: url2
max_messages: 1000
gitlab_token: null
extra: urls
max_messages: 10000
gitlab_token: token
cogs:
- list
- of
- enabled
- cogs
- all
- if
- empty
- admin
- autoreact
- dev
- image
- gl
- remindme
- 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):
REQUIRED = ["token", "client_id", "mongo", "urls"]
REQUIRED = ["token", "mongo", "urls"]
OPTIONAL = {
"sync": False,
"log_level": "WARNING",
@ -39,8 +39,6 @@ class Config(object):
def init(
self,
token: str,
client_id: str,
logo: str,
mongo: dict,
urls: dict,
sync: bool = False,
@ -53,8 +51,6 @@ class Config(object):
) -> None:
"""Initialize the config object."""
self.token = token
self.client_id = client_id
self.logo = logo
self.mongo = mongo
self.urls = urls
self.log_level = log_level