1.0.4 • Published 4 years ago
plugincord v1.0.4
Plugin Manager for Discord Bots.
A module that manages plugins that will easily add new features to your Discord Bot.
Installation
npm install plugincord
Launch of the module
const PluginManager = require('plugincord');
const manager = new PluginManager(client);
manager.start("src/plugins"); // Full path of directory that includes plugin files.
Plugin Example
module.exports = {
name: "example-plugin",
run(client) {
setInterval(() => {
const channel = client.channels.cache.get("830755293809475584");
channel.send("This message sended via " + this.name + " plugin!");
}, 10 * 1000)
},
};