Add support for config file

Closes: https://todo.sr.ht/~emersion/gamja/20
This commit is contained in:
Simon Ser
2021-05-25 12:33:22 +02:00
parent e0cde27d66
commit d261886199
3 changed files with 84 additions and 28 deletions

View File

@@ -48,6 +48,21 @@ gamja settings can be overridden using URL query parameters:
- `server`: path or URL to the WebSocket server
- `channels`: comma-separated list of channels to join
## Configuration file
gamja default settings can be set using a `config.json` file at the root:
```js
{
"server": {
// WebSocket URL to connect to (string)
"url": "wss://irc.example.org",
// Channel(s) to auto-join (string or array of strings)
"autojoin": "#gamja"
}
}
```
## Contributing
Send patches on the [mailing list], report bugs on the [issue tracker]. Discuss