-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
267 lines (146 loc) · 3.4 KB
/
server.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
const dbd = require("dbd.js")
const bot = new dbd.Bot({
token: "",
prefix: "."
})
bot.onMessage()
bot.command({
name: "ping",
code: `Pong! \`$ping\``
})
bot.status({
text: "YOU",
type: "WATCHING",
time: 60
})
bot.status({
text: ".help",
type: "PLAYING",
time: 60
})
bot.status({
text: "Over $allmemberCount Members",
type: "WATCHING",
time: 60
})
bot.command({
name: "stop",
aliases: [`s`],
code: `🎶Stopped playing $songInfo[title]🔴. $stopSong
$onlyIf[$voiceID!=;🎶To stop music, please join a vc.. ]`
});
bot.command({
name: "pause",
code: `🎶Successfully paused the song $pauseSong
$onlyIf[$voiceID!=;To pause music, please join a VC.]`
});
bot.command({
name: "resume",
aliases: [`r`],
code: `$resumeSong Successfully🎶 resumed the song .
$onlyIf[$voiceID!=;To resume music, please join a VC.]`
});
bot.command({
name: "play",
aliases: [`p`],
code: `Now playing🎶🎶 $songInfo[title]
$playSong[$message;No song found.]
$onlyIf[$voiceID!=;To play music, please join a VC.]`
});
bot.command({
name: "queue",
aliases: [`q`],
code: `$title[Queue]
$description[$queueLength songs in queue
$queue[1]
$queue[2]
$queue[3]
$queue[4]
$queue[5]
$queue[6]
$queue[7]
$queue[8]
$queue[9]
$queue[10]]
$footer[For more songs to show, use the longqueue command😇.]
$color[RANDOM]
$suppressErrors[😭Couldn't find songs. Or there are no songs in the queue. ]`
});
bot.command({
name: "volume",
aliases: [`vol`],
code: `🔊Successfully set (Take Care Of Your Hears) 🎶the volume to $message🎼.
$volume[$message]
$suppressErrors[What do you want your volume set as?🔈 use a number .]`
});
bot.command({
name: "now playing",
aliases: [`np`],
code: `Currently playing🎶: $songInfo[title], Requested by🎼 $username[$songInfo[userID]].
Description: $songInfo[description]
Duration: $parseDate[$multi[$songInfo[duration];1000];time]
URL to Video: $songInfo[url] 🎶`
});
bot.command({
name: "help",
code: `$title[🎶🎶🎶HELP COMMAND🎶🎶🎶]
$description[
BOT COMMANDS:
Prefix (.)
1.**play p**
To Play Music Or YouTube Link(no playlists)
2.*stop s**
To Stop Music
3.**resume r**
To Resume Paused Song
4.**pause**
To Pause The Song
5.**now playing np**
Info About Now Playing Song
6.**volume vol**
To Increase Volume
7.**Queue q**
To Know Songs In Queue
8.**skip**
To Skip Songs
9.**loop**
To Loop The Queue]
$footer[Aᴘᴘᴜᴋᴜᴛᴛᴀɴ#0666 ]
$addTimestamp
$color[83C492]`
})
bot.command({
name: "say",
code: `$message
$deletecommand
$onlyPerms[admin;only Admin can use this command]`
});
bot.command({
name: "loop",
code: `
$title[Loop]
$thumbnail[$userAvatar[$authorID]]
$color[f1f0f0]
$description[$replaceText[$replaceText[$checkCondition[$loopQueue==true];true;Loop Enabled!];false;Loop disabled!]]
$onlyIf[$voiceID!=;You are not in a VC!]`
});
bot.command({
name: "skip",
code: `
**✅ Skiped**
$skipSong
$onlyIf[$voiceID!=;**❌ | You are not in voice channel.**]
`
})
bot.command({
name: "an",
code:
`$thumbnail[$serverIcon]
$title[**Tony StarK GaminG|Announcement**]
$description[$message]
$image[https://cdn.discordapp.com/attachments/616315208251605005/616319462349602816/Tw.gif]
$footer[TonY StarK• Announced by: $username]
$onlyPerms[admin;only admin command]
$addTimestamp
$deletecommand`
})