Discord webhook relay of changes to review status of Fandom scripts, mostly intended for use on Dev Wiki's Discord server. Based on polling.
To install required packages, run:
$ npm install
To run the configuration wizard for ContentReviewLog, run:
$ npm run-script config
Alternatively, create a JSON file with the following contents:
{
"username": "Fandom username",
"password": "Fandom password",
"interval": 20000,
"id": "1234",
"token": "abcd",
"wiki": "dev",
"domain": "wikia.com"
}
Where the keys mean:
username
: Fandom username of a user that's supposed to log in.password
: Password for the Fandom user that is supposed to log in,interval
: Amount of miliseconds between checks.id
: Discord webhook ID.token
: Discord webhook token.wiki
: Fandom wiki domain.domain
: Can be eitherwikia.com
,fandom.com
orwikia.org
.lang
: Language in the article path.debug
: Whether more output should be logged.
To run ContentReviewLog after having it configured, use:
$ npm start
To update ContentReviewLog to latest version, use:
$ npm run-script update