legowerewolf / discordbot.ts

Extensible, stateless-by-default, natural-language Discord bot
GNU General Public License v3.0
2 stars 1 forks source link
bot discord typescript

Discordbot.js

GitHub package.json version License Docs David - Dependency Checking GitHub Workflow Status

A simple way to add natural-language-powered Discord bots to your server.

Present status and future plans

Work's currently halted. Kinda ran out of ideas.

When discord.js v13 drops, I'm planning a near-full rewrite. Anticipated externally-visible changes include:

Internally, I want to:

Implementation

Install official bot Status

Luna is this repository's official Discord bot. She's configured with all the default options as specified in this repository, and is nearly always online.

Setup

If you want to build and run from source:

  1. git clone the repo.
  2. npm i to install all dependencies, and npm run build to build.
  3. Configure (see below)
  4. npm start to run your bot!

Alternately, compose a Dockerfile depending on the official images. It's not recommended to use :latest.

FROM legowerewolf/discordbot.ts:latest
COPY ./config.yaml ./config/
ENTRYPOINT [ "npm", "start" ]

Configuration

Bots support YAML v1.2/JSON for configuration.

Check out the commented defaults in ./config/defaults.yaml.

User configurations go in ./config/config.yaml or an environment var called botConfig.

Minimum viable configuration

---
APIKeys:
    discord: [API key here]

Permissions

With all features and plugins, the bot needs the following permissions to run.

Contributing

Things that need to get done: