nebbyjs

1.0.2 • Public • Published

About

NebbyJS is a user friendly package which allows you to create a discord bot to prevent killing shinies/other Pokémon of choice for the Myuu Discord Bot

⚙️ Installation

Node.js 16.6.0 or newer is required.

npm install nebbyjs

📗 Usage | index.js

const NebbyJS = require('aoi.js');

const fs = require('fs');
const config = require('./node_modules/nebbyjs/config.js');

const bot = new NebbyJS.Bot({
   token: "token", //Your discord bot token from discord developer portal
   prefix: "!", //Prefix, you can set it as anything you want.
   intents: "all",
        database: {
            type: "default",
            path: "./db/",
            tables: ["nebbyjs"],
            promisify: false
        }
 });



require('./node_modules/nebbyjs/handler/status')(bot)
require('./node_modules/nebbyjs/handler/callbacks')(bot)

const loader = new NebbyJS.LoadCommands(bot);
(async () => {
await loader.load(bot.cmd, "./node_modules/nebbyjs/killing-preventer/")
})()

const files = fs.readdirSync('./node_modules/nebbyjs/events').filter(file => file.endsWith('.js'))
files.forEach( x => {
require(`./node_modules/nebbyjs/events/${x}`)(bot)
});

bot.variables({
    lastUser: "", //DO NOT EDIT
    color: "BLUE", //Embed color
})

Help

If you need help, please don't hesitate to join our Discord Server.

Package Sidebar

Install

npm i nebbyjs

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

8.36 kB

Total Files

12

Last publish

Collaborators

  • androier_dev
  • adorluigi