From caaf3e908102a3d23cd66ee38fcfdbd928125750 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Sun, 8 Dec 2024 03:55:03 +0000 Subject: fix double send bug --- app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'app.js') diff --git a/app.js b/app.js index b5d505d..2ba6e5e 100644 --- a/app.js +++ b/app.js @@ -65,11 +65,7 @@ app.post('/', verifyKeyMiddleware(process.env.PUBLIC_KEY), async function (req, console.error(err); } }); - - cron.schedule(crontab, () => { - client.channels.cache.get(req.body.channel_id).send(message) - }); - } + } return res.send({ type: InteractionResponseType.CHANNEL_MESSAGE_WITH_SOURCE, -- cgit v1.2.3