From defe5b2d8ef3c0a991d0b445b994ef96af0b0ddc Mon Sep 17 00:00:00 2001 From: ZyLacx Date: Fri, 24 Dec 2021 13:11:41 +0100 Subject: [PATCH] Update main.js --- main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index d71630d..7936d80 100644 --- a/main.js +++ b/main.js @@ -20,6 +20,8 @@ client.on('message', gotMessage); function gotMessage(message){ let msg = message.content.toLowerCase(); + console.log(msg) + if(message.content.includes('https://media.discordapp.net')) { if(message.content.includes('webm') || message.content.includes('mov') || message.content.includes('mp4')) { @@ -109,7 +111,7 @@ function move(message, splits){ var replyMessageId = message.reference.messageID; - mentionedChannelId = msgContentSplit[0].substring(2, msgContentSplit[0].length - 1); + mentionedChannelId = splits[0].substring(2, splits[0].length - 1); replyChannelId = message.reference.channelID; var replyChannel = client.channels.cache.find(channel => channel.id === replyChannelId); @@ -163,6 +165,7 @@ function RNG(max){ return Math.floor(Math.random() * max) } +// move nefunguje na embedoch // narodeniny? // vianoce, novy rok a tak // .say s vymazanim