Go to file
Szymon Uglis c9ed30c040 Cache user in dm channel
[ci skip]
2020-07-28 22:21:32 +02:00
.github Add pull request template 2020-06-18 15:27:04 +02:00
nyxx Cache user in dm channel 2020-07-28 22:21:32 +02:00
nyxx.commander Fix typo, dont compile regex every time and add shard getter for CommandContext, rename library names 2020-07-26 23:38:53 +02:00
nyxx.extensions Fix typo, dont compile regex every time and add shard getter for CommandContext, rename library names 2020-07-26 23:38:53 +02:00
.gitignore Add dartdocs to ignored 2020-06-16 02:24:31 +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 Rewritten contributing guidelines 2020-06-17 23:40:33 +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.