aethex-forge/.replit
sirpiglr be7ed554cd Implement bidirectional Discord and feed channel synchronization
Add an HTTP endpoint to the Discord bot to receive posts from the main server and call the Discord API to send these posts as rich embeds to the configured feed channel. Also, update the main server to call this new Discord bot endpoint when a new post is created.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 9203795e-937a-4306-b81d-b4d5c78c240e
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 82d93ef8-d6c2-4d69-96c4-6fa5da4ec508
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7c94b7a0-29c7-4f2e-94ef-44b2153872b7/9203795e-937a-4306-b81d-b4d5c78c240e/duiWnI1
Replit-Helium-Checkpoint-Created: true
2025-12-03 03:36:05 +00:00

75 lines
1.2 KiB
Text

modules = ["nodejs-20", "web", "postgresql-16"]
[agent]
expertMode = true
[nix]
channel = "stable-25_05"
[workflows]
runButton = "Project"
[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"
[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Start application"
[[workflows.workflow.tasks]]
task = "workflow.run"
args = "Discord Bot"
[[workflows.workflow]]
name = "Start application"
author = "agent"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "npm run dev"
waitForPort = 5000
[workflows.workflow.metadata]
outputType = "webview"
[[workflows.workflow]]
name = "Discord Bot"
author = "agent"
[[workflows.workflow.tasks]]
task = "shell.exec"
args = "cd discord-bot && npm install && npm start"
[workflows.workflow.metadata]
outputType = "console"
[[ports]]
localPort = 5000
externalPort = 80
[[ports]]
localPort = 8044
externalPort = 3003
[[ports]]
localPort = 38557
externalPort = 3000
[[ports]]
localPort = 40437
externalPort = 3001
[[ports]]
localPort = 43741
externalPort = 3002
[deployment]
deploymentTarget = "autoscale"
run = ["node", "dist/server/production.mjs"]
build = ["npm", "run", "build"]
[userenv]
[userenv.shared]
DISCORD_MAIN_CHAT_CHANNELS = "1425114041021497454"