Skip to content

Commit

Permalink
Move seen config example in place so it loads
Browse files Browse the repository at this point in the history
In general, plugins in Cardinal should load without creating a config
file unless intervention is necessary (e.g. an API key is required to
use the plugin.)

The `seen` plugin required you to copy `config.json.example` to
`config.json` even though there are no secrets in the config file.
  • Loading branch information
johnmaguire committed Apr 18, 2021
1 parent a3ce425 commit 736deb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
File renamed without changes.
3 changes: 3 additions & 0 deletions plugins/seen/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

class SeenPlugin:
def __init__(self, cardinal, config):
if config is None:
config = {}

self.cardinal = cardinal
self.ignored_channels = config.get('ignored_channels', [])

Expand Down

0 comments on commit 736deb5

Please sign in to comment.