From 06ab28e64d85f34c6fe2781cc3853baf824bd10a Mon Sep 17 00:00:00 2001 From: Syah Warid Ghani Akram Date: Wed, 13 Nov 2024 14:12:00 +0700 Subject: [PATCH] feat: pm2 config file --- ecosystem.config.cjs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ecosystem.config.cjs diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs new file mode 100644 index 0000000..d790e73 --- /dev/null +++ b/ecosystem.config.cjs @@ -0,0 +1,16 @@ +module.exports = { + apps: [ + { + name: "discord-chat-mirror", + script: "dist/index.js", + env: { + DISCORD_TOKEN: "DISCORD_TOKEN", + CHANNELS_ID: "channelId1, channelId2, channelId3", + WEBHOOKS_URL: "https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN", + ENABLE_BOT_INDICATOR: "yes", + USE_WEBHOOK_PROFILE: "no", + DEBUG_MODE: "no", + } + } + ] +};