Go to file
2020-05-18 22:52:40 +02:00
.github/ISSUE_TEMPLATE Update issue templates 2020-05-18 22:52:40 +02:00
example Added new classes to Vm and Browser libraries instead of special method. 2019-07-14 00:21:27 +02:00
lib Fix misspell in postprocessor documentation 2019-08-23 20:36:41 +00:00
test Added new classes to Vm and Browser libraries instead of special method. 2019-07-14 00:21:27 +02:00
.gitignore Fix folder ignore 2019-01-10 14:46:18 +01:00
.travis.yml Fix travis error, test against specific dart version instead of latest one 2019-07-14 16:33:38 +02:00
analysis_options.yaml Fix dartfmt errors 2019-01-08 10:43:46 +01:00
CHANGELOG.md Fix version name 2019-02-10 13:22:21 +01:00
CONTRIBUTING.md Fixed branch name 2018-06-17 21:12:52 +02:00
LICENSE Changed to full names in license 2019-01-11 10:29:56 +01:00
pubspec.yaml Added new classes to Vm and Browser libraries instead of special method. 2019-07-14 00:21:27 +02:00
README.md a letter 2019-12-21 22:19:45 +01:00



Build Status Pub documentation

Simple, robust framework for creating discord bots for Dart language. This is a fork of Hackzzila's nyx.


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.

Sample

Basic usage:

void main() {
  final bot = NyxxVm(Platform.environment['DISCORD_TOKEN']);
  
  bot.onMessageReceived.listen((MessageEvent e) {
    if (e.message.content == "!ping") {
      e.message.channel.send(content: "Pong!");
    }
  });
}

Commands:

void main() {
  final bot = NyxxVm(Platform.environment['DISCORD_TOKEN']);
  
  CommandsFramework('!', bot)
    ..admins = [nyxx.Snowflake("302359032612651009")]
    ..registerLibraryCommands();
}

@Command(name: "single")
Future<void> single(CommandContext context) async {
  await context.reply(content: "WORKING");
}

Documentation, help and examples

Discord API docs

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

Discord API Guild

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 to the library on my website.

Wiki

Wiki documentation are designed to match the latest Nyxx release.