Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 863 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 863 Bytes

Fandom Reported Posts Bot

Fetches new reported posts from a Fandom wiki and sends them to a Discord channel. Based on polling.

Installation

To install required packages, run:

$ npm install

Configuration

Configuration is set using environment variables. You can also store them in a .env file in the same directory.

  • FANDOM_USERNAME - Fandom account username
  • FANDOM_PASSWORD - Fandom account password
  • FANDOM_WIKI - Interwiki to the Fandom wiki (e.g. test or fr.test)
  • FANDOM_DOMAIN - Domain for the wiki and Fandom services (optional, defaults to fandom.com)
  • WEBHOOK_ID - Discord webhook ID (number)
  • WEBHOOK_TOKEN - Discord webhook token
  • INTERVAL - Amount of time in seconds between checks (optional, defaults to 30)

Running

To run the bot after having it configured, use:

$ npm start