No description
Find a file
2021-05-07 22:49:40 +02:00
.github New slash commands API. subpackages directories are now consistent with names 2021-04-16 01:42:55 +02:00
nyxx Allow User Tokens 2021-05-07 22:49:40 +02:00
nyxx_commander Bump version and allow dev sdk. Fixes #116 2021-05-07 01:40:03 +02:00
nyxx_extensions Bump version and allow dev sdk. Fixes #116 2021-05-07 01:40:03 +02:00
nyxx_interactions Bump version and allow dev sdk. Fixes #116 2021-05-07 01:40:03 +02:00
.gitignore Add Dart Docs & Sort final issues. 2021-03-29 21:17:34 +02:00
CONTRIBUTING.md Fix new lines at the end of file 2021-03-29 21:18:20 +02:00
LICENSE Changelog, license update, Implement stage channels, implements new permissions 2021-04-07 22:54:14 +02:00
README.md Remove dead code; Update readme 2021-04-10 12:25:02 +02:00

nyxx

pub documentation documentation documentation documentation

Simple, robust framework for creating discord bots for Dart language.


Features

  • Slash commands support
    Supports and provides easy API for creating and handling slash commands
  • Commands framework included
    A fast way to create a bot with command support. Implementing the framework is simple - and everything is done automatically.
  • Cross Platform
    Nyxx works on the command line, in the browser, and on mobile devices.
  • Fine Control
    Nyxx allows you to control every outgoing HTTP request or WebSocket message.
  • Complete
    Nyxx supports nearly all Discord API endpoints.

Quick example

Basic usage:

void main() {
  final bot = Nyxx("TOKEN", GatewayIntents.allUnprivileged);

  bot.onMessageReceived.listen((event) {
    if (event.message.content == "!ping") {
      event.message.channel.getFromCache()?.sendMessage(content: "Pong!");
    }
  });
}

Slash commands:

void main() {
  final bot = Nyxx("<%TOKEN%>", GatewayIntents.all);
  final interactions = Interactions(bot);

  interactions
    ..registerHandler("test", "This is test comamnd", [], handler: (event) async {
      await event.acknowledge(showSource: true);
      await event.reply(content: "This is example message result");
    });
}

Commands:

void main() {
  final bot = Nyxx("TOKEN", GatewayIntents.allUnprivileged);

  Commander(bot, prefix: "!!!")
    ..registerCommand("ping", (context, message) => context.reply(content: "Pong!"));
}

More examples

Nyxx examples can be found here.

Commander examples can be found here

Slash commands (interactions) examples can be found here

Example bots

Documentation, help and examples

Dartdoc documentation is hosted on pub. This wiki just fills gap in docs with more descriptive guides and tutorials.

Discord API docs

Discord API documentation features rich descriptions about all topics that nyxx covers.

Discord API Guild

The unofficial guild for Discord Bot developers. To get help with nyxx check #dart_nyxx channel.

Dartdocs

The dartdocs page will always have the documentation for the latest release.

Dev docs

You can read about upcoming changes in the library on my website.

Wiki

Wiki documentation are designed to match the latest Nyxx release.

Contributing to Nyxx

Read contributing document

Credits