Skip to content

Pjoottr/boolean

 
 

Repository files navigation

Boolean

About

A bot for the Conaticus Discord server. A document of the development process has been made here: https://www.youtube.com/watch?v=xq2jR3_msmk.

Documentation

Setup

Installation

  • Clone/Fork the repository
  • Run npm i

Setting up the .env

In order to setup the bot, you must create a .env in the parent directory. In this file you must declare the bot's CLIENT_ID and TOKEN - this is the client and token from the Discord Developer Portal.

Syntax:

CLIENT_ID="your bot client id"
TOKEN="your bot token"

This will automatically be ignored from the .gitignore. so do not worry about this data being public.

Running the bot

In order to run the bot, you must run npm run dev to run the TypeScript developer environment. Do not worry about the other package.json scripts, they are for production.

Other Information

Embed Colours

General: "ORANGE"
Success: "GREEN"
Error: "RED"

Configuration

The configuration file is used for constant variables that will be reused in the application, such as ids and reaction messages. It is located at /src/config.ts - feel free to add anything that matches this description.

Data

Data is currently stored in the data.json file. Only reaction messages are stored here, which is why a database is not present. If you are adding more data handling to the bot, please switch to sqlite.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.9%
  • Shell 0.1%