A modular and highly customizable bot framework for Discord.js v11
const { AkairoClient } = require('discord-akairo');
const client = new AkairoClient({
ownerID: '9876543210',
prefix: '$',
commandDirectory: './src/commands/',
inhibitorDirectory: './src/inhibitors/',
listenerDirectory: './src/listeners/'
});
client.login('TOKEN').then(() => {
console.log('Started up!');
});
- Reading files recursively from directories.
- Adding, removing, and reloading modules.
- Categorization for modules.
- Working with both object and class export.
- Almost everything is optional or modifiable.
- Creating your own handlers and module types.
- Command aliases.
- Command cooldowns.
- Running commands on edits and editing previous responses.
- A dynamic command prefixing system.
- Multiple prefixes.
- Variable prefixes per message.
- Overwriting prefixes for commands.
- Using mentions as a prefix.
- Different ways to trigger a command.
- Regular expression triggers.
- Conditional triggers.
- From somewhere else in the bot.
- Support for quoted arguments.
- Arguments based on previous arguments.
- Several ways to match arguments, such as flag arguments.
- Casting input into certain types.
- Simple types such as string, integer, float, url, date, etc.
- Discord-related types such as user, member, message, etc.
- Including plural forms: users, members, etc.
- Types that you can add yourself.
- Asynchronous type casting.
- Argument prompting.
- Can also be based on previous arguments.
- Customizable prompts with embeds, files, etc.
- Infinite argument prompting.
- Asynchronous execution.
- Run at various stages of command handling.
- On all messages.
- On messages that are from valid users.
- On messages before commands.
- No more gigantic main files with listeners.
- Adding your own emitters.
- Resolvers for members, users, and others that can filter by name.
- Shortcut methods for making embeds and collections.
- Helper methods for prompting users for input.
- And some other useful things.
- Built-in support for
sqlite
andsequelize
.- Works on entire table or single JSON column.
- Caching data from databases.
- Default values.
Requires Node 6 or higher and Discord.js 11.1.0 or higher.
discord-akairo
npm install discord-akairo
discord.js
npm install discord.js
sqlite (optional)
npm install sqlite
sequelize (optional)
npm install sequelize
Repository: https://github.com/1Computer1/discord-akairo.
Changelog: https://github.com/1Computer1/discord-akairo/releases.
Documentation: https://1computer1.github.io/discord-akairo.
Tutorials: https://1computer1.gitbooks.io/akairo-tutorials/content/.
Discord Server: https://discord.gg/arTauDY.
Open an issue or a pull request!
Everyone is welcome to do so.
Make sure to run npm run lint
before committing.