Code Monkey home page Code Monkey logo

aqua's Introduction

Aqua

A command handler built on top of Eris inspired by discord.js-commando.

I do not own most of the code in this repo. I simply compiled code from eris-sharder, eris-additions and discord.js-commando into one big package while also porting commando's use for Eris.

Example

const Aqua = require('aqua-client')
const fs = require('fs')
const sqlite3 = require("sqlite3");
const { open } = require("sqlite");


const client = new Aqua.AquaClient(
    process.env.token,
    {
        restMode: true,
    },
    {
        commandPrefix: 'kuro', // Kuroneko#5118 best bot.
        master: 'your id', //or an array of ids
        unknownCommandResponse: false,
        staff: 'staff id' // or an array of ids

    }
);


client.setProvider(
    open({
      filename: "guilds.sqlite",
      driver: sqlite3.Database
    }).then((db) => new Aqua.SQLiteProvider(db))
  );

client.registry.registerGroups([
    ['util', 'Utilities'],
])

// not all types from commando are available yet
client.registry.registerDefaultTypes()

// register your commands
client.registry.registerCommandsIn(`${__dirname}/commands/`)

client.connect()

This repo did not work with eris-sharder and thus, I tweaked it a bit to work. Along with the default options, I added a new aquaOptions option which can be modified for use with the AquaClient.

const { Secretary } = require('aqua-client')
 
new Secretary.Sharder(Discord, __dirname + "/client.js", {
    stats: true,
    debug: true,
    guildsPerShard: 1500,
    name: "NekoOfTheAbyss",
    clusters: 1,
    clientOptions: {
        restMode: true,
    },
    aquaOptions: {
        commandPrefix: 'kuro', // Kuroneko#5118 still best bot.
        master: 'your id', //or an array of ids
        unknownCommandResponse: false,
        staff: 'staff id' // or an array of ids
    }
});

This will be removed in case eris-sharder works with this package in the future.

aqua's People

Contributors

retraigo avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pydroid1020

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.