Skip to content

Snuggle/Ba

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Ba Discord Bot

Github License Add to your server Join Development Server

Ba adds reactions to messages posted in Discord channels, based upon the text within them, with matching regexes.


Table of Contents

Adding Ba to your Discord server

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.

Inviting the public Ba account

If you want to invite the public Ba account to your server, go here.

Setting up your own instance of Ba

Requirements

Setting up a Discord bot instance

  • 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

Installation Instructions

  • TODO: Write this

Inviting your instance of Ba to your server

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.

Using Ba

Ba's reactions

You can use the /emotes command to see a list of Ba's reactions or a list of reactions can be found here.

Dependencies and frameworks

Contributing to Ba

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.

Bug reports

Please report bugs by opening an issue on GitHub.

Developing Ba

Requirements

Running Ba for local development

  1. clone the repo and move into the directory.
    $ git clone https://github.com/asleepysheepy/Ba.git ba && cd ba
  2. Install dependencies with yarn.
    $ yarn install
  3. Create .env file.
    $ cp .env.sample .env
  4. Setup your evironment variables in the .env file.
  5. Start the docker processes.
    $ docker-compose up -d
  6. Run the mirgations to set up the database.
    $ yarn typeorm migration:run
  7. Run the database seeder to create some emotes.
    $ yarn seed seed
  8. Start Ba.
    $ yarn start

package.json scripts

  • yarn build - Compiles Ba's typeScript code into plain JavaScript
  • yarn lint:all - Run eslint over Ba's code
  • yarn lint:fix - Run eslint over Ba's code, fixing mistakes
  • yarn seed - Access the typeorm-seeding CLI
  • yarn start - Compile Ba and start up the bot process
  • yarn typeorm - Access Typeorm's CLI

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Ba Discord Bot ๐Ÿ‘

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 94.7%
  • HCL 2.9%
  • JavaScript 2.4%