nyxx/nyxx
2021-03-29 21:17:57 +02:00
..
example Fix doc typos, fix return type and examples, add of and default constructor to PermissionOverrideBuilder 2020-07-03 21:39:03 +02:00
lib Fix #102; Fix docs; Fix types; Move some internal api paths to _HttpEndpoints 2021-03-29 21:17:57 +02:00
test Fix bug with not respecting inline fields 2021-03-29 21:17:34 +02:00
analysis_options.yaml Rewritten analyzer rules. First docs and style changes. #73 2020-05-17 21:59:52 +02:00
CHANGELOG.md Update CHANGELOG. Remove unneeded files 2021-03-29 21:17:33 +02:00
LICENSE Requirements for publishing in pub 2020-08-24 08:48:59 +02:00
pubspec.yaml Add Dart Docs & Sort final issues. 2021-03-29 21:17:34 +02:00
README.md Requirements for publishing in pub 2020-08-24 08:48:59 +02:00



Build Status Pub documentation

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


Features

  • 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() {
  var bot = Nyxx("TOKEN");

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

Commands:

void main() {
  final bot = Nyxx("TOKEN");

  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

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