From 37317837e8b768c93a3d79e3e98603c646b749f8 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Fri, 30 Dec 2022 09:05:47 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=BFfailsafe=20test=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/events/messageCreate.ts | 9 --------- src/index.ts | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/events/messageCreate.ts b/src/events/messageCreate.ts index 0895d55..639bbec 100644 --- a/src/events/messageCreate.ts +++ b/src/events/messageCreate.ts @@ -121,15 +121,6 @@ export default { if (message.mentions.members.has('215497515934416896') && !client.isStaff(message.member) && message.type != 19){ message.reply('Please don\'t tag Monster unless it\'s important!') } - if (message.content.toLowerCase().startsWith(`*mp players`) || message.content.toLowerCase().startsWith(`*mp status`)){ - message.reply('Prefix-based MP commands has moved to and ') - } - if (message.content.toLowerCase().startsWith(`*lrs`) || message.content.toLowerCase().startsWith(`*rank`)){ - message.reply('Prefix-based LRS command has moved to ') - } - if (message.content.toLowerCase().startsWith(`*mp series`) || message.content.toLowerCase().startsWith(`*mp info`)){ - message.reply('Prefix-based MP info commands has moved to and ') - } if (PasswordArray.some(e=>message.content.toLowerCase().includes(e))){ message.reply('Password and other details can be found in <#543494084363288637>') } diff --git a/src/index.ts b/src/index.ts index 439a7fd..5c4b238 100644 --- a/src/index.ts +++ b/src/index.ts @@ -164,6 +164,6 @@ setInterval(async()=>{ dailyMsgs.push([formattedDate, total]); fs.writeFileSync(__dirname + '/database/dailyMsgs.json', JSON.stringify(dailyMsgs)) console.log(`[${client.moment().format('DD/MM/YY HH:mm:ss')}]`, `Pushed [${formattedDate}, ${total}] to dailyMsgs`); - (client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send(`:pencil: Pushed \`[${formattedDate}, ${total}]\` to `) + client.application.commands.fetch().then((commands)=>(client.channels.resolve(client.config.mainServer.channels.logs) as Discord.TextChannel).send(`:pencil: Pushed \`[${formattedDate}, ${total}]\` to x.name == 'rank').id}>`)) } }, 5000)