/impostor-bot

A Discord bot that checks whether a user is an impostor or crewmate.

Primary LanguageTypeScript

Impostor Bot

Impostor Bot is a Discord bot that will check whether a user is an impostor or a crewmate.

This was made using the discord.js library.

How to use

This project uses TypeScript.

Visit the official discord.js guide for an in-depth, beginner-friendly tutorial on how to set up your project.

(Note: The linked tutorial uses JavaScript.)

Prerequisites

  • Node.js

Installation

  1. Make sure all of the prequisites are installed.
  2. Clone the repository.
  3. Install dependencies using the command npm install
    • Or, if you're using yarn, run the command: yarn

Setting up your bot configuration

  1. Set up your application with Discord. (This is covered in the first few sections of the discord.js guide).
  2. In the root directory, create a file named .env. Inside of it, insert the following code: bot_token=your_discord_bot_token_goes_here Replace your_discord_bot_token_goes_here with the bot token supplied to you by Discord.

Build and launch

When you're ready to compile your .ts files to JavaScript, run the command npm build.

To start the app locally, run the command npm start.