1.8.2 • Published 5 years ago

hryra.js v1.8.2

Weekly downloads
5
License
GPL-3.0
Repository
github
Last release
5 years ago

Hryra.JS

Hryra is a Expansive Client for Discord.JS. Support: Discord Email

Client

Main Client

DEPRECATED

const Hryra = require('hryra.js');

const client = new Hryra.MainClient('SuperSecretBotTokenHere', {
    // Discord.Client Settings
})

client.login(); // Uses the given token

Advanced Client

Advanced Client uses the Command Class

const Hryra = require('hryra.js')

const client = new Hryra.AdvancedClient('SuperSecretBotTokenHere', {
    // Discord.Client Settings
}, {
    name: 'Boto1000',
    desc: 'A Awesome Bot',
    prefix: '!',
    owners: ['YourID'],
    builtin: true, // Must have this if you want to have the built in Command Caller and Handler
    commanddir: require('path').join(__dirname, 'commands'),
    defaultHelpCmd: false,
    mentionsPrefix: true
});

client.login() // Login (if enabled) w/ Automatic Command Handler and Command Caller :)

Command

Make Sure all of the settings are there, they dont have to be filled in.

let { AdvancedClient, Command, Message } = require('hryra.js');
module.exports = class LogCommand extends Command {
    constructor() {
        super({
            name: 'log', // Command Name ex: !log
            desc: 'logs to the console', // Command Desc
            usage: '[message]', // Command Usage
            group: 'util', // Command Category
            subof: 'None', // For Sub Category Commands
            aliases: ['console.log'], // Command Aliases
            disabled: false, // Disabled Command
            guildOnly: false, // Guild Only Command
            ownerOnly: false, // Owner Only Command
            permissions: ['MANAGE_MESSAGES']; // User Perms
        });
    };

    /** 
     * @param {AdvancedClient} client
     * @param {Message} message
     * @param {Array<String>} args
    */

    async process(client, message, args) {
        if(!args[0]) return message.channel.send('Please give me something to log');
        console.log(args.join(" "));
        message.channel.send(`Logged ${args.join(" ")}`);
    }
}

Copyright © 2018-2019 DefyDevelopments

1.8.2

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.9

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6-defy

5 years ago

1.7.6

5 years ago

1.7.5-defy

5 years ago

1.7.4-defy

5 years ago

1.7.3-defymusic

5 years ago

1.7.3

5 years ago

1.7.2-defymusic

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.9

5 years ago

1.6.8

5 years ago

1.6.7

5 years ago

1.6.6-alpha

5 years ago

1.6.5-alpha

5 years ago

1.6.4-dev

5 years ago

1.6.3-dev

5 years ago

1.6.2

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.5.9

5 years ago

1.5.8

5 years ago

1.5.7

5 years ago

1.5.6

5 years ago

1.5.5

5 years ago

1.5.4

5 years ago

1.5.3

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.7

5 years ago