0.0.2 • Published 3 years ago

rache.dbd v0.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

rache.dbd

About

rache.dbd is a package that aim to allows you to make your Discord Bots with Ease. An Easy Configurable NPM Package and easy to use.

Examples

Setup

const dbd = require("rache.dbd")

const bot = new dbd.Bot({
token: "TOKEN", 
prefix: "!" 
})
bot.onMessage()

bot.command({
name: "ping", 
code: `$ping Pong!` 
})

Slash Commands Support

With easy and simple functions, you can make Slash Commands with your Bots quick!

bot.command({
    name: "slash",
    code: `$createSlashCommand[$guildID;version;Returns rache.dbd Version]`
})
bot.interactionCommand({
    name: "version", 
    code: `$interactionReply[$packageVersion]`
})
bot.onInteractionCreate()

Music Support

With our powerful Package, we incorporated Music with several functions. We allowed customization and control, over what you want.

Music Function Examples

$playSong - $playSong[song;leave vc time;defean (yes or no);leave when vc empty (yes/no);error]
$skipSong - Skip the current song in queue.
$stopSong - Stop all songs in queue.
$loopQueue - Loop all songs in queue.
$skipTo - Skip to a song in the current queue.

Using Variables

What are variables? They can be used for many things, especially allowing to save data.

Such as allowing level system, currency system and much more!

bot.variables({
  Name: "Value",
  Name2: "Value2"
})

Callbacks

What are callbacks?

It's simple and easy process, it essentially allows you to run events, such as user joining a Guild. This will trigger a event, causing a code to be executed such as.

bot.joinCommand({
        channel: "Channel ID", 
        code: `<@$authorID> just joined, welcome!`
})
bot.onJoined()

Setting Bot Status

Add a custom message to your Bot Activity!

bot.status({
  text: "TEXT",
  type: "PLAYING",
  time: 12
})

Support

If you don't understand something, confused, bug reports, errors, or need assistance. Join our.

https://discord.gg/rsHHQAnSua