diff options
| author | 2020-11-16 20:42:44 +0200 | |
|---|---|---|
| committer | 2020-11-16 20:42:44 +0200 | |
| commit | f8d070664783d7a4b86a6b3dc0646a2ae100ee5c (patch) | |
| tree | 8d387295bba04d9582baa072c5d7078df9b72947 | |
| parent | Add basic branding configuration (diff) | |
Create config for tokens and add GitHub token
| -rw-r--r-- | bot/constants.py | 6 | ||||
| -rw-r--r-- | config-default.yml | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bot/constants.py b/bot/constants.py index ed298f41a..1b7a09244 100644 --- a/bot/constants.py +++ b/bot/constants.py @@ -611,6 +611,12 @@ class Branding(metaclass=YAMLGetter): cycle_frequency: int +class Tokens(metaclass=YAMLGetter): + section = "tokens" + + github: str + + class Event(Enum): """ Event names. This does not include every event (for example, raw diff --git a/config-default.yml b/config-default.yml index 91ecf3107..fa2841f0c 100644 --- a/config-default.yml +++ b/config-default.yml @@ -529,5 +529,9 @@ branding: cycle_frequency: 3 # How many days bot wait before refreshing server icon +tokens: + github: !ENV "GITHUB_TOKEN" + + config: required_keys: ['bot.token'] |