From ab43ddc3376cb6a7d86c380c1316b3e2b0b810cd Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 7 Jan 2024 12:37:28 +1100 Subject: [PATCH] Add new response trigger --- src/events/messageCreate.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index cb878ba..bbc6dbc 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -43,7 +43,8 @@ export default class MessageCreate { password: ['whats the password', 'what\'s the password', 'password pls'], cantRead: ['i cant read', 'i can\'t read', 'cant read', 'can\'t read'], theyBrokeIt: ['break', 'broke', 'broken'], - deadChat: ['dead chat', 'chat is dead', 'dead server', 'inactive chat', 'inactive channel'] + deadChat: ['dead chat', 'chat is dead', 'dead server', 'inactive chat', 'inactive channel'], + mpsrv: ['is anyone online', 'is the server up'] } const outgoingArrays = { guildBoost: ['Thanks for boosting our server!', 'Thanks for the boost!', 'We appreciate the boost!', `Thank you for the kind boost, <@${message.author.id}>!`], @@ -82,6 +83,7 @@ export default class MessageCreate { if (incomingArrays.cantRead.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.cantRead); if (message.content.toLowerCase().includes('is daggerbot working')) message.reply(picStorage.amAlive); if (incomingArrays.deadChat.some(e=>message.content.toLowerCase().includes(e))) message.reply(picStorage.deadChat); + if (message.channelId === '543494084363288637' && incomingArrays.mpsrv.some(e=>message.content.toLowerCase().includes(e))) message.reply('You can take a look at the embeds in <#543494084363288637> to see if anyone is on the server.'); for (const thisPerson of ModsGoGetThisPerson) { if (incomingArrays.theyBrokeIt.some(x=>Automoderator.scanMsg(message).includes(x) && Automoderator.scanMsg(message).includes(thisPerson.user)) && MessageTool.isStaff(message.member) && message.channelId !== client.config.dcServer.channels.mpmod_chat)