Skip to content

Releases: nyxx-discord/nyxx

0.20.0 - Commands framework rework, full emojis support

02 Jul 07:22
Compare
Choose a tag to compare

This version brings big API changes:

  • Commands class divided into MirrorsCommandFramework and InstanceCommandFramework.
  • Command class has now context instead of Message object in method call.
  • Commands now can into subcommand via MirrorsCommandFramework
  • Commands can create currying calls. delay() methods provides ability to wait for another input from user.
  • Emojis big update - now adding, removing reactions and sending emojis are full supported.
  • Added big. massive class UnicodeEmojis which contains about 1k of unicode emojis ready for you use.

0.19.1 - Fixes, Commands gains aliases

30 Jun 20:55
Compare
Choose a tag to compare

This patch fixes few bugs and updates codebase:

  • Fixes bug Hackzzila/nyx#23
  • Added few documentation strings
  • Added support for aliases for CommandFramework
  • Tidy up directory structure, changes in module structure

0.19.0 - Embeds, few internal fixes, Invites

29 Jun 17:19
Compare
Choose a tag to compare

I forgot to create this release, so it's few days late, but whatever 😄

This version includes:

  • Support for embeds(both creating and parsing)
  • Fixed many internal errors
  • Adds features like bulkRemoveMessages

0.18.1 - Eventhandler deprecation, Introducing streams

26 Jun 11:47
Compare
Choose a tag to compare

This version drastically changes API from 0.18.0 from overriding handler class to simply listeting to streams:

  Stream<Message> commandNotFoundEvent;
  Stream<Message> forAdminOnlyEvent;
  Stream<Message> requiredPermissionEvent;

To make use of streams just listen to it:

var commandsListener = new discord.Commands('~~', bot)
    ..add(new TestCommand())
    ..commandNotFoundEvent.listen((m) {
      m.channel.sendMessage(content: "Command '${m.content}' not found!");
    });

0.18.0- Command event handlers

26 Jun 10:26
Compare
Choose a tag to compare

This version adds few dartdocs documentation and more important - adds command event handlers.

EventHandler is class which contains method to handle errors when dispatching command

abstract class EventHandler {
  Future commandNotFound(Message message);
  Future forAdminOnly(Message message);
  Future requiredPermission(Message message);
}

Override this class and add to CommandFramework instance:

var commandsListener = new discord.Commands('~~', bot)
    ..add(new TestCommand())
    ..eventHandler = new CustomEventHandler();

0.17.2 - Docs update

21 Jun 17:51
Compare
Choose a tag to compare

In this version:

  • ICommand interface is removed.
  • Fixed typos in documentation

v0.17.1 - CommandFramework fix

20 Jun 14:18
Compare
Choose a tag to compare

This updates added property in Commands class. It allows to proccess all bots messages too - be carefull with this - you can create message loop.

With this settings your bot will proccess all messages:

var commandsHandler = new discord.Command('~~', client)
   ...ignoreBots = false;

v0.17.0 - Big CommandsFramework changes

20 Jun 09:45
Compare
Choose a tag to compare

This version includes:

  • Fixed dispatch pipe for CommandFramework
  • Can set bots games
  • Fixed Hackzzila/nyx#20
  • Added few dartdocs
  • Fixed dartanalyzer few bugs