This repository has been archived by the owner on Aug 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.js
51 lines (40 loc) · 1.76 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
const dbd = require("dbd.js")
const bot = new dbd.Bot({
mobile: false, // you can change it to "true" if you want a mobile status
token: "TOKEN", // change TOKEN with your bot token
prefix: ['$getServerVar[prefix]', '<@!$clientID>', '<@$clientID>'] // you may change the bot's main prefix in vars.js
})
bot.onMessage({
guildOnly: false // commands will work in dms. set "true" for commands to work in guilds only
})
bot.status({
text: `with $serverCount servers`, // put any text
type: "PLAYING", // LISTENING, PLAYING, WATCHING, COMPETING
status: "online", // online, dnd, idle, invisible
time: 75 // amount of times where you can change the bot status (if have multiple statuses)
})
// FOR STREAMING STATUS USE THIS
// bot.status({
// text: "text",
// type: "STREAMING",
// url: "enter url/link"
// })
// remove `//` in each side
// dbd.js 2.2.6 version
bot.musicStartCommand({
channel: "$channelID",
code: `$sendMessage[{description:▶ Now playing - **[$songInfo[title]\\]($songInfo[url])**}{color:RANDOM}{thumbnail:$songInfo[thumbnail]}{timestamp:ms};no]`
})
// for dbd.js latest version
// remove all `//`
// delete the code above
// bot.musicStartCommand({
// channel: "$channelID",
// code: `$sendMessage[{description:▶ Now playing - **[$songInfo[title]]($songInfo[url])**}{color:RANDOM}{thumbnail:$songInfo[thumbnail]}{timestamp:ms};no]`
// })
bot.musicEndCommand({
channel: "$channelID",
code: `$sendMessage[{description:⏹ There's no one playing music anymore. I'm leaving the Voice Channel!}{color:RANDOM}{delete:10s};no]`
})
bot.variables(require('./commands/vars.js'))
bot.loadCommands('./commands')