1.0.6 • Published 6 years ago

reputation-core v1.0.6

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

Reputation Core

npm npm license GitHub issues

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

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago