{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ccec6ea0-00ec-44a9-b44a-6aad2766bef0",
    "slug": "genmeta-bot",
    "name": "genmeta-bot",
    "description": "Discord bot that detects NovelAI/A1111/Forge metadata in PNGs",
    "url": "https://railway.com/deploy/genmeta-bot",
    "upstream": {
      "repo_url": "https://github.com/caru-ini/genmeta-bot"
    }
  },
  "services": [
    {
      "name": "genmeta-bot",
      "source": {
        "repo": "https://github.com/caru-ini/genmeta-bot"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LOG_LEVEL",
      "service": "genmeta-bot",
      "description": "Optional: Log level (debug, info, warn, error)",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "DISCORD_GUILD_ID",
      "service": "genmeta-bot",
      "description": "Provide a value for DISCORD_GUILD_ID.",
      "secret": false,
      "strategy": "default",
      "default": "your_guild_id_here"
    },
    {
      "key": "TURSO_AUTH_TOKEN",
      "service": "genmeta-bot",
      "description": "Provide a value for TURSO_AUTH_TOKEN.",
      "secret": true,
      "strategy": "default",
      "default": "your_turso_auth_token_here"
    },
    {
      "key": "DISCORD_BOT_TOKEN",
      "service": "genmeta-bot",
      "description": "Provide a value for DISCORD_BOT_TOKEN.",
      "secret": true,
      "strategy": "default",
      "default": "your_bot_token_here"
    },
    {
      "key": "TURSO_DATABASE_URL",
      "service": "genmeta-bot",
      "description": "Turso database (falls back to file:data/bot.db when unset)",
      "secret": false,
      "strategy": "default",
      "default": "libsql://your-db-name.turso.io"
    },
    {
      "key": "DISCORD_APPLICATION_ID",
      "service": "genmeta-bot",
      "description": "Provide a value for DISCORD_APPLICATION_ID.",
      "secret": false,
      "strategy": "default",
      "default": "your_application_id_here"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "genmeta-bot"
      }
    },
    "cli": "railway deploy --template genmeta-bot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ccec6ea0-00ec-44a9-b44a-6aad2766bef0",
            "serializedConfig": {
              "services": {
                "fdb6d480-daaa-417c-95f7-8682b68d9313": {
                  "name": "genmeta-bot",
                  "source": {
                    "repo": "caru-ini/genmeta-bot",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "LOG_LEVEL": {
                      "isOptional": true,
                      "description": "Optional: Log level (debug, info, warn, error)",
                      "defaultValue": "info"
                    },
                    "DISCORD_GUILD_ID": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "your_guild_id_here"
                    },
                    "TURSO_AUTH_TOKEN": {
                      "isOptional": true,
                      "defaultValue": "your_turso_auth_token_here"
                    },
                    "DISCORD_BOT_TOKEN": {
                      "defaultValue": "your_bot_token_here"
                    },
                    "TURSO_DATABASE_URL": {
                      "description": "Turso database (falls back to file:data/bot.db when unset)",
                      "defaultValue": "libsql://your-db-name.turso.io"
                    },
                    "DISCORD_APPLICATION_ID": {
                      "defaultValue": "your_application_id_here"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T02:22:12.961Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6db1f21340134acaadf5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 93,
    "typical_build_seconds": 51,
    "typical_start_seconds": 10,
    "slowest_service": "genmeta-bot"
  }
}
