Ba adds reactions to messages posted in Discord channels, based upon the text within them, with matching regexes.
If you want to run Ba on your server, you can either invite the public Ba account or set up your own Discord bot with Ba's code.
If you want to invite the public Ba account to your server, go here.
- Node.js, v16.6.0 or higher
- Yarn Package Manager
- Docker/Docker Compose
- Sign in to Discord
- Go to the Discord Dev Portal, and click on 'My Apps'
- Click on 'New App' to create a Discord application
- Go to the Bot tab, and click the Add Bot button to create a bot user
- Copy the token under Bot/Token - you will need this in the next step
- TODO: Write this
Click the 'Generate OAuth2 URL' button in the Discord Developer pane to generate your invite URL. Using the invite URL, you can invite your instance of Ba to any Discord server on which you have administrator permissions.
You can use the /emotes
command to see a list of Ba's reactions or a list of reactions can be found here.
- Discord.js - Discord API for Node.js
- ESLint - Linting
- PostgreSQL - Persistent storage
- TypeORM - Database Interaction
- TypeORM Seeding - Seeding database data
- Winston - Log management
We welcome all contributors to Ba. Your pull requests will be reviewed by the authors prior to merging. Please document your code, and play nicely with other contributors.
Please report bugs by opening an issue on GitHub.
- Docker/Docker Compose
- Node.js v16.6.0 or higher
- Yarn
-
clone the repo and move into the directory.
$ git clone https://github.com/asleepysheepy/Ba.git ba && cd ba
-
Install dependencies with yarn.
$ yarn install
-
Create
.env
file.
$ cp .env.sample .env
-
Setup your evironment variables in the
.env
file. -
Start the docker processes.
$ docker-compose up -d
-
Run the mirgations to set up the database.
$ yarn typeorm migration:run
-
Run the database seeder to create some emotes.
$ yarn seed seed
-
Start Ba.
$ yarn start
yarn build
- Compiles Ba's typeScript code into plain JavaScriptyarn lint:all
- Run eslint over Ba's codeyarn lint:fix
- Run eslint over Ba's code, fixing mistakesyarn seed
- Access the typeorm-seeding CLIyarn start
- Compile Ba and start up the bot processyarn typeorm
- Access Typeorm's CLI
This project is licensed under the MIT License - see the LICENSE file for details