1.3.0 • Published 6 years ago
honor-bot-framework v1.3.0
Welcome
if You have any problems Contact me, or Publish it at The Issues page in GitHub. I have a schedule, Scroll to the Bottom!
- Email ML2DOfficial@gmail.com
Why
I wanted a simple way to make a bot so i made HBF
Install
npm i honor-bot-framework
Usage
const Honor = require('honor-bot-framework')
const client = new Honor.Client({
name: 'testbot',
author: 'Bob Wilson',
prefix: 'bob!',
token: '<token>'
})
// Load Commands
client.LoadCommands(__dirname+<path>, err => {if(err throw err;)});
//login
client.login()
Example Command
Get rid of Discord XD, It doesn't work.... So
Hello
const Honor = require('honor-bot-framework')
module.exports.run = async (client, message, args) => {
let name = args[0]
message.channel.send(`Hello ${name}`)
// => Hello Bobby
}
module.exports.help = {
name: 'Hello'
// More Options coming
}
Logging
Honor.GetChannel('logs', function(channel){
Honor.log('bobson', 'hello', 'public', channel)
// Replace 'Bobson' with message.author.
// Replace 'public' with message.channel.
// Replace 'hello' with the command name.
});
Features
Honor.MissingArg
Usage
if(!reason) return Honor.MissingArg('Reason', 'Please provide a reason', 'ban', '<reason>', message)
// Argument Details Name Tags.
Honor.needPerms
Usage
if(!message.member.hasPermission('ADMISTRATOR')) return Honor.needPerms('ADMINSTRATOR', message);
// If statement checks if the Member that typed !ban had The Permission Admin.
Honor.GetChannel
Get Channel
Honor.GetChannel('public', function(channel) {
channel.send('Hello im Bobby')
});
Honor.log
Usage
Honor.log(message.author, 'ban', message.channel, 'logs')
Schedule
So I have a schedule for developing this! Sometimes i might skip a day, and if i do im sleeping :)
1.3.0
6 years ago
1.2.9
6 years ago
1.2.8
6 years ago
1.2.7
6 years ago
1.2.6
6 years ago
1.2.5
6 years ago
1.2.4
6 years ago
1.2.3
6 years ago
1.2.2
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
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