1.4.20 • Published 1 year ago

ghostaox.js v1.4.20

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

ABOUT


Setting

const { Bot } = require('if.js')
const bot = new Bot({
	token: 'YOUR_TOKEN', // Your discord bot token
	intents: [ 'GUILD', 'GUILD_MESSAGES' ], // Discord intents or 'all'
	prefix: ['!'], // Bot prefix
	distube: {...}, // Distube options
	giveaways: {...} // Giveaways options
})

bot.onMessage() // Allows to execute Commands

Distube

// Example
bot.addSongCommand({
	code: '$sendMessage[added `$var[song.name]`;$var[queue.textChannel.id];no]'
})
bot.onAddSong()

//  Event  |  Command  |  Handler type
onAddSong() | addSongCommand() | 'addSong'
onAddList() | addListCommand() | 'addList'
onFinish() | finishCommand() | 'finish'
onEmpty() | emptyCommand() | 'empty'
onPlaySong() | playSongCommand() | 'playSong'
onFinishSong() | finishSongCommand() | 'finishSong'
onDisconnect() | disconnectCommand() | 'disconnect'
onNoRelated() | noRelatedCommand() | 'noRelated'
onDeleteQueue() | deleteQueueCommand() | 'deleteQueue'
onDistubeError() | distubeErrorCommand() | 'distubeError'

// Functions
$autoplay
$jump[how many]
$pause
$playSong[query;skip?;unshift?]
$previous
$queueLength
$repeatMode
$resume
$search[query;type?;sfw?]
$seek[time]
$shuffle
$skip[format?]
$stop
$trackInfo[index;format]
$volume[new volume?]

u can use $djsEvald.client._distube


New Functions