discord-akairo

A bot framework for Discord.js.

MIT License

Downloads
744
Stars
556
Committers
44

Bot releases are visible (Hide)

discord-akairo - 5.0.1

Published by 1Computer1 over 7 years ago

Changes

  • prefix option can now be/return an array for multiple prefixes.
  • CommandHandler#handle returns a Promise now.
  • AkairoModule#enable and AkairoModule#disable returns true if successful, false if not.
  • Added logging errors from commands and inhibitors so you don't have to catch unhandled rejections yourself.
  • Made some properties unwriteable (they were not meant to be changed).
  • Fixed ClientUtil, although it was somehow working?!
  • Fixed the docs a bit and moved some things around to more logical places.
discord-akairo - 5.0.0

Published by 1Computer1 over 7 years ago

Breaking Changes

  • Framework renamed to AkairoClient which extends Client.
    The constructor no longer takes a client, and ClientOptions are merged.
    This means that all this.framework should be changed to this.client.
  • IDs are now sanitized for SQLiteHandler.
    This should not be a problem if you're doing things correctly.
  • SQLiteHandler#init renamed to SQLiteHandler#load.
  • Behind-the-scenes structural changes (should not break anything):
  • Added AkairoHandler which the handlers extends.
    Can be used for your own module loading and reloading.
  • Added AkairoModule which Command, Inhibitor, and Listener extends.

Changes

  • There can now be multiple ownerID by putting them in an array.
  • SQLiteHandlerOptions now has an init option.
    This is an array of IDs or a function returning an array of IDs.
  • Added AkairoClient#addDatabase.
    All databases added will have SQLiteHandler#load called once client ready.
    The IDs are taken from the handler's init option.
  • Added ArgumentMatch rest.
    Similar to ArgumentMatch text, but without the bothersome index option.
  • Added ArgumentType emoji for custom emojis.
  • ArgumentType text and content are now processed with the argument's type.
  • Added ClientUtil#embed for when you're too lazy to require RichEmbed.
  • Added ClientUtil#displayRole and ClientUtil#hoistedRole.
  • Added tutorials to the documentation.
discord-akairo - 4.0.0

Published by 1Computer1 over 7 years ago

Changes

  • Removed DatabaseHandler. Use something better, like redis.
  • Heavily fixed SQLiteHandler.
  • SQLiteHandler constructor now has an option param instead of the previous params.
  • JSON option for SQLiteHandler.
  • Add emitters options to FrameworkOptions.
  • disablePreInhib and disablePostInhib changed to preInhibitors and postInhibitors.
  • defaultValue can now be a function.
  • Added reloadAll to handlers.
  • Added categories to inhibitors and listeners.
  • Inhibitor preMessage option changed to type.
  • Code improvements.
discord-akairo - 3.1.4

Published by 1Computer1 over 7 years ago

Changes

  • Fixed a typo that broke an event.
discord-akairo - 3.1.3

Published by 1Computer1 over 7 years ago

Changes:

  • Fixed sqlite not actually being optional. Oops.
  • displayHexColor().
  • Some stuff here and there.
discord-akairo - 3.1.2

Published by 1Computer1 over 7 years ago

Changes:

  • Fixed the defaultValue not being resolved in Discord types.
  • Fixed dynamic types not being dynamic.
  • Exposed Constants.
discord-akairo - 3.1.1

Published by 1Computer1 over 7 years ago

Changes:

  • Fixed bug with empty message content...
  • Added the other two inhibitors into ListenerHandler emitters.
discord-akairo - 3.1.0

Published by 1Computer1 over 7 years ago

Changes:

  • Fix resolvers with IDs.
  • Various new ClientUtil stuff.
  • DatabaseHandler is now an in-memory config storing kinda thing.
  • More events for when things are added/removed/reloaded.
  • New types for resolving users, channels, etc.
  • Using a function in type can now modify the argument.
discord-akairo - 3.0.1

Published by 1Computer1 over 7 years ago

Changes:

  • Properly throw errors from commands/inhibitors.
  • Fix sticky split behavior with prefix.
  • Command prefix no longer case sensitive.
discord-akairo - 3.0.0

Published by 1Computer1 over 7 years ago

Big release! Lots of breaking changes.

Breaking Changes:

  • Moved token to a param for login().
  • Changed how the Framework, Command, Inhibitor, and Listener constructor works. Most params have been moved to the option object param. Look in docs/examples for more info.
  • The options objects' properties have been changed a bit.
  • The options object also isn't saved now, so properties are .property instead of .options.property, for example.
  • reloadCommand(), addCommand(), etc. are now just reload(), add(), etc.
  • Removed .format() and .example.
  • Renamed parse to match in arguments.
  • Renamed commandInvalid to messageInvalid.
  • Removed commandPrefixInvalid event, merged with messageInvalid.
  • Differentiate pre-message and post-message handling inhibitors. New messageBlocked event, moved some emits from commandBlocked to there.
  • There may be some that I have missed!

Changes:

  • Handlers are now optional when defining in framework.
  • Sticky split, similar to quoted but a bit different.
  • Prefix can now be an array of strings.
  • New types: dynamicInt, array of strings, and function.
  • ownerID and selfbot are now defined to client.
  • Command category.
  • Command, inhibitor, and listener enable() and disable().
  • .emitters for defining your own emitters.
  • Resolve methods now find parts of names. Set wholeWord to true to use the old behavior.
  • More properties for commands, e.g. description.
  • Lots of other minor changes.
  • Awesome looking docs.
discord-akairo - 2.2.2

Published by 1Computer1 almost 8 years ago

Changes:

  • Fix this reference in Listeners.
  • Sorry for the frequent updates, but it's a work in progress.
discord-akairo - 2.2.1

Published by 1Computer1 almost 8 years ago

Changes:

  • Fix bug with SQLiteHandler not using default config.
discord-akairo - 2.2.0

Published by 1Computer1 almost 8 years ago

Changes:

  • You can now use this.client instead of this.framework.client in commands, inhibitors, etc.
  • Collections!
  • Integer type for arguments.
  • Command format().
  • ClientUtil fixed, resolve methods can now be case sensitive.
  • ClientUtil resolvePermissionNumber().
  • DatabaseHandler now has sanitize(), desanitize(), and saveAll().
  • Cleaner docs.
discord-akairo - 2.1.1

Published by 1Computer1 almost 8 years ago

Changes:

  • A nice readme.
  • Removed examples.
  • 'split' split option that just does message.content.split(' ') for people who are used to that.
  • disableBuiltIn to disable built-in inhibitors.
  • parseFloat() for numbers instead of parseInt().
  • Fix flag prefixes not being checked.
discord-akairo - 2.1.0

Published by 1Computer1 almost 8 years ago

Changes:

  • Documentation! Thanks to Cat-who-loves-bot for setting it up.
  • ClientUtil now has resolveEmoji and createInvite.
  • Commands can now have a category.
  • Other minor changes.
discord-akairo - 2.0.0

Published by 1Computer1 almost 8 years ago

Changes:

  • SQLiteHandler throw error if database file is not opened.
  • ClientUtils, added to your client as client.util if the framework option addUtil is true.
  • Command regex changed to fix some problems with quotes.
  • Prefix and flag parse args now take last word found rather than first.
  • Added content parse type.
  • Command exec no longer has content param.
  • Added index property to argument.
discord-akairo - 1.0.0

Published by 1Computer1 almost 8 years ago

Initial release.

Package Rankings
Top 2.71% on Npmjs.org
Related Projects