Skip to content

Installation

Sidemen19 edited this page Dec 18, 2020 · 2 revisions

Installation

Note: as the bot uses some newer technology, including optional chaining, it requires at least Node.js v14. Running the bot with a version lower than this will lead to an error on startup. You will also need Git and a package manager such as pnpm installed.

  1. Clone this repo to your machine by running git clone https://github.com/Sidemen19/Wiki-Utilities.git.

  2. Rename config.sample.json to config.json.

  3. Go to the Discord developer's website while you are logged in to your Discord account here.

    • Create a new application.
    • Copy the Client ID.
    • Next, add a Bot (NOTE - you need to make the bot private (meaning only you can invite it to servers), by toggling the switch).
  4. Get the bot's token from the Bot page, copy it, and paste it into the value of token in config.json.

  5. Invite Wiki Utilities to a server, by going to https://discord.com/oauth2/authorize?client_id=INSERT_CLIENT_ID_HERE&scope=bot&permissions=330816 (paste your Client ID from earlier into the URL).

  6. Install required dependencies, using pnpm install or npm install.

  7. Get the bot online by running node . in the root directory.

Next: Configuring the bot

Clone this wiki locally