aboutsummaryrefslogtreecommitdiff
path: root/app.js
diff options
context:
space:
mode:
authorJacob Janzen <jacob@jjanzen.ca>2024-12-08 03:55:03 +0000
committerJacob Janzen <jacob@jjanzen.ca>2024-12-08 03:55:03 +0000
commitcaaf3e908102a3d23cd66ee38fcfdbd928125750 (patch)
tree547e2cfa97f2af34ff6e4e7b6a52d09310c4930a /app.js
parent659346f41447728d5dfde9dd1332f9bc590d6e84 (diff)
fix double send bug
Diffstat (limited to 'app.js')
-rw-r--r--app.js6
1 files changed, 1 insertions, 5 deletions
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,