Fetches new reported posts from a Fandom wiki and sends them to a Discord channel. Based on polling.
To install required packages, run:
$ npm install
Configuration is set using environment variables. You can also store them in a .env
file in the same directory.
FANDOM_USERNAME
- Fandom account usernameFANDOM_PASSWORD
- Fandom account passwordFANDOM_WIKI
- Interwiki to the Fandom wiki (e.g.test
orfr.test
)FANDOM_DOMAIN
- Domain for the wiki and Fandom services (optional, defaults tofandom.com
)WEBHOOK_ID
- Discord webhook ID (number)WEBHOOK_TOKEN
- Discord webhook tokenINTERVAL
- Amount of time in seconds between checks (optional, defaults to30
)
To run the bot after having it configured, use:
$ npm start