reputation-core
v1.0.6
Published
A discord bot framework based on modules.
Downloads
17
Readme
Reputation Core
A transformed version of the module handler from the Reputation Bot. It is now an npm module to handle any discord bot. ReputationCore is build off of Discord.js
Simple Usage
Make sure to run npm install reputation-core
index.js
const BotCore = require('reputation-core');
let bot = new BotCore({modulePath: 'modules', token: 'ABCDEF'});
bot.on('ready', () => {
console.log(`Logged in as ${bot.client.user.tag}`);
})
modules/ping.mod.js
exports.id = 'ping';
exports.onLoad = api => {
api.commands.add('ping', (msg) => {
// msg is the Discord Message (discord.js)
msg.channel.send(':ping_pong: Pong!');
})
};
Documentation
todo