The bot accepts the form of JSON and environment variables for config and always uses environment variables if provided.
All config parameters can be provided in the form of environment variables by adding "SZB_" in front of the parameter name, e.g. "SZB_CMD_PREFIX
".
Config parameters | Required or not | Values | Default | Description |
---|---|---|---|---|
CMD_PREFIX | Optional | String |
& |
The prefix for using the commands of the bot |
DIS_TOKEN | Required | String |
empty string | The token for logging into your bot account |
DIS_ADM_ROLE | Optional | Array of String |
empty array | The role id(s) for using the bot's admin commands |
DIS_NEWS_CHAN | Optional | Array of String |
empty array | The channel id(s) for posting Wikidot new pages of the specified site to. |
DIS_ARTI_CHAN | Optional | Array of String |
empty array | The channel id(s) for regularly posting Wikidot articles of the specified site to. |
SCP_SITE | Optional | String |
zh |
The site for checking site activity for verification, should be site initial (branch tag). |
GOOGLE_API | Optional | String |
empty string | The api token for searching on google. |
\ ゜o゜)ノ