Update main.js

This commit is contained in:
ZyLacx 2021-12-24 13:11:41 +01:00
parent c7f45beea8
commit defe5b2d8e

View file

@ -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