1.0.11 • Published 4 years ago

@qntnt/dissonance v1.0.11

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

Overview

To build bots with this framework, here's the basic process.

  1. Initialize and configure Dissonance
  2. Define some CommandPlugins
  3. Register your CommandPlugins with Dissonance

CommandPlugins

CommandPlugins are abstract classes that you can extend that provide you with lifecycle methods to simplify command handling. By default, a CommandPlugin can handle either message commands or application commands (slash commands).

Plugin Lifecycle

  1. attach
  2. start
  3. validateCommand
  4. parseArgs (required)
  5. validateArgs
  6. handle (required)
  7. cleanup

Run the example

Create a new Discord application, set up the bot, and invite it to your testing server. Set the following environment variables.

VariableDescription
DISCORD_TOKENThe bot token
DISCORD_APPLICATION_IDThe bot application's application id
yarn
yarn example
1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago