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.
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.)
- Node.js
- Make sure all of the prequisites are installed.
- Clone the repository.
- Install dependencies using the command
npm install
- Or, if you're using yarn, run the command:
yarn
- Or, if you're using yarn, run the command:
- Set up your application with Discord. (This is covered in the first few sections of the discord.js guide).
- In the root directory, create a file named
.env
. Inside of it, insert the following code:bot_token=your_discord_bot_token_goes_here
Replaceyour_discord_bot_token_goes_here
with the bot token supplied to you by Discord.
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
.