npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discorda-kiro

v1.0.0

Published

<p align="center"><a href=https://github.com/1Computer1/discord-akairo><img src="https://a.safe.moe/PwUgW.png"/></a></p><p align="center"><a href=https://www.npmjs.com/package/discord-akairo><img src="https://img.shields.io/npm/v/discord-akairo.svg?maxAge

Downloads

12

Readme

Example

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!');
});

Features

Completely modular commands, inhibitors, and listeners.

  • 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.

Flexible command handling and creation.

  • Command aliases.
  • Command cooldowns.
  • Client and user permission checks.
  • 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.

Complex and highly customizable arguments.

  • 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.

Blocking and monitoring messages with inhibitors.

  • Asynchronous execution.
  • Run at various stages of command handling.
    • On all messages.
    • On messages that are from valid users.
    • On messages before commands.

Modular listeners.

  • No more gigantic main files with listeners.
  • Adding your own emitters.

Useful utility methods available.

  • Resolvers for members, users, and others that can filter by name.
  • Shortcut methods for making embeds and collections.
  • And some other useful things.

Database providers.

  • Built-in support for sqlite and sequelize.
  • Works on entire table or single JSON column.
  • Caching data from databases.
  • Default values.

Installation

Requires Node 8 and Discord.js v12.

discord-akairo
npm install discord-akairo

discord.js
npm install discord.js

sqlite (optional)
npm install sqlite

sequelize (optional)
npm install sequelize

Links

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.

Contributing

Open an issue or a pull request!
Everyone is welcome to do so.
Make sure to run npm run lint before committing.