Update main.js
This commit is contained in:
parent
e84658a674
commit
45bd44654c
1 changed files with 16 additions and 3 deletions
19
main.js
19
main.js
|
@ -129,6 +129,10 @@ function move(message, splits){
|
|||
|
||||
var replyChannel = client.channels.cache.get(replyChannelId);
|
||||
|
||||
// create embed
|
||||
// add field for every attachment
|
||||
// keď je tam emebed tak možnosť cez emotes či vymazať original post alebo nie
|
||||
// zisti ako sa robia replies ako robia normálny usery
|
||||
replyChannel.messages.fetch(replyMessageId).then(msg => {
|
||||
let newMessage = []
|
||||
let allAttachments = msg.attachments.values()
|
||||
|
@ -143,9 +147,18 @@ function move(message, splits){
|
|||
})
|
||||
msg.delete({timeout: 3000});
|
||||
}
|
||||
|
||||
if (msg.embeds.length > 0){
|
||||
client.channels.cache.get(mentionedChannelId).send("Can't really moove embeds, sowwy :c")
|
||||
else {
|
||||
if (msg.embeds.length > 0){
|
||||
message.channel.send("Can't really moove embeds, sowwy :c")
|
||||
}
|
||||
else {
|
||||
let newMsg = new Discord.MessageEmbed()
|
||||
.setColor(randomColor())
|
||||
.addField("MOO", `Sent by ${msg.author}\nmooved ${message.author}`)
|
||||
.addField("Message:", msg.content)
|
||||
client.channels.cache.get(mentionedChannelId).send(newMsg)
|
||||
msg.delete({timeout: 3000})
|
||||
}
|
||||
}
|
||||
});
|
||||
message.delete({timeout: 3000});
|
||||
|
|
Loading…
Reference in a new issue