1.4.10 • Published 2 years ago
ifa.js v1.4.10
ABOUT
ifa.js is an improved version of aoi.js, it adds functions, new methods, the idea is to improve the user experience
Setting
const { Bot } = require('ifa.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
- $parseInt
- $isNaN
- $startGiveawaychannelID;winnerCount;prize;duration;hostedBy?;botsCanWin?;reaction?
- $startJsonGiveawayoptions
- $rerollchannelID;messageID
- $pauseGiveawaychannelID;messageID
- $resumeGiveawaychannelID;messageID
1.4.10
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.11
2 years ago
1.3.10
2 years ago
1.3.4
2 years ago
1.3.2
2 years ago
1.3.1
2 years ago
1.3.0
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.3
2 years ago
1.2.0
2 years ago
1.1.7
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.10
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago