A wrapper for DiscordJS, with mongo integration and an efficient command handler.

Usage no npm install needed!

<script type="module">
  import kiriclient from '';


Kiri Client

KiriClient is a light weight wrapper around Discord.js, providing easy built in command handling, as well as optional MongoDB integration.

The KiriClient command handler recursively searches all files inside the commands folder provided, allowing complex orginization.


The client inherits all base discordjs properties.

const Kiri = require("kiriclient");

const client = new Kiri.KiriClient({directory: __dirname});

client.on("message", (msg) => {


KiriClient options

directory : required, defines the central file where the commands folder will be located.

prefix : the bot's prefix. Defaults as "!"

cmddir : where the command files will be located. Defaults as "/commands"