Go to file
Szymon Uglis a628903f43 [WIP] Proper handling for connecting shards
fixed client deserialization in channel create event
adjust shard count in nyxx and client options,
[ci skip]
2020-06-02 00:11:02 +02:00
.github/ISSUE_TEMPLATE Update issue templates 2020-05-18 22:52:40 +02:00
.patches Add data-guild patch 2020-05-04 23:56:39 +02:00
nyxx [WIP] Proper handling for connecting shards 2020-06-02 00:11:02 +02:00
nyxx.commander Docs fixes and additions. Code structure fixes, optimizations 2020-05-28 22:08:05 +02:00
nyxx.interactivity Docs fixes and additions. Code structure fixes, optimizations 2020-05-28 22:08:05 +02:00
.gitignore Update gitignore and cleanup 2020-04-05 00:10:27 +02:00
.travis.yml Fix travis, once again 2019-12-18 21:34:04 +01:00
CHANGELOG.md Fix version number in compare url 2019-12-18 22:08:12 +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
README.md a letter 2019-12-21 22:19:45 +01:00
travis.sh Fix travis 2019-12-18 21:36:18 +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.