Update main.js
This commit is contained in:
parent
c7f45beea8
commit
defe5b2d8e
1 changed files with 4 additions and 1 deletions
5
main.js
5
main.js
|
@ -20,6 +20,8 @@ client.on('message', gotMessage);
|
||||||
function gotMessage(message){
|
function gotMessage(message){
|
||||||
let msg = message.content.toLowerCase();
|
let msg = message.content.toLowerCase();
|
||||||
|
|
||||||
|
console.log(msg)
|
||||||
|
|
||||||
if(message.content.includes('https://media.discordapp.net')) {
|
if(message.content.includes('https://media.discordapp.net')) {
|
||||||
if(message.content.includes('webm') || message.content.includes('mov') ||
|
if(message.content.includes('webm') || message.content.includes('mov') ||
|
||||||
message.content.includes('mp4')) {
|
message.content.includes('mp4')) {
|
||||||
|
@ -109,7 +111,7 @@ function move(message, splits){
|
||||||
|
|
||||||
var replyMessageId = message.reference.messageID;
|
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;
|
replyChannelId = message.reference.channelID;
|
||||||
|
|
||||||
var replyChannel = client.channels.cache.find(channel => channel.id === replyChannelId);
|
var replyChannel = client.channels.cache.find(channel => channel.id === replyChannelId);
|
||||||
|
@ -163,6 +165,7 @@ function RNG(max){
|
||||||
return Math.floor(Math.random() * max)
|
return Math.floor(Math.random() * max)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// move nefunguje na embedoch
|
||||||
// narodeniny?
|
// narodeniny?
|
||||||
// vianoce, novy rok a tak
|
// vianoce, novy rok a tak
|
||||||
// .say s vymazanim
|
// .say s vymazanim
|
||||||
|
|
Loading…
Reference in a new issue