{
  "name": "remind bot - discord",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "reminder",
        "options": {}
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -96,
        96
      ],
      "id": "7e59d1e3-35e5-46be-9875-2de4e1613e23",
      "name": "Webhook"
    },
    {
      "parameters": {
        "amount": "={{ $json.waitSeconds }}"
      },
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        320,
        96
      ],
      "id": "18489533-ef5d-470a-ab92-e6fe154867b1",
      "name": "Wait"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://discordapp.com/api/webhooks/1492886386615910413/QYxZox3Al5or_owrWOpcMqrTFsyXK8rSrLWE7PFaxjPAPY1eEuESi_JpT-E0aTfZlKkY",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={\n  \"content\": \"<@{{$json.userId}}> \u23f0 Reminder: {{$json.task}}\"\n}",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.4,
      "position": [
        528,
        96
      ],
      "id": "172cc088-f352-4010-8617-db29d5074d20",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "jsCode": "const time = $json.body.delay / 1000;\n\n\n\nreturn [\n  {\n    json: {\n      ...$json.body,\n      waitSeconds: time\n    }\n  }\n];"
      },
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        112,
        96
      ],
      "id": "43126fdd-2a3c-4962-83be-fa4f9f5db307",
      "name": "Code in JavaScript"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Code in JavaScript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code in JavaScript": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate"
  },
  "versionId": "42074853-eb3d-457d-8d0b-c7a94404ecac",
  "id": "838KQurV6GUsOb8A",
  "tags": []
}