Skip to content

William5553/triv

Repository files navigation

Build Status

⚠️ The bot is currently being completely rewritten to use Discord.js v14, slash commands, and ES modules! ⚠️

Afterwards, this repository will be archived and no longer maintained.

Visit the rewrite

Installation instructions for Windows

  1. Download and install Node.js, version 16.9.0 and up is required.

  2. Run this command in a command prompt or powershell

npm i -g node-gyp@latest pnpm

Once that's complete, open a command prompt in the bot folder and run

pnpm i
  1. Rename the .env.example file to .env and modify the file with the necessary API keys (The only required ones are token and prefix)

Getting a token

Go to this link

Click new application

Name your bot

Save your application ID for later

Click Bot on the left sidebar

Click Add Bot

Copy the token and put it in your .env file

Scroll down to priviliged gateway intents

Turn on presence intent, message content intent, and server members intent

Save your changes

Starting the bot

You can run startbot.sh if you're on Linux and startbot.bat if you're on Windows.

Inviting your bot

Go to this link and enter your application ID from earlier