Updated Readme

pull/36/head
Trivernis 6 years ago
parent f21cea872c
commit fad495cbe1

@ -25,13 +25,21 @@ The arguments are optional because the token and youtube-api-key that the bot ne
"webservice": { // optional "webservice": { // optional
"enabled": true, // enable the server "enabled": true, // enable the server
"port": 8080, // set the port "port": 8080, // set the port
"graphiql": false // switch the graphiql interface on/off "graphiql": false, // switch the graphiql interface on/off,
"sessionSecret": "PROVIDE A SECURE SECRET",
"https": {
"enabled": true, //enable https
"keyFile": "PATH TO YOUR SSL KEY FILE",
"certFile": "PATH TO YOUR SSL CERTIFICATE FILE"
}
} }
} }
``` ```
If the keys are missing from the config file, the bot exits. This behaviour can be deactivated by setting the `-i` commandline flag. If the keys are missing from the config file, the bot exits. This behaviour can be deactivated by setting the `-i` commandline flag.
You need to generate an api-token to access the graphql webservice. You can generate one with the owner-command `tokengen` uses via PM. You need to create a user to access the webinterface. Use `~createUser [name] [password] [scope]` to create one (Only works via PM).
Please provide a **SECURE** `sessionSecred`.
To enable https you need a certificate and key file. Those can be generated with openssl.
Keys Keys
--- ---
@ -61,4 +69,4 @@ Ideas
- command replies saved in file (server specific file and global file) - command replies saved in file (server specific file and global file)
- reddit api - reddit api
- anilist api - anilist api
- othercoolstuff api - othercoolstuff api

Loading…
Cancel
Save