1.1.0 • Published 4 years ago

commando-mongodb v1.1.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Commando MongoDBProvider

Node.js Package Downloads Version

A MongoDB provider for discord.js-commando

About

UPDATE This update provides backward compatibility with older versions of discord.js, these changes should also be getting implemented in to Dizzy's work on commando-provider-mongo. When/if that happens I encourage folks to return to using commando-provider-mongo as this was never entended to be a copy-cat-package only a fix should the original never see an update.

This is a slight rework of the commando-provider-mongo package by Dizzy. This rework is designed to work with discord.js v12 and later. If you are running an earlier version of discord.js please use Dizzy's commando-provider-mongo package.

Commando is the official framework for discord.js, to allow for easy development of discord bot commands and functionality.

Installation

npm install --save mongodb commando-mongodb

Usage

const MongoClient = require('mongodb').MongoClient;
const MongoDBProvider = require('commando-provider-mongo');

...

client.setProvider(
	MongoClient.connect('mongodb://localhost:27017').then(client => new MongoDBProvider(client, '<db_name>'))
).catch(console.error);

...

License

MIT © John Weland

1.1.0

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago