forked from djpie123/music-bot-with-buttons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.js
40 lines (40 loc) · 1.06 KB
/
setup.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
const { MessageButton, MessageActionRow } = require('discord-buttons');
const Discord = require('discord.js')
module.exports.run = async (bot, message, args) => {
message.delete()
this.bot = bot
const stop = new MessageButton()
.setLabel('stop')
.setStyle('red')
.setID('stop')
const pause = new MessageButton()
.setLabel('pause')
.setStyle('blurple')
.setID('pause')
const resume = new MessageButton()
.setLabel('resume')
.setStyle('green')
.setID('resume')
const skip = new MessageButton()
.setLabel('skip')
.setStyle('grey')
.setID('skip')
const que = new MessageButton()
.setLabel('Get que')
.setStyle('blurple')
.setID('que')
const row = new MessageActionRow()
.addComponent(stop)
.addComponent(pause)
.addComponent(resume)
.addComponent(skip)
.addComponent(que)
const embed = new Discord.MessageEmbed()
.setTitle('Not Playing')
.setImage(`https://image.shutterstock.com/image-photo/sunset-coast-lake-nature-landscape-260nw-1960131820.jpg`)
bot.msg = await message.channel.send(embed, row)
}
module.exports.config = {
name: "setup",
aliases: ["s"]
}