entrypoint = "aethex-bot/bot.js"
modules = ["nodejs-20", "postgresql-16"]

hidden = [".pythonlibs"]

[nix]
channel = "stable-23_05"

[deployment]
run = ["bash", "-c", "cd aethex-bot && npm start"]
deploymentTarget = "gce"

[agent]
expertMode = true

[[ports]]
localPort = 5000
externalPort = 80

[[ports]]
localPort = 8080
externalPort = 8080

[workflows]
runButton = "Project"

[[workflows.workflow]]
name = "Project"
mode = "parallel"
author = "agent"

[[workflows.workflow.tasks]]
task = "workflow.run"
args = "AeThex Unified Bot"

[[workflows.workflow]]
name = "AeThex Unified Bot"
author = "agent"

[workflows.workflow.metadata]
outputType = "webview"

[[workflows.workflow.tasks]]
task = "shell.exec"
args = "cd aethex-bot && npm start"
waitForPort = 5000

[userenv]

[userenv.shared]
DISCORD_CLIENT_ID = "578971245454950421"
VITE_API_BASE = "https://api.aethex.dev"
DISCORD_FEED_GUILD_ID = "515711457946632232"
DISCORD_FEED_CHANNEL_ID = "1425114041021497454"
DISCORD_MAIN_CHAT_CHANNELS = "1425114041021497454,1333138752096178288"
DISCORD_ANNOUNCEMENT_CHANNELS = "1420146350003327037"
DISCORD_FOUNDER_ROLE_ID = "639164120230264833"
DISCORD_ADMIN_ROLE_ID = "1426779633290055741"
HEALTH_PORT = "8080"
HUB_GUILD_ID = "515711457946632232"
LABS_GUILD_ID = "1275962459596783686"
GAMEFORGE_GUILD_ID = "1245619208805416970"
CORP_GUILD_ID = "373713073594302464"
FOUNDATION_GUILD_ID = "1338564560277344287"
WHITELISTED_USERS = "113472107526033408"
ALERT_CHANNEL_ID = "1435905356932055233"
BASE_URL = "https://bot.aethex.dev"

[userenv.production]
