From c28ec62a9e9981c4f96572b5c0093ece29cd7239 Mon Sep 17 00:00:00 2001 From: Raymond <101374892+raymonable@users.noreply.github.com> Date: Tue, 28 Nov 2023 20:52:35 -0500 Subject: [PATCH] Add "waffle" mention temporary until you fix this code yourself --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 23eeb54..c4c84c4 100644 --- a/index.js +++ b/index.js @@ -196,10 +196,8 @@ client.on('messageCreate', (msg) =>{ if(msg.channel.type=="GROUP_DM"){ console.log("gc") dlmsg(false, msg.channelId, msg.content) - if(msg.mentions.users.get(client.user.id) == undefined){ - newmsg(false, null, msg.channelId, msg.content) - }else{ - setTimeout(function() { + if(msg.mentions.users.get(client.user.id) || msg.content.toLowerCase().includes("waffle")){ + setTimeout(function() { client.channels.cache.get(msg.channelId).sendTyping() markovgen(false, msg.channelId).then((result) =>{ if(result==""||result==" "){ @@ -212,6 +210,8 @@ client.on('messageCreate', (msg) =>{ }, (result.length/((100*5)/60)) * 1000); //(message.length/((wordsPerMinute*5)/60)) * 1000 }) }, Math.floor(Math.random() * 3000)+1000) + }else{ + newmsg(false, null, msg.channelId, msg.content) } }else{ console.log("dm")