{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f53bb5f4-5087-457c-89c7-3b3d8d1ab349",
    "slug": "sEmr3k",
    "name": "Discord ModMail Bot (Dragory's)",
    "description": "ModMail Discord Bot (Dragory)",
    "url": "https://railway.com/deploy/sEmr3k",
    "upstream": {
      "repo_url": "https://github.com/metal0/modmail-railway"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "modmail-railway",
      "source": {
        "repo": "https://github.com/metal0/modmail-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/modmailbot/db",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "modmail-railway",
      "description": "Don't edit this",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MM_URL",
      "service": "modmail-railway",
      "description": "Don't edit this (even if you have a custom domain)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DB_FILE",
      "service": "modmail-railway",
      "description": "Var required for migration to work",
      "secret": false,
      "strategy": "default",
      "default": "/app/modmailbot/db/data.sqlite"
    },
    {
      "key": "MM_PORT",
      "service": "modmail-railway",
      "description": "Don't edit this",
      "secret": false,
      "strategy": "default",
      "default": "8890"
    },
    {
      "key": "MM_TOKEN",
      "service": "modmail-railway",
      "description": "Bot's token",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MM_PREFIX",
      "service": "modmail-railway",
      "description": "The commands prefix",
      "secret": false,
      "strategy": "default",
      "default": "!"
    },
    {
      "key": "MM_STATUS",
      "service": "modmail-railway",
      "description": "Provide a value for MM_STATUS.",
      "secret": false,
      "strategy": "default",
      "default": "Message me for help!"
    },
    {
      "key": "MM_ALLOW_MOVE",
      "service": "modmail-railway",
      "description": "Provide a value for MM_ALLOW_MOVE.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_LOG_STORAGE",
      "service": "modmail-railway",
      "description": "local/attachment",
      "secret": false,
      "strategy": "default",
      "default": "local"
    },
    {
      "key": "MM_MENTION_ROLE",
      "service": "modmail-railway",
      "description": "Provide a value for MM_MENTION_ROLE.",
      "secret": false,
      "strategy": "default",
      "default": "here"
    },
    {
      "key": "MM_TYPING_PROXY",
      "service": "modmail-railway",
      "description": "Provide a value for MM_TYPING_PROXY.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_CLOSE_MESSAGE",
      "service": "modmail-railway",
      "description": "Provide a value for MM_CLOSE_MESSAGE.",
      "secret": false,
      "strategy": "default",
      "default": "We've closed your thread. If you have any further questions, feel free to send another message to open another thread."
    },
    {
      "key": "MM_LOG_CHANNEL_ID",
      "service": "modmail-railway",
      "description": "Log channel ID",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MM_MAIN_SERVER_ID",
      "service": "modmail-railway",
      "description": "Main Server's ID (Where the bot will listen to requests)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MM_INBOX_SERVER_ID",
      "service": "modmail-railway",
      "description": "Server ID of the Inbox server (can be same as main)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "MM_RESPONSE_MESSAGE",
      "service": "modmail-railway",
      "description": "Provide a value for MM_RESPONSE_MESSAGE.",
      "secret": false,
      "strategy": "default",
      "default": "Thank you for your message! Our mod team will reply to you here as soon as possible."
    },
    {
      "key": "MM_PIN_THREAD_HEADER",
      "service": "modmail-railway",
      "description": "Provide a value for MM_PIN_THREAD_HEADER.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_ATTACHMENT_STORAGE",
      "service": "modmail-railway",
      "description": "original=link original attachment, discord=reupload it to discord CDN",
      "secret": false,
      "strategy": "default",
      "default": "original"
    },
    {
      "key": "MM_FALLBACK_ROLE_NAME",
      "service": "modmail-railway",
      "description": "Provide a value for MM_FALLBACK_ROLE_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "Staff"
    },
    {
      "key": "MM_PING_ON_BOT_MENTION",
      "service": "modmail-railway",
      "description": "Provide a value for MM_PING_ON_BOT_MENTION.",
      "secret": false,
      "strategy": "default",
      "default": "off"
    },
    {
      "key": "MM_UPDATE_MESSAGES_LIVE",
      "service": "modmail-railway",
      "description": "Provide a value for MM_UPDATE_MESSAGES_LIVE.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_ANONYMIZE_CHANNEL_NAME",
      "service": "modmail-railway",
      "description": "Provide a value for MM_ANONYMIZE_CHANNEL_NAME.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_ROLES_IN_THREAD_HEADER",
      "service": "modmail-railway",
      "description": "Provide a value for MM_ROLES_IN_THREAD_HEADER.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_INBOX_SERVER_PERMISSION",
      "service": "modmail-railway",
      "description": "Provide a value for MM_INBOX_SERVER_PERMISSION.",
      "secret": false,
      "strategy": "default",
      "default": "manageMessages"
    },
    {
      "key": "MM_IGNORE_ACCIDENTAL_THREADS",
      "service": "modmail-railway",
      "description": "Provide a value for MM_IGNORE_ACCIDENTAL_THREADS.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_MENTION_USER_IN_THREAD_HEADER",
      "service": "modmail-railway",
      "description": "Provide a value for MM_MENTION_USER_IN_THREAD_HEADER.",
      "secret": false,
      "strategy": "default",
      "default": "on"
    },
    {
      "key": "MM_CATEGORY_AUTOMATION__NEW_THREAD",
      "service": "modmail-railway",
      "description": "Channel ID of the Category in which to create new threads",
      "secret": false,
      "strategy": "ask_user"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "sEmr3k"
      }
    },
    "cli": "railway deploy --template sEmr3k",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f53bb5f4-5087-457c-89c7-3b3d8d1ab349",
            "serializedConfig": {
              "services": {
                "6c9a6a89-7619-4324-ae9d-b960a4c50a4c": {
                  "name": "modmail-railway",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "repo": "https://github.com/metal0/modmail-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Don't edit this",
                      "defaultValue": "${{MM_PORT}}"
                    },
                    "MM_URL": {
                      "isOptional": false,
                      "description": "Don't edit this (even if you have a custom domain)",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "DB_FILE": {
                      "isOptional": false,
                      "description": "Var required for migration to work",
                      "defaultValue": "/app/modmailbot/db/data.sqlite"
                    },
                    "MM_PORT": {
                      "isOptional": false,
                      "description": "Don't edit this",
                      "defaultValue": "8890"
                    },
                    "MM_TOKEN": {
                      "isOptional": false,
                      "description": "Bot's token",
                      "defaultValue": "{{MM_TOKEN}}"
                    },
                    "MM_PREFIX": {
                      "isOptional": false,
                      "description": "The commands prefix",
                      "defaultValue": "!"
                    },
                    "MM_STATUS": {
                      "isOptional": false,
                      "defaultValue": "Message me for help!"
                    },
                    "MIGRATE_URL": {
                      "isOptional": true,
                      "description": "If you have an existing modmail instance, upload the data.sqlite file somewhere (discord CDN works) and put the URL to download it here, the bot will fetch it on startup"
                    },
                    "MM_ALLOW_MOVE": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_LOG_STORAGE": {
                      "isOptional": false,
                      "description": "local/attachment",
                      "defaultValue": "local"
                    },
                    "MM_MENTION_ROLE": {
                      "isOptional": true,
                      "defaultValue": "here"
                    },
                    "MM_TYPING_PROXY": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_CLOSE_MESSAGE": {
                      "isOptional": true,
                      "defaultValue": "We've closed your thread. If you have any further questions, feel free to send another message to open another thread."
                    },
                    "MM_LOG_CHANNEL_ID": {
                      "isOptional": false,
                      "description": "Log channel ID",
                      "defaultValue": "{{MM_LOG_CHANNEL_ID}}"
                    },
                    "MM_MAIN_SERVER_ID": {
                      "isOptional": false,
                      "description": "Main Server's ID (Where the bot will listen to requests)",
                      "defaultValue": "{{MM_MAIN_SERVER_ID}}"
                    },
                    "MM_INBOX_SERVER_ID": {
                      "isOptional": false,
                      "description": "Server ID of the Inbox server (can be same as main)",
                      "defaultValue": "{{MM_INBOX_SERVER_ID}}"
                    },
                    "MM_RESPONSE_MESSAGE": {
                      "isOptional": true,
                      "defaultValue": "Thank you for your message! Our mod team will reply to you here as soon as possible."
                    },
                    "MM_PIN_THREAD_HEADER": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_ATTACHMENT_STORAGE": {
                      "isOptional": false,
                      "description": "original=link original attachment, discord=reupload it to discord CDN",
                      "defaultValue": "original"
                    },
                    "MM_FALLBACK_ROLE_NAME": {
                      "isOptional": true,
                      "defaultValue": "Staff"
                    },
                    "MM_PING_ON_BOT_MENTION": {
                      "isOptional": true,
                      "defaultValue": "off"
                    },
                    "MM_UPDATE_MESSAGES_LIVE": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_ANONYMIZE_CHANNEL_NAME": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_ROLES_IN_THREAD_HEADER": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_INBOX_SERVER_PERMISSION": {
                      "isOptional": false,
                      "defaultValue": "manageMessages"
                    },
                    "MM_IGNORE_ACCIDENTAL_THREADS": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_ATTACHMENT_STORAGE_CHANNEL_ID": {
                      "isOptional": true,
                      "description": "When using MM_ATTACHMENT_STORAGE=discord, the channel ID of where to store the attachments"
                    },
                    "MM_MENTION_USER_IN_THREAD_HEADER": {
                      "isOptional": true,
                      "defaultValue": "on"
                    },
                    "MM_CATEGORY_AUTOMATION__NEW_THREAD": {
                      "isOptional": false,
                      "description": "Channel ID of the Category in which to create new threads",
                      "defaultValue": "{{MM_CATEGORY_AUTOMATION__NEW_THREAD}}"
                    }
                  },
                  "networking": {
                    "tcpProxies": {},
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6c9a6a89-7619-4324-ae9d-b960a4c50a4c": {
                      "mountPath": "/app/modmailbot/db"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0"
}
