Add "waffle" mention
temporary until you fix this code yourself
This commit is contained in:
6
index.js
6
index.js
@@ -196,9 +196,7 @@ client.on('messageCreate', (msg) =>{
|
|||||||
if(msg.channel.type=="GROUP_DM"){
|
if(msg.channel.type=="GROUP_DM"){
|
||||||
console.log("gc")
|
console.log("gc")
|
||||||
dlmsg(false, msg.channelId, msg.content)
|
dlmsg(false, msg.channelId, msg.content)
|
||||||
if(msg.mentions.users.get(client.user.id) == undefined){
|
if(msg.mentions.users.get(client.user.id) || msg.content.toLowerCase().includes("waffle")){
|
||||||
newmsg(false, null, msg.channelId, msg.content)
|
|
||||||
}else{
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
client.channels.cache.get(msg.channelId).sendTyping()
|
client.channels.cache.get(msg.channelId).sendTyping()
|
||||||
markovgen(false, msg.channelId).then((result) =>{
|
markovgen(false, msg.channelId).then((result) =>{
|
||||||
@@ -212,6 +210,8 @@ client.on('messageCreate', (msg) =>{
|
|||||||
}, (result.length/((100*5)/60)) * 1000); //(message.length/((wordsPerMinute*5)/60)) * 1000
|
}, (result.length/((100*5)/60)) * 1000); //(message.length/((wordsPerMinute*5)/60)) * 1000
|
||||||
})
|
})
|
||||||
}, Math.floor(Math.random() * 3000)+1000)
|
}, Math.floor(Math.random() * 3000)+1000)
|
||||||
|
}else{
|
||||||
|
newmsg(false, null, msg.channelId, msg.content)
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
console.log("dm")
|
console.log("dm")
|
||||||
|
|||||||
Reference in New Issue
Block a user