From 0d8e5a120257f4778e44a9d0da20551eb498f41c Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:05:36 +0800 Subject: [PATCH 1/7] add workflow test --- .github/workflows/run-workflow-tests.yml | 120 +++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 .github/workflows/run-workflow-tests.yml diff --git a/.github/workflows/run-workflow-tests.yml b/.github/workflows/run-workflow-tests.yml new file mode 100644 index 0000000..832d5dd --- /dev/null +++ b/.github/workflows/run-workflow-tests.yml @@ -0,0 +1,120 @@ +name: Run Xircuits Workflows Test + +on: + push: + branches: [ main ] + pull_request: + branches: "*" + workflow_dispatch: + +jobs: + build-and-run: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11"] + env: + TEST_XIRCUITS: | + examples/DiscordBotBranchExample.xircuits + examples/DiscordBotCVisionExample.xircuits + examples/DiscordBotMessageResponder.xircuits + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Create virtual environment + run: | + python -m venv venv + echo "${{ github.workspace }}/venv/bin" >> $GITHUB_PATH + + - name: Install xircuits in virtual environment + run: pip install xircuits + + - name: Set Environment Variables + run: | + LIBRARY_NAME=$(echo "${GITHUB_REPOSITORY##*/}" | sed 's/-/_/g') + echo "LIBRARY_NAME=$LIBRARY_NAME" >> $GITHUB_ENV + COMPONENT_LIBRARY_PATH="xai_components/${LIBRARY_NAME}" + echo "COMPONENT_LIBRARY_PATH=$COMPONENT_LIBRARY_PATH" >> $GITHUB_ENV + if [ "${{ github.event_name }}" == "pull_request" ]; then + echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV + else + echo "BRANCH_NAME=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV + fi + + - name: List Xircuits + run: xircuits list + + - name: Clone Repository + run: | + rm -rf ${{ env.COMPONENT_LIBRARY_PATH }} + if [ "${{ github.event_name }}" == "pull_request" ]; then + REPO_URL="${{ github.event.pull_request.head.repo.clone_url }}" + else + REPO_URL="https://github.com/${{ github.repository }}" + fi + git clone -b ${{ env.BRANCH_NAME }} $REPO_URL ${{ env.COMPONENT_LIBRARY_PATH }} + + - name: Install Component Library + run: | + if [ -f "${{ env.COMPONENT_LIBRARY_PATH }}/requirements.txt" ]; then + echo "requirements.txt found, installing dependencies..." + pip install -r ${{ env.COMPONENT_LIBRARY_PATH }}/requirements.txt + else + echo "requirements.txt not found." + fi + + - name: Test .xircuits Workflows + run: | + export PYTHONPATH="${GITHUB_WORKSPACE}:${PYTHONPATH}" + LOG_FILE="${GITHUB_WORKSPACE}/workflow_logs.txt" + TEST_FILES=$(echo "$TEST_XIRCUITS" | tr '\n' ' ') + echo "Repository: $LIBRARY_NAME" > $LOG_FILE + echo "Branch: $BRANCH_NAME" >> $LOG_FILE + echo -e "Testing Files:\n$TEST_FILES" >> $LOG_FILE + IFS=' ' read -r -a FILE_ARRAY <<< "$TEST_FILES" + FAIL=0 + if [ ${#FILE_ARRAY[@]} -eq 0 ]; then + echo "No .xircuits files specified for testing." | tee -a $LOG_FILE + else + for file in "${FILE_ARRAY[@]}"; do + FULL_PATH="${COMPONENT_LIBRARY_PATH}/${file}" + if [ -f "$FULL_PATH" ]; then + WORKFLOW_LOG_FILE="${FULL_PATH%.*}_workflow_log.txt" + echo -e "\n\nProcessing $FULL_PATH..." | tee -a $LOG_FILE + xircuits compile $FULL_PATH "${FULL_PATH%.*}.py" 2>&1 | tee -a $LOG_FILE + python "${FULL_PATH%.*}.py" 2>&1 | tee -a $WORKFLOW_LOG_FILE + LAST_LINE=$(tail -n 1 "$WORKFLOW_LOG_FILE") + if [[ "$LAST_LINE" != "Finished Executing" ]]; then + echo "Error: Workflow $FULL_PATH did not finish as expected" | tee -a $LOG_FILE + FAIL=1 + else + echo "$FULL_PATH processed successfully" | tee -a $LOG_FILE + fi + cat "$WORKFLOW_LOG_FILE" | tee -a $LOG_FILE + else + echo "Specified file $FULL_PATH does not exist" | tee -a $LOG_FILE + FAIL=1 + fi + done + fi + if [ $FAIL -ne 0 ]; then + echo "One or more workflows failed or did not finish as expected." | tee -a $LOG_FILE + exit 1 + else + echo "Workflow processing completed" | tee -a $LOG_FILE + fi + + - name: Upload log file + if: always() + uses: actions/upload-artifact@v4 + with: + name: ${{ env.LIBRARY_NAME }}-validation-workflow-${{ matrix.python-version }} + path: ${{ github.workspace }}/workflow_logs.txt \ No newline at end of file From 3fe5d24c8c32c87b67bbecf5b95ca0f9a3567c0b Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:05:54 +0800 Subject: [PATCH 2/7] add pyproject.toml --- pyproject.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..3c21a58 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,14 @@ +[project] +name = "xai-discord" +version = "0.1.0" +description = "A Xircuits component library for discord!" +authors = [{ name = "XpressAI", email = "eduardo@xpress.ai" }] +license = "Apache-2.0" +readme = "readme.md" +repository = "https://github.com/XpressAI/xai-discord" +keywords = ["xircuits", "discord","Bot"] + +# Xircuits-specific configurations +[tool.xircuits] +default_example_path = "examples/DiscordBotBranchExample.xircuits" +requirements_path = "requirements.txt" From 2b0ad47de475a22074e196595798ce2f302f4185 Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:06:11 +0800 Subject: [PATCH 3/7] lock requirement --- requirements.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 3aed5b2..8dc2112 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,4 @@ -discord.py -aiohttp \ No newline at end of file +discord.py==2.4.0 +aiohttp==3.10.10 +torch==2.4.1 +torchvision==0.19.1 From 5c1c9613948039683627e3bd5927390cb54520f7 Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:06:26 +0800 Subject: [PATCH 4/7] add templates --- .github/ISSUE_TEMPLATE/bug-report.md | 44 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature-request.md | 31 +++++++++++++++ .github/PULL_REQUEST_TEMPLATE.md | 46 +++++++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug-report.md create mode 100644 .github/ISSUE_TEMPLATE/feature-request.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md new file mode 100644 index 0000000..f9c2e95 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug-report.md @@ -0,0 +1,44 @@ +--- +name: Bug Report +about: Share your findings to help us squash those bugs +title: '' +labels: '' +assignees: '' + +--- + +**What kind of bug is it?** +- [ ] Xircuits Component Library Code +- [ ] Workflow Example +- [ ] Documentation +- [ ] Not Sure + +**Xircuits Version** +Run `pip show xircuits` to get the version, or mention you've used a specific .whl from a branch. + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Tested on?** + +- [ ] Windows +- [ ] Linux Ubuntu +- [ ] Centos +- [ ] Mac +- [ ] Others (State here -> xxx ) + +**Additional context** +Add any other context about the problem here. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md new file mode 100644 index 0000000..7e83d77 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature-request.md @@ -0,0 +1,31 @@ +--- +name: Feature Request +about: Suggest an idea for this component library +title: '' +labels: '' +assignees: '' + +--- + +**Xircuits Version** +Run `pip show xircuits` to get the version, or mention you've used a specific .whl from a branch. + +**What kind of feature is it?** +- [ ] Xircuits Component Library Code +- [ ] Workflow Example +- [ ] Documentation +- [ ] Not Sure + +**Is your feature request related to a problem? Please describe.** + +A clear and concise description of what the problem is. Ex. When I use X feature / when I do Y it does Z. + +**Describe the solution you'd like** + +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..6d53741 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,46 @@ +Welcome to Xircuits! Thank you for making a pull request. Please ensure that your pull request follows the template. + +# Description + +Please include a summary which includes relevant motivation and context. You may also describe the code changes. List any dependencies that are required for this change. + +## References + +If applicable, note issue numbers this pull request addresses. You can also note any other pull requests that address this issue and how this pull request is different. + +## Pull Request Type + +- [ ] Xircuits Component Library Code +- [ ] Workflow Example +- [ ] Documentation +- [ ] Others (Please Specify) + +## Type of Change + +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] This change requires a documentation update + +# Tests + +Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. + +**1. Test A** + + 1. First step + 2. Second step + 3. ... + + +## Tested on? + +- [ ] Windows +- [ ] Linux Ubuntu +- [ ] Centos +- [ ] Mac +- [ ] Others (State here -> xxx ) + +# Notes + +Add if any. From 5be695b2c15ef00534d57a98da6d57347b03eb0f Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:07:09 +0800 Subject: [PATCH 5/7] refresh canvas --- examples/DiscordBotBranchExample.xircuits | 1148 ++++++++++-------- examples/DiscordBotCVisionExample.xircuits | 962 ++++++++------- examples/DiscordBotMessageResponder.xircuits | 743 +++++++----- 3 files changed, 1619 insertions(+), 1234 deletions(-) diff --git a/examples/DiscordBotBranchExample.xircuits b/examples/DiscordBotBranchExample.xircuits index e235d45..11d8ee8 100644 --- a/examples/DiscordBotBranchExample.xircuits +++ b/examples/DiscordBotBranchExample.xircuits @@ -1,36 +1,36 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 5.228669786845899, - "offsetY": 32.85716856294562, - "zoom": 67.5, + "offsetX": 155.89583613184462, + "offsetY": 97.57364532880848, + "zoom": 79.5, "gridSize": 0, "layers": [ { - "id": "3a5a9168-d2ed-4b4b-9816-1cd3a7a32262", + "id": "f0cd2e69-8b8e-4b9d-b01e-43ff942d07de", "type": "diagram-links", "isSvg": true, "transformed": true, "models": { "7050d17f-1631-4aee-86ab-e1f7051c6617": { "id": "7050d17f-1631-4aee-86ab-e1f7051c6617", - "type": "triangle", + "type": "triangle-link", "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "bb6991a3-5132-42d3-a430-056deb84f29b", - "targetPort": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "target": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", + "targetPort": "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", "type": "point", - "x": -151.43, - "y": 76.534 + "x": -122.18750559942988, + "y": 79.17500055145086 }, { "id": "95621c4e-c084-43ae-b917-0e9b75f78610", "type": "point", - "x": -77.898, - "y": 147.14 + "x": -76.11248840210284, + "y": 149.7749991695228 } ], "labels": [], @@ -41,24 +41,24 @@ }, "ddf0437d-56ef-4b20-bda6-6142f72ecca0": { "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "sourcePort": "2c3491e1-77ff-4852-b751-6ae15a413c24", - "target": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", - "targetPort": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", + "source": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", + "sourcePort": "b743baf4-90a4-4e8c-9ecc-695246b69380", + "target": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "targetPort": "49c46c6f-106f-499f-b01c-3f99215ba8a9", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 998.769, - "y": 47.235 + "x": 1026.3751044749793, + "y": 49.874997019856906 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 1113.163, - "y": 38.523 + "x": 1114.9375612417434, + "y": 41.162497173404475 } ], "labels": [], @@ -69,24 +69,24 @@ }, "458ae3b9-49a9-42fd-acf7-05f32d965647": { "id": "458ae3b9-49a9-42fd-acf7-05f32d965647", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "sourcePort": "b8330c27-4e5b-4d74-878c-5aea434f62e0", - "target": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "targetPort": "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4", + "target": "078f8d3b-45c2-4620-b950-b122af746541", + "targetPort": "90dd4db0-cd8d-4474-9de6-f9807fe3c189", "points": [ { "id": "a9dab119-5ba8-410e-aa03-1f7f10f2ccfc", "type": "point", - "x": 547.462, - "y": 135.824 + "x": 549.250006204539, + "y": 135.46252373713287 }, { "id": "645d365c-36ce-4ea0-83c7-b8de54700b72", "type": "point", - "x": 595.956, - "y": 58.636 + "x": 597.7376238891492, + "y": 66.87501544556446 } ], "labels": [], @@ -97,24 +97,24 @@ }, "0899539d-fbec-4f8b-89bc-746d4137fbd1": { "id": "0899539d-fbec-4f8b-89bc-746d4137fbd1", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "sourcePort": "7a0c9ac9-18c0-4588-b87d-688aa980cee9", - "target": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "targetPort": "02182906-5298-4862-aa37-f26541653216", + "source": "078f8d3b-45c2-4620-b950-b122af746541", + "sourcePort": "a986619b-ae03-4c93-86d7-7876878d62b4", + "target": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", + "targetPort": "12fdd800-9ddb-4dec-8575-296eabe2538d", "points": [ { "id": "9bffc1c3-61d3-4397-88c8-a6df17660d03", "type": "point", - "x": 750.303, - "y": 42.642 + "x": 756.0749494591178, + "y": 45.2749999372606 }, { "id": "cb479acf-cef2-4094-8adf-8aa5387823bb", "type": "point", - "x": 881.724, - "y": 47.235 + "x": 883.5126093885012, + "y": 49.874997019856906 } ], "labels": [], @@ -125,24 +125,24 @@ }, "472ff44c-81ab-4b52-8327-6f94d3db8b8e": { "id": "472ff44c-81ab-4b52-8327-6f94d3db8b8e", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "sourcePort": "c9674fc1-4890-47cb-aa6e-972ef463cca5", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", + "source": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "sourcePort": "373152c3-5cdf-4b1c-a661-81c38a4e43b0", + "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "targetPort": "3aca4918-c6bf-41bd-b1aa-aa651408642f", "points": [ { "id": "77ee08ea-be87-4ce3-b6b3-30e61c78bd3f", "type": "point", - "x": 683.343, - "y": 226.629 + "x": 701.4999998227183, + "y": 234.87503516682955 }, { "id": "4d1fbce2-0455-4881-9009-5d81a9f5456b", "type": "point", - "x": 777.301, - "y": 359.384 + "x": 779.0875833525926, + "y": 367.62501851651564 } ], "labels": [], @@ -153,24 +153,24 @@ }, "adb87cb4-512f-405a-8613-b7122802e6d6": { "id": "adb87cb4-512f-405a-8613-b7122802e6d6", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "sourcePort": "1b907b9e-1fbd-45a7-ba3e-442d1d9eae0e", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "527d94a5-d052-4eb4-8d71-807536527f3f", + "source": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "sourcePort": "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", + "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "targetPort": "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", "points": [ { "id": "0f90672c-a8f3-4b5a-a0dd-4a004c82f460", "type": "point", - "x": 683.343, - "y": 210.634 + "x": 701.4999998227183, + "y": 213.2750160597547 }, { "id": "7d12c91d-84e8-4cd0-aff5-5feed4ac6cad", "type": "point", - "x": 777.301, - "y": 343.39 + "x": 779.0875833525926, + "y": 346.0250293991992 } ], "labels": [], @@ -181,52 +181,24 @@ }, "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d": { "id": "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "bb6991a3-5132-42d3-a430-056deb84f29b", - "sourcePort": "2145de9b-8e09-4d75-b778-e4e1791d52f2", - "target": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "targetPort": "2a9fb513-31c7-490d-aab7-30559e5b6311", + "source": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", + "sourcePort": "cfb01398-d05c-4794-917e-804cfbb356bb", + "target": "55c8960d-24f7-41d0-abee-213c69eb3092", + "targetPort": "7fc3da90-a783-439b-9eed-88a28e27861c", "points": [ { "id": "fd28185b-ad23-421f-aa3d-46f9a51d8f6b", "type": "point", - "x": 31.193, - "y": 147.14 + "x": 59.18752770119781, + "y": 149.7749991695228 }, { "id": "da38e7e1-9fca-41da-acaf-1b27dc7f479a", "type": "point", - "x": 105.653, - "y": 149.261 - } - ], - "labels": [], - "width": 3, - "color": "gray", - "curvyness": 50, - "selectedColor": "rgb(0,192,255)" - }, - "238dcddb-5b69-4441-884f-d56a12f5005b": { - "id": "238dcddb-5b69-4441-884f-d56a12f5005b", - "type": "custom", - "selected": false, - "source": "4f43e561-c882-4e61-bf59-21ce5027974d", - "sourcePort": "006295c1-06a3-4dc2-8db3-69bb9727a799", - "target": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "targetPort": "e6c1025b-4a48-4319-99d2-8ab13c428bf9", - "points": [ - { - "id": "6489fccc-24c8-473b-bd9d-8de2af458616", - "type": "point", - "x": 30.966, - "y": 223.352 - }, - { - "id": "06221b6d-6c7a-441d-97d7-1a9a7542462c", - "type": "point", - "x": 105.653, - "y": 165.256 + "x": 107.43757731625406, + "y": 151.9000206661816 } ], "labels": [], @@ -237,18 +209,18 @@ }, "395192a1-4a8c-4ee9-83e4-063508951d1d": { "id": "395192a1-4a8c-4ee9-83e4-063508951d1d", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "sourcePort": "a9435d51-6f3c-41a2-bfa9-8dfefa76131d", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2", + "source": "55c8960d-24f7-41d0-abee-213c69eb3092", + "sourcePort": "6f2065a5-8654-4515-9572-332e4e05da47", + "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "targetPort": "d7b8dec8-141d-466a-a2fd-8c8af7559e06", "points": [ { "id": "7b09ccd1-a99f-4fe0-8764-1745c468fb60", "type": "point", - "x": 314.261, - "y": 181.25 + "x": 287.9125915769839, + "y": 195.10001329589858 }, { "id": "15515422-a5d6-470c-becc-919a24745739", @@ -265,8 +237,8 @@ { "id": "1686d311-db3f-4707-9021-5fc0d02e4828", "type": "point", - "x": 777.301, - "y": 375.379 + "x": 779.0875833525926, + "y": 389.22505321826486 } ], "labels": [], @@ -277,24 +249,24 @@ }, "89dd19d2-4c87-4707-a641-33e88b88cfa4": { "id": "89dd19d2-4c87-4707-a641-33e88b88cfa4", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "sourcePort": "b5acaf6b-a144-4a03-a042-e3e832616bd5", - "target": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "targetPort": "48a1fb1b-cf26-4b70-adb6-846c4861f28b", + "source": "55c8960d-24f7-41d0-abee-213c69eb3092", + "sourcePort": "720a1a10-b13c-4591-a7a6-1b9a4f804597", + "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "targetPort": "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", "points": [ { "id": "0dd121b5-34d4-40ae-a3f0-5790c18de432", "type": "point", - "x": 314.261, - "y": 165.256 + "x": 287.9125915769839, + "y": 173.50001698104006 }, { "id": "1efa46c0-ecf7-456c-8ed6-e43356bec6dd", "type": "point", - "x": 582.926, - "y": 210.634 + "x": 584.7000538714606, + "y": 213.2750160597547 } ], "labels": [], @@ -305,24 +277,24 @@ }, "0c836c00-49c8-4df4-a4f6-874b0ae69973": { "id": "0c836c00-49c8-4df4-a4f6-874b0ae69973", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "sourcePort": "8cb66111-2b49-4547-8d54-44b9f4a29824", - "target": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "targetPort": "fcc71481-78e8-4b46-8aab-d54f79788890", + "source": "55c8960d-24f7-41d0-abee-213c69eb3092", + "sourcePort": "f671f950-3d88-46cb-9f4b-d13084bd2338", + "target": "078f8d3b-45c2-4620-b950-b122af746541", + "targetPort": "979951ca-95c3-44c9-aa6b-836871fe7357", "points": [ { "id": "6ac54149-3ede-47b0-8df7-91af8e181c1d", "type": "point", - "x": 314.261, - "y": 149.261 + "x": 287.9125915769839, + "y": 151.9000206661816 }, { "id": "af65955a-82d7-41ab-a7f0-d97f4b026377", "type": "point", - "x": 595.956, - "y": 42.642 + "x": 597.7376238891492, + "y": 45.2749999372606 } ], "labels": [], @@ -333,24 +305,24 @@ }, "4d17155e-424c-4293-8dd3-66d0ab7889c0": { "id": "4d17155e-424c-4293-8dd3-66d0ab7889c0", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "8064b37e-a953-406e-9e70-6cda15cafb74", "sourcePort": "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42", - "target": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "targetPort": "4dfe70e7-8bf0-42f5-99f5-9604822bab71", + "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "targetPort": "7754af04-9cab-4a77-9137-a8b5a5a4e553", "points": [ { "id": "4a1c9de0-e9b8-45a2-af14-4ab0d7d920e1", "type": "point", - "x": 527.812, - "y": 318.049 + "x": 526.5501486966773, + "y": 317.68755076150387 }, { "id": "857bcb3e-0508-4d18-bb7a-00b2ad3c1fcd", "type": "point", - "x": 582.926, - "y": 226.629 + "x": 584.7000538714606, + "y": 234.87503516682955 } ], "labels": [], @@ -361,24 +333,52 @@ }, "bda6826a-0cca-473d-9079-2ba53653d8c2": { "id": "bda6826a-0cca-473d-9079-2ba53653d8c2", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "sourcePort": "dce9c62d-61e0-4227-92fe-e68a76f8eb50", - "target": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "targetPort": "05649e3b-63af-4b69-810f-9cd44c6474ec", + "source": "55c8960d-24f7-41d0-abee-213c69eb3092", + "sourcePort": "215f383b-d1ee-4290-b02f-1492ff688db5", + "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "targetPort": "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7", "points": [ { "id": "05bed03c-379d-478f-9127-05b2f1526b68", "type": "point", - "x": 314.261, - "y": 197.244 + "x": 287.9125915769839, + "y": 216.70000961075704 }, { "id": "603c39e7-801b-41a3-baa3-a80c3bf777ce", "type": "point", - "x": 582.926, - "y": 242.623 + "x": 584.7000538714606, + "y": 256.4750086894717 + } + ], + "labels": [], + "width": 3, + "color": "gray", + "curvyness": 50, + "selectedColor": "rgb(0,192,255)" + }, + "6edb84ef-1512-40af-9ec8-67e104f0736b": { + "id": "6edb84ef-1512-40af-9ec8-67e104f0736b", + "type": "parameter-link", + "selected": false, + "source": "9a980c57-ca09-4618-a7c4-a502b3ae43f8", + "sourcePort": "6e3e31bf-0d64-4036-a499-fc48e660af5b", + "target": "55c8960d-24f7-41d0-abee-213c69eb3092", + "targetPort": "67f862aa-a555-4de3-95d3-a2cf73ccba27", + "points": [ + { + "id": "befe0ec8-701b-448d-9a35-a53a081c5db9", + "type": "point", + "x": 32.77507485949306, + "y": 223.0000121346951 + }, + { + "id": "71b2fd49-4c71-492d-9951-d55bef05ad2b", + "type": "point", + "x": 107.43757731625406, + "y": 173.50001698104006 } ], "labels": [], @@ -390,7 +390,7 @@ } }, { - "id": "ec47fa20-089d-4ba7-a427-75f6cd071581", + "id": "1b32bbb5-7684-4162-917d-5d3cab1fe3e5", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -409,8 +409,9 @@ { "id": "bf8a4e2a-acf6-4402-ae31-00832051219c", "type": "default", - "x": -158.93, - "y": 69.034, + "extras": {}, + "x": -132.48750730764652, + "y": 68.87499884323422, "name": "out-0", "alignment": "right", "parentNode": "f2e8590e-a852-4f38-beab-2f9195005df7", @@ -418,7 +419,10 @@ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "Start", @@ -428,530 +432,681 @@ "bf8a4e2a-acf6-4402-ae31-00832051219c" ] }, - "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030": { - "id": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", + "9767a54c-dbc9-4387-8908-f18259b4c4a2": { + "id": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "type": "custom-node", "selected": false, "extras": { - "type": "Finish", - "borderColor": "rgb(0,192,255)" + "type": "string" + }, + "x": 472.276, + "y": 101.37, + "ports": [ + { + "id": "b8330c27-4e5b-4d74-878c-5aea434f62e0", + "type": "default", + "extras": {}, + "x": 538.9500356856711, + "y": 125.16252202891621, + "name": "out-0", + "alignment": "right", + "parentNode": "9767a54c-dbc9-4387-8908-f18259b4c4a2", + "links": [ + "458ae3b9-49a9-42fd-acf7-05f32d965647" + ], + "in": false, + "label": "$ayonara", + "varName": "$ayonara", + "portType": "", + "dataType": "" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "b8330c27-4e5b-4d74-878c-5aea434f62e0" + ] + }, + "22b80dc4-7cb3-4306-8920-03c43d41360e": { + "id": "22b80dc4-7cb3-4306-8920-03c43d41360e", + "type": "custom-node", + "selected": false, + "extras": { + "type": "comment", + "commentInput": "You can insert any components between the branch and post!\n", + "tip": "Component could not be loaded from path: `undefined`.\nPlease ensure that the component exists!", + "borderColor": "red" + }, + "x": 247.25010691823897, + "y": 395.793, + "ports": [], + "name": "Comment:", + "color": "rgb(255,255,255)", + "portsInOrder": [], + "portsOutOrder": [] + }, + "720472d0-8169-44ec-87f6-e5c5a024b6a9": { + "id": "720472d0-8169-44ec-87f6-e5c5a024b6a9", + "type": "custom-node", + "selected": false, + "extras": { + "type": "comment", + "commentInput": "When bot detects the msg_trigger string,\nit will execute the on_message flow.", + "tip": "Component could not be loaded from path: `undefined`.\nPlease ensure that the component exists!", + "borderColor": "red" + }, + "x": 83.979, + "y": 9.126, + "ports": [], + "name": "Comment:", + "color": "rgb(255,255,255)", + "portsInOrder": [], + "portsOutOrder": [] + }, + "8064b37e-a953-406e-9e70-6cda15cafb74": { + "id": "8064b37e-a953-406e-9e70-6cda15cafb74", + "type": "custom-node", + "selected": false, + "extras": { + "type": "string" + }, + "x": 423.683, + "y": 283.59, + "ports": [ + { + "id": "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42", + "type": "default", + "extras": {}, + "x": 516.2501781778094, + "y": 307.3875490532873, + "name": "out-0", + "alignment": "right", + "parentNode": "8064b37e-a953-406e-9e70-6cda15cafb74", + "links": [ + "4d17155e-424c-4293-8dd3-66d0ab7889c0" + ], + "in": false, + "label": "You have said: ", + "varName": "You have said: ", + "portType": "", + "dataType": "" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42" + ] + }, + "9a980c57-ca09-4618-a7c4-a502b3ae43f8": { + "id": "9a980c57-ca09-4618-a7c4-a502b3ae43f8", + "type": "custom-node", + "selected": false, + "extras": { + "type": "string", + "attached": false + }, + "x": -35.109, + "y": 188.901, + "ports": [ + { + "id": "6e3e31bf-0d64-4036-a499-fc48e660af5b", + "type": "default", + "extras": {}, + "x": 22.475073151276423, + "y": 212.70002602115284, + "name": "out-0", + "alignment": "right", + "parentNode": "9a980c57-ca09-4618-a7c4-a502b3ae43f8", + "links": [ + "6edb84ef-1512-40af-9ec8-67e104f0736b" + ], + "in": false, + "label": "@test", + "varName": "@test", + "portType": "", + "dataType": "string" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "6e3e31bf-0d64-4036-a499-fc48e660af5b" + ] + }, + "0539cc6b-d935-4a58-a266-f9604f0e8d7c": { + "id": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "type": "custom-node", + "selected": false, + "extras": { + "type": "Finish" }, "x": 1103.847, "y": 4.069, "ports": [ { - "id": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", + "id": "49c46c6f-106f-499f-b01c-3f99215ba8a9", "type": "default", - "x": 1105.663, - "y": 31.023, + "extras": {}, + "x": 1104.6375295437686, + "y": 30.862495465187838, "name": "in-0", "alignment": "left", - "parentNode": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", + "parentNode": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "0a5fc6f1-fb6d-4add-a654-0ef5fde238e7", + "type": "default", + "extras": {}, + "x": 1104.6375295437686, + "y": 52.46253016693705, + "name": "parameter-dynalist-outputs", + "alignment": "left", + "parentNode": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "links": [], + "in": true, + "label": "outputs", + "varName": "outputs", + "portType": "", + "dataType": "dynalist", + "dynaPortOrder": 0, + "dynaPortRef": { + "previous": null, + "next": null + } } ], "name": "Finish", "color": "rgb(255,102,102)", "portsInOrder": [ - "28be5ddf-3d38-4d16-b6b4-86a0d42f5681" + "49c46c6f-106f-499f-b01c-3f99215ba8a9", + "0a5fc6f1-fb6d-4add-a654-0ef5fde238e7" ], "portsOutOrder": [] }, - "bb6991a3-5132-42d3-a430-056deb84f29b": { - "id": "bb6991a3-5132-42d3-a430-056deb84f29b", + "983ebe8b-9b83-4f25-80bb-368df97fe0a4": { + "id": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", "type": "custom-node", "selected": false, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Initializes a Discord client with the default intents and enables message content.\n\n##### ctx:\n- discord_client: A Discord client instance with the default intents and message content enabled.", "lineNo": [ { - "lineno": 8, - "end_lineno": 25 + "lineno": 9, + "end_lineno": 26 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": -87.223, "y": 112.685, "ports": [ { - "id": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "id": "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4", "type": "default", - "x": -85.398, - "y": 139.64, + "extras": {}, + "x": -86.41249011031948, + "y": 139.47499746130615, "name": "in-0", "alignment": "left", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2145de9b-8e09-4d75-b778-e4e1791d52f2", + "id": "cfb01398-d05c-4794-917e-804cfbb356bb", "type": "default", - "x": 23.693, - "y": 139.64, + "extras": {}, + "x": 48.88755718232988, + "y": 139.47499746130615, "name": "out-0", "alignment": "right", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", "links": [ "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordClientInit", - "color": "rgb(255,153,102)", + "color": "rgb(102,51,102)", "portsInOrder": [ - "12dd6c07-7099-46cd-9924-d2a2920ebce9" + "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4" ], "portsOutOrder": [ - "2145de9b-8e09-4d75-b778-e4e1791d52f2" + "cfb01398-d05c-4794-917e-804cfbb356bb" ] }, - "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828": { - "id": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "88be8ec4-6046-4433-b879-90ea5b3c5fb5": { + "id": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", "type": "custom-node", "selected": false, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", + "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication. \n If not provided, will search for 'DISCORD_BOT_TOKEN' from env.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 97, - "end_lineno": 129 + "lineno": 101, + "end_lineno": 134 } - ], - "nextNode": "None", - "borderColor": "rgb(0,192,255)" + ] }, "x": 872.414, "y": 12.78, "ports": [ { - "id": "02182906-5298-4862-aa37-f26541653216", + "id": "12fdd800-9ddb-4dec-8575-296eabe2538d", "type": "default", - "x": 874.223, - "y": 39.735, + "extras": {}, + "x": 873.2126388696333, + "y": 39.57499531164027, "name": "in-0", "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2c3491e1-77ff-4852-b751-6ae15a413c24", + "id": "5d84a49d-7f1d-4bb9-981b-950ae92de86c", "type": "default", - "x": 991.269, - "y": 39.735, - "name": "out-0", - "alignment": "right", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "links": [ - "ddf0437d-56ef-4b20-bda6-6142f72ecca0" - ], - "in": false, - "label": "▶" - }, - { - "id": "30f46225-d4d6-4ab3-8f14-1a85c7871a30", - "type": "default", - "x": 874.223, - "y": 55.729, + "extras": {}, + "x": 873.2126388696333, + "y": 61.17499162649876, "name": "parameter-string-token", "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", "links": [], "in": true, - "label": "token" - } - ], - "name": "DiscordDeployBot", - "color": "rgb(255,204,204)", - "portsInOrder": [ - "02182906-5298-4862-aa37-f26541653216", - "30f46225-d4d6-4ab3-8f14-1a85c7871a30" - ], - "portsOutOrder": [ - "2c3491e1-77ff-4852-b751-6ae15a413c24" - ] - }, - "4f43e561-c882-4e61-bf59-21ce5027974d": { - "id": "4f43e561-c882-4e61-bf59-21ce5027974d", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string" - }, - "x": -35.109, - "y": 188.901, - "ports": [ + "label": "token", + "varName": "token", + "portType": "", + "dataType": "string" + }, { - "id": "006295c1-06a3-4dc2-8db3-69bb9727a799", + "id": "b743baf4-90a4-4e8c-9ecc-695246b69380", "type": "default", - "x": 23.466, - "y": 215.852, + "extras": {}, + "x": 1016.0751339561114, + "y": 39.57499531164027, "name": "out-0", "alignment": "right", - "parentNode": "4f43e561-c882-4e61-bf59-21ce5027974d", + "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", "links": [ - "238dcddb-5b69-4441-884f-d56a12f5005b" + "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], "in": false, - "label": "$test" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], + "name": "DiscordDeployBot", + "color": "rgb(255,102,0)", + "portsInOrder": [ + "12fdd800-9ddb-4dec-8575-296eabe2538d", + "5d84a49d-7f1d-4bb9-981b-950ae92de86c" + ], "portsOutOrder": [ - "006295c1-06a3-4dc2-8db3-69bb9727a799" + "b743baf4-90a4-4e8c-9ecc-695246b69380" ] }, - "88068f3a-533d-4280-8c7c-ff0f1651cacd": { - "id": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "078f8d3b-45c2-4620-b950-b122af746541": { + "id": "078f8d3b-45c2-4620-b950-b122af746541", "type": "custom-node", "selected": false, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Adds a shutdown command for the Discord bot that can be executed by an administrator.\n\n##### inPorts:\n- shutdown_cmd: The command that, when received from an administrator, will shut down the bot.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 71, - "end_lineno": 95 + "lineno": 73, + "end_lineno": 97 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 586.647, "y": 8.185, "ports": [ { - "id": "fcc71481-78e8-4b46-8aab-d54f79788890", + "id": "979951ca-95c3-44c9-aa6b-836871fe7357", "type": "default", - "x": 588.457, - "y": 35.142, + "extras": {}, + "x": 587.4375921911742, + "y": 34.97499822904397, "name": "in-0", "alignment": "left", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", "links": [ "0c836c00-49c8-4df4-a4f6-874b0ae69973" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "7a0c9ac9-18c0-4588-b87d-688aa980cee9", + "id": "90dd4db0-cd8d-4474-9de6-f9807fe3c189", "type": "default", - "x": 742.803, - "y": 35.142, - "name": "out-0", - "alignment": "right", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "links": [ - "0899539d-fbec-4f8b-89bc-746d4137fbd1" - ], - "in": false, - "label": "▶" - }, - { - "id": "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4", - "type": "default", - "x": 588.457, - "y": 51.136, + "extras": {}, + "x": 587.4375921911742, + "y": 56.57501373734782, "name": "parameter-string-shutdown_cmd", "alignment": "left", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", "links": [ "458ae3b9-49a9-42fd-acf7-05f32d965647" ], "in": true, - "label": "★shutdown_cmd" - } - ], - "name": "DiscordShutdownBot", - "color": "rgb(15,255,255)", - "portsInOrder": [ - "fcc71481-78e8-4b46-8aab-d54f79788890", - "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4" - ], - "portsOutOrder": [ - "7a0c9ac9-18c0-4588-b87d-688aa980cee9" - ] - }, - "9767a54c-dbc9-4387-8908-f18259b4c4a2": { - "id": "9767a54c-dbc9-4387-8908-f18259b4c4a2", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string" - }, - "x": 472.276, - "y": 101.37, - "ports": [ + "label": "★shutdown_cmd", + "varName": "★shutdown_cmd", + "portType": "", + "dataType": "string" + }, { - "id": "b8330c27-4e5b-4d74-878c-5aea434f62e0", + "id": "a986619b-ae03-4c93-86d7-7876878d62b4", "type": "default", - "x": 539.962, - "y": 128.324, + "extras": {}, + "x": 745.7749177611428, + "y": 34.97499822904397, "name": "out-0", "alignment": "right", - "parentNode": "9767a54c-dbc9-4387-8908-f18259b4c4a2", + "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", "links": [ - "458ae3b9-49a9-42fd-acf7-05f32d965647" + "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], "in": false, - "label": "$ayonara" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], + "name": "DiscordShutdownBot", + "color": "rgb(102,102,102)", + "portsInOrder": [ + "979951ca-95c3-44c9-aa6b-836871fe7357", + "90dd4db0-cd8d-4474-9de6-f9807fe3c189" + ], "portsOutOrder": [ - "b8330c27-4e5b-4d74-878c-5aea434f62e0" + "a986619b-ae03-4c93-86d7-7876878d62b4" ] }, - "05040d1b-027e-46c5-bb64-5d04820f9b8d": { - "id": "05040d1b-027e-46c5-bb64-5d04820f9b8d", + "ea17058f-65aa-4beb-b184-f5c02e6e98a3": { + "id": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", "type": "custom-node", "selected": false, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_utils/utils.py", - "description": null, + "description": "Concatenates two strings.\n\n##### inPorts:\n- a (str): The first string.\n- b (str): The second string.\n\n##### outPorts:\n- out (str): The concatenated result of strings a and b.", "lineNo": [ { - "lineno": 17, - "end_lineno": 24 + "lineno": 78, + "end_lineno": 93 } - ], - "borderColor": "rgb(0,192,255)", - "sourceBranchId": "450edca2-3295-4a76-9bb8-1725bb2644a8", - "portId": "a6707713-d539-40e9-a3ae-3e041f233b32" + ] }, "x": 573.609, "y": 176.183, "ports": [ { - "id": "48a1fb1b-cf26-4b70-adb6-846c4861f28b", + "id": "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", "type": "default", - "x": 575.426, - "y": 203.134, + "extras": {}, + "x": 574.4000221734856, + "y": 202.97501435153805, "name": "in-0", "alignment": "left", - "parentNode": "05040d1b-027e-46c5-bb64-5d04820f9b8d", + "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", "links": [ "89dd19d2-4c87-4707-a641-33e88b88cfa4" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "1b907b9e-1fbd-45a7-ba3e-442d1d9eae0e", + "id": "7754af04-9cab-4a77-9137-a8b5a5a4e553", "type": "default", - "x": 675.843, - "y": 203.134, - "name": "out-0", - "alignment": "right", - "parentNode": "05040d1b-027e-46c5-bb64-5d04820f9b8d", - "links": [ - "adb87cb4-512f-405a-8613-b7122802e6d6" - ], - "in": false, - "label": "▶" - }, - { - "id": "4dfe70e7-8bf0-42f5-99f5-9604822bab71", - "type": "default", - "x": 575.426, - "y": 219.129, + "extras": {}, + "x": 574.4000221734856, + "y": 224.57504905328727, "name": "parameter-string-a", "alignment": "left", - "parentNode": "05040d1b-027e-46c5-bb64-5d04820f9b8d", + "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", "links": [ "4d17155e-424c-4293-8dd3-66d0ab7889c0" ], "in": true, - "label": "a" + "label": "a", + "varName": "a", + "portType": "", + "dataType": "string" }, { - "id": "05649e3b-63af-4b69-810f-9cd44c6474ec", + "id": "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7", "type": "default", - "x": 575.426, - "y": 235.123, + "extras": {}, + "x": 574.4000221734856, + "y": 246.17500698125505, "name": "parameter-string-b", "alignment": "left", - "parentNode": "05040d1b-027e-46c5-bb64-5d04820f9b8d", + "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", "links": [ "bda6826a-0cca-473d-9079-2ba53653d8c2" ], "in": true, - "label": "b" + "label": "b", + "varName": "b", + "portType": "", + "dataType": "string" + }, + { + "id": "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", + "type": "default", + "extras": {}, + "x": 691.1999681247434, + "y": 202.97501435153805, + "name": "out-0", + "alignment": "right", + "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "links": [ + "adb87cb4-512f-405a-8613-b7122802e6d6" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "c9674fc1-4890-47cb-aa6e-972ef463cca5", + "id": "373152c3-5cdf-4b1c-a661-81c38a4e43b0", "type": "default", - "x": 675.843, - "y": 219.129, + "extras": {}, + "x": 691.1999681247434, + "y": 224.57504905328727, "name": "parameter-out-string-out", "alignment": "right", - "parentNode": "05040d1b-027e-46c5-bb64-5d04820f9b8d", + "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", "links": [ "472ff44c-81ab-4b52-8327-6f94d3db8b8e" ], "in": false, - "label": "out" + "label": "out", + "varName": "out", + "portType": "", + "dataType": "string" } ], "name": "ConcatString", - "color": "rgb(102,102,102)", + "color": "rgb(255,153,0)", "portsInOrder": [ - "48a1fb1b-cf26-4b70-adb6-846c4861f28b", - "4dfe70e7-8bf0-42f5-99f5-9604822bab71", - "05649e3b-63af-4b69-810f-9cd44c6474ec" + "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", + "7754af04-9cab-4a77-9137-a8b5a5a4e553", + "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7" ], "portsOutOrder": [ - "1b907b9e-1fbd-45a7-ba3e-442d1d9eae0e", - "c9674fc1-4890-47cb-aa6e-972ef463cca5" + "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", + "373152c3-5cdf-4b1c-a661-81c38a4e43b0" ] }, - "22b80dc4-7cb3-4306-8920-03c43d41360e": { - "id": "22b80dc4-7cb3-4306-8920-03c43d41360e", + "a93914c6-a1a0-4091-b02c-7ef32b35b60b": { + "id": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", "type": "custom-node", "selected": false, "extras": { - "type": "comment", - "commentInput": "You can insert any components between the branch and post!\n" - }, - "x": 257.313, - "y": 395.793, - "ports": [], - "name": "Comment:", - "color": "rgb(255,255,255)", - "portsInOrder": [], - "portsOutOrder": [] - }, - "20fb577c-d42e-488b-966d-d7e3fb99199c": { - "id": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "type": "custom-node", - "selected": false, - "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": null, + "description": "Sends a message with an optional attachment to the same channel as the received Discord message.\nIt uses the provided message as the response and references the original message in the reply.\n\n##### inPorts:\n- msg_response: The response message to be sent.\n- discord_msg (str): The original Discord message that the bot is replying to.\n- attachment_path (str): The local path to the file to be sent as an attachment. Defaults to None.", "lineNo": [ { - "lineno": 170, - "end_lineno": 178 + "lineno": 194, + "end_lineno": 218 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 767.99, "y": 308.933, "ports": [ { - "id": "527d94a5-d052-4eb4-8d71-807536527f3f", + "id": "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", "type": "default", - "x": 769.801, - "y": 335.89, + "extras": {}, + "x": 768.7875516546176, + "y": 335.7250588803313, "name": "in-0", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", "links": [ "adb87cb4-512f-405a-8613-b7122802e6d6" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "b6c332ab-7e0f-4359-905e-a76a7f13b81e", + "id": "3aca4918-c6bf-41bd-b1aa-aa651408642f", "type": "default", - "x": 922.311, - "y": 335.89, - "name": "out-0", - "alignment": "right", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "links": [], - "in": false, - "label": "▶" - }, - { - "id": "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", - "type": "default", - "x": 769.801, - "y": 351.884, + "extras": {}, + "x": 768.7875516546176, + "y": 357.32501680829904, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", "links": [ "472ff44c-81ab-4b52-8327-6f94d3db8b8e" ], "in": true, - "label": "★msg_response" + "label": "★msg_response", + "varName": "★msg_response", + "portType": "", + "dataType": "string" }, { - "id": "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2", + "id": "d7b8dec8-141d-466a-a2fd-8c8af7559e06", "type": "default", - "x": 769.801, - "y": 367.879, + "extras": {}, + "x": 768.7875516546176, + "y": 378.92505151004826, "name": "parameter-discord.message.Message-discord_msg", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", "links": [ "395192a1-4a8c-4ee9-83e4-063508951d1d" ], "in": true, - "label": "★discord_msg" + "label": "★discord_msg", + "varName": "★discord_msg", + "portType": "", + "dataType": "discord.message.Message" + }, + { + "id": "3d806f04-a497-4a58-bb87-338b9541d137", + "type": "default", + "extras": {}, + "x": 768.7875516546176, + "y": 400.525009438016, + "name": "parameter-string-attachment_path", + "alignment": "left", + "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "links": [], + "in": true, + "label": "attachment_path", + "varName": "attachment_path", + "portType": "", + "dataType": "string" + }, + { + "id": "ac6e5290-6786-4383-97ad-e29ad139acad", + "type": "default", + "extras": {}, + "x": 928.3374423287528, + "y": 335.7250588803313, + "name": "out-0", + "alignment": "right", + "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "links": [], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordPostMessage", - "color": "rgb(255,204,0)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "527d94a5-d052-4eb4-8d71-807536527f3f", - "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", - "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2" + "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", + "3aca4918-c6bf-41bd-b1aa-aa651408642f", + "d7b8dec8-141d-466a-a2fd-8c8af7559e06", + "3d806f04-a497-4a58-bb87-338b9541d137" ], "portsOutOrder": [ - "b6c332ab-7e0f-4359-905e-a76a7f13b81e" + "ac6e5290-6786-4383-97ad-e29ad139acad" ] }, - "720472d0-8169-44ec-87f6-e5c5a024b6a9": { - "id": "720472d0-8169-44ec-87f6-e5c5a024b6a9", + "55c8960d-24f7-41d0-abee-213c69eb3092": { + "id": "55c8960d-24f7-41d0-abee-213c69eb3092", "type": "custom-node", "selected": false, "extras": { - "type": "comment", - "commentInput": "When bot detects the msg_trigger string,\nit will execute the on_message flow." - }, - "x": 83.979, - "y": 9.126, - "ports": [], - "name": "Comment:", - "color": "rgb(255,255,255)", - "portsInOrder": [], - "portsOutOrder": [] - }, - "ca8698b8-e013-4cae-95e0-6ba4c85415dd": { - "id": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "type": "custom-node", - "selected": false, - "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "This component listens for a specified message trigger and, when detected, \nexecutes the provided on_message component, passing the received message as input.\n\n##### inPorts:\n- on_message: A BaseComponent to be executed when the message trigger is detected.\n- msg_trigger (str): The message trigger that the bot listens for.\n\n##### outPorts:\n- discord_msg: The received message that triggered the on_message component.\n- str_msg (str): The received message content as a string with the msg_trigger removed.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ @@ -959,140 +1114,131 @@ "lineno": 137, "end_lineno": 170 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 96.343, "y": 114.81, "ports": [ { - "id": "2a9fb513-31c7-490d-aab7-30559e5b6311", + "id": "7fc3da90-a783-439b-9eed-88a28e27861c", "type": "default", - "x": 98.153, - "y": 141.761, + "extras": {}, + "x": 97.13757560803742, + "y": 141.60001895796495, "name": "in-0", "alignment": "left", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", "links": [ "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "67f862aa-a555-4de3-95d3-a2cf73ccba27", + "type": "default", + "extras": {}, + "x": 97.13757560803742, + "y": 163.20001527282344, + "name": "parameter-string-msg_trigger", + "alignment": "left", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "links": [ + "6edb84ef-1512-40af-9ec8-67e104f0736b" + ], + "in": true, + "label": "★msg_trigger", + "varName": "★msg_trigger", + "portType": "", + "dataType": "string" }, { - "id": "8cb66111-2b49-4547-8d54-44b9f4a29824", + "id": "f671f950-3d88-46cb-9f4b-d13084bd2338", "type": "default", - "x": 306.761, - "y": 141.761, + "extras": {}, + "x": 277.612621058116, + "y": 141.60001895796495, "name": "out-0", "alignment": "right", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", "links": [ "0c836c00-49c8-4df4-a4f6-874b0ae69973" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "b5acaf6b-a144-4a03-a042-e3e832616bd5", + "id": "720a1a10-b13c-4591-a7a6-1b9a4f804597", "type": "default", - "x": 306.761, - "y": 157.756, + "extras": {}, + "x": 277.612621058116, + "y": 163.20001527282344, "name": "out-flow-on_message", "alignment": "right", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", "links": [ "89dd19d2-4c87-4707-a641-33e88b88cfa4" ], "in": false, - "label": "on_message ▶" + "label": "on_message ▶", + "varName": "on_message ▶", + "portType": "", + "dataType": "" }, { - "id": "e6c1025b-4a48-4319-99d2-8ab13c428bf9", + "id": "6f2065a5-8654-4515-9572-332e4e05da47", "type": "default", - "x": 98.153, - "y": 157.756, - "name": "parameter-string-msg_trigger", - "alignment": "left", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", - "links": [ - "238dcddb-5b69-4441-884f-d56a12f5005b" - ], - "in": true, - "label": "★msg_trigger" - }, - { - "id": "a9435d51-6f3c-41a2-bfa9-8dfefa76131d", - "type": "default", - "x": 306.761, - "y": 173.75, + "extras": {}, + "x": 277.612621058116, + "y": 184.80001158768192, "name": "parameter-out-discord.message.Message-discord_msg", "alignment": "right", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", "links": [ "395192a1-4a8c-4ee9-83e4-063508951d1d" ], "in": false, - "label": "discord_msg" + "label": "discord_msg", + "varName": "discord_msg", + "portType": "", + "dataType": "discord.message.Message" }, { - "id": "dce9c62d-61e0-4227-92fe-e68a76f8eb50", + "id": "215f383b-d1ee-4290-b02f-1492ff688db5", "type": "default", - "x": 306.761, - "y": 189.744, + "extras": {}, + "x": 277.612621058116, + "y": 206.4000079025404, "name": "parameter-out-string-str_msg", "alignment": "right", - "parentNode": "ca8698b8-e013-4cae-95e0-6ba4c85415dd", + "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", "links": [ "bda6826a-0cca-473d-9079-2ba53653d8c2" ], "in": false, - "label": "str_msg" + "label": "str_msg", + "varName": "str_msg", + "portType": "", + "dataType": "string" } ], "name": "DiscordTriggerBranch", - "color": "rgb(153,204,51)", + "color": "rgb(51,51,51)", "portsInOrder": [ - "2a9fb513-31c7-490d-aab7-30559e5b6311", - "e6c1025b-4a48-4319-99d2-8ab13c428bf9" - ], - "portsOutOrder": [ - "8cb66111-2b49-4547-8d54-44b9f4a29824", - "b5acaf6b-a144-4a03-a042-e3e832616bd5", - "a9435d51-6f3c-41a2-bfa9-8dfefa76131d", - "dce9c62d-61e0-4227-92fe-e68a76f8eb50" - ] - }, - "8064b37e-a953-406e-9e70-6cda15cafb74": { - "id": "8064b37e-a953-406e-9e70-6cda15cafb74", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string" - }, - "x": 423.683, - "y": 283.59, - "ports": [ - { - "id": "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42", - "type": "default", - "x": 520.312, - "y": 310.549, - "name": "out-0", - "alignment": "right", - "parentNode": "8064b37e-a953-406e-9e70-6cda15cafb74", - "links": [ - "4d17155e-424c-4293-8dd3-66d0ab7889c0" - ], - "in": false, - "label": "You have said: " - } + "7fc3da90-a783-439b-9eed-88a28e27861c", + "67f862aa-a555-4de3-95d3-a2cf73ccba27" ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], "portsOutOrder": [ - "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42" + "f671f950-3d88-46cb-9f4b-d13084bd2338", + "720a1a10-b13c-4591-a7a6-1b9a4f804597", + "6f2065a5-8654-4515-9572-332e4e05da47", + "215f383b-d1ee-4290-b02f-1492ff688db5" ] } } diff --git a/examples/DiscordBotCVisionExample.xircuits b/examples/DiscordBotCVisionExample.xircuits index 6970536..dc3ec85 100644 --- a/examples/DiscordBotCVisionExample.xircuits +++ b/examples/DiscordBotCVisionExample.xircuits @@ -1,36 +1,36 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 135.9736827790328, - "offsetY": 49.826600496425, - "zoom": 62.5, + "offsetX": 182.26919702326558, + "offsetY": 77.52047296207564, + "zoom": 84.5, "gridSize": 0, "layers": [ { - "id": "286358e8-c764-4d4d-809c-89167764d7dd", + "id": "dda203f7-11cb-45de-adc0-1ebe278328e6", "type": "diagram-links", "isSvg": true, "transformed": true, "models": { "7050d17f-1631-4aee-86ab-e1f7051c6617": { "id": "7050d17f-1631-4aee-86ab-e1f7051c6617", - "type": "triangle", + "type": "triangle-link", "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "bb6991a3-5132-42d3-a430-056deb84f29b", - "targetPort": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "target": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", + "targetPort": "47348e47-d943-403e-adad-ac214b7d00a8", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", "type": "point", - "x": -151.43, - "y": 76.534 + "x": -122.1874942868337, + "y": 79.1750050644266 }, { "id": "95621c4e-c084-43ae-b917-0e9b75f78610", "type": "point", - "x": -77.898, - "y": 147.14 + "x": -76.11250289134611, + "y": 149.7750057054763 } ], "labels": [], @@ -41,24 +41,24 @@ }, "ddf0437d-56ef-4b20-bda6-6142f72ecca0": { "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "sourcePort": "2c3491e1-77ff-4852-b751-6ae15a413c24", - "target": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", - "targetPort": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", + "source": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "sourcePort": "fac90c12-439a-4675-9386-4a6bff101b03", + "target": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "targetPort": "0c169174-13c6-48bc-8410-4c369bca2f82", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 980.701, - "y": 42.491 + "x": 1008.3001734514995, + "y": 45.13750419765515 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 1085.161, - "y": 43.854 + "x": 1086.9376373992245, + "y": 46.50001474337445 } ], "labels": [], @@ -69,24 +69,24 @@ }, "458ae3b9-49a9-42fd-acf7-05f32d965647": { "id": "458ae3b9-49a9-42fd-acf7-05f32d965647", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "sourcePort": "b8330c27-4e5b-4d74-878c-5aea434f62e0", - "target": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "targetPort": "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4", + "target": "2987483c-86b0-4226-b4c6-c074ee253194", + "targetPort": "a393d733-2186-4b3a-958e-fe58701ca748", "points": [ { "id": "a9dab119-5ba8-410e-aa03-1f7f10f2ccfc", "type": "point", - "x": 569.46, - "y": 134.205 + "x": 571.2500278338961, + "y": 133.85000910936003 }, { "id": "645d365c-36ce-4ea0-83c7-b8de54700b72", "type": "point", - "x": 595.956, - "y": 58.636 + "x": 597.7375374315841, + "y": 66.87499451870728 } ], "labels": [], @@ -97,24 +97,24 @@ }, "0899539d-fbec-4f8b-89bc-746d4137fbd1": { "id": "0899539d-fbec-4f8b-89bc-746d4137fbd1", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "sourcePort": "7a0c9ac9-18c0-4588-b87d-688aa980cee9", - "target": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "targetPort": "02182906-5298-4862-aa37-f26541653216", + "source": "2987483c-86b0-4226-b4c6-c074ee253194", + "sourcePort": "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b", + "target": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "targetPort": "35ba688d-801e-424a-b87b-2bfaf142279c", "points": [ { "id": "9bffc1c3-61d3-4397-88c8-a6df17660d03", "type": "point", - "x": 750.303, - "y": 42.642 + "x": 756.0749973343756, + "y": 45.274995818864454 }, { "id": "cb479acf-cef2-4094-8adf-8aa5387823bb", "type": "point", - "x": 863.655, - "y": 42.491 + "x": 865.4376029540882, + "y": 45.13750419765515 } ], "labels": [], @@ -125,24 +125,24 @@ }, "3a793bf4-1dac-4c3e-9552-d227345cc151": { "id": "3a793bf4-1dac-4c3e-9552-d227345cc151", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "bb6991a3-5132-42d3-a430-056deb84f29b", - "sourcePort": "2145de9b-8e09-4d75-b778-e4e1791d52f2", - "target": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "targetPort": "a6dcba85-9fc8-4d79-ac34-5617290406d6", + "source": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", + "sourcePort": "5203ff0a-c956-43e9-9035-072ecc510f61", + "target": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "targetPort": "00566588-4137-4377-9002-54f3e45de405", "points": [ { "id": "c559221e-7f79-495c-b253-7c130a18f313", "type": "point", - "x": 31.193, - "y": 147.14 + "x": 59.187558938350655, + "y": 149.7750057054763 }, { "id": "4fc7fd75-2afe-4ba9-a6a1-b22ce18c9e2a", "type": "point", - "x": 107.85, - "y": 181.383 + "x": 109.63751489552638, + "y": 184.02501003933355 } ], "labels": [], @@ -153,24 +153,24 @@ }, "a4f65d91-c51d-4788-b8a0-3c51556fbea0": { "id": "a4f65d91-c51d-4788-b8a0-3c51556fbea0", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "d6626896-ea06-45ca-851f-d5f63db5d64e", "sourcePort": "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78", - "target": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "targetPort": "5a5b5d0a-e262-472c-b9c6-3579d9008abd", + "target": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "targetPort": "503a6593-e448-442d-9a67-adcf45d7ce02", "points": [ { "id": "1c4c65ba-60c7-4bfc-8b25-1e31e2d4a01a", "type": "point", - "x": 33.352, - "y": 223.352 + "x": 35.13754044722639, + "y": 223.0000169103031 }, { "id": "9a31926f-ccb2-4774-b6a9-5ce67b012249", "type": "point", - "x": 107.85, - "y": 197.377 + "x": 109.63751489552638, + "y": 205.6250267969149 } ], "labels": [], @@ -181,18 +181,18 @@ }, "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701": { "id": "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "sourcePort": "cfddceaf-6ac8-4c78-89f0-e717f1128051", - "target": "207b2841-4827-49f2-bae1-f15e113f5629", - "targetPort": "2967a284-e892-403e-93eb-799f6d3998e6", + "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "sourcePort": "bc208150-dd00-47fd-88b3-e7575f90c5e8", + "target": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "targetPort": "5597fa18-509b-4be1-88da-8c199f3330b7", "points": [ { "id": "02011dfb-a03d-4e45-a70e-d6c6315fd310", "type": "point", - "x": 316.458, - "y": 229.365 + "x": 290.1125196447116, + "y": 248.82502419660057 }, { "id": "8f9e2134-2059-4452-ad47-b40166eb22ed", @@ -209,8 +209,8 @@ { "id": "e041bd06-dae2-44bb-9571-8c0fc78dced4", "type": "point", - "x": 471.089, - "y": 214.195 + "x": 472.86258388511646, + "y": 222.43751835492216 } ], "labels": [], @@ -221,18 +221,18 @@ }, "7e301b61-a8ba-4243-87bd-db5cbc3d97a7": { "id": "7e301b61-a8ba-4243-87bd-db5cbc3d97a7", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "sourcePort": "0b99b851-8afe-4fd4-9275-e3a4149f4395", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2", + "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "sourcePort": "71a7f118-f2f1-430f-acb9-3c74c87051e2", + "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "targetPort": "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", "points": [ { "id": "9c357250-d6d4-4c6c-9074-4ac0fa786de3", "type": "point", - "x": 316.458, - "y": 213.371 + "x": 290.1125196447116, + "y": 227.2250074390192 }, { "id": "e62c8dc3-6fde-4a74-b72c-2dccc71ac7a5", @@ -249,8 +249,8 @@ { "id": "88db0438-79a7-466c-ae74-db1f430477b6", "type": "point", - "x": 757.85, - "y": 320.047 + "x": 759.6375148955264, + "y": 333.90001437319086 } ], "labels": [], @@ -261,24 +261,24 @@ }, "3db0e5ec-74d9-462d-bd0e-1277608986b8": { "id": "3db0e5ec-74d9-462d-bd0e-1277608986b8", - "type": "custom", + "type": "parameter-link", "selected": false, - "source": "207b2841-4827-49f2-bae1-f15e113f5629", - "sourcePort": "5553932a-a313-4a55-82e0-240a9c380e07", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", + "source": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "sourcePort": "08d61928-c3c0-4d0f-93b1-455baeaa7c6b", + "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "targetPort": "668d7cbd-978a-4382-aa09-2cf8d261c54e", "points": [ { "id": "27916269-dd3d-42a6-a34d-2459aecb19db", "type": "point", - "x": 656.619, - "y": 214.195 + "x": 688.6000474807155, + "y": 222.43751835492216 }, { "id": "a0c303f2-e249-41ed-b605-c18d72f4d656", "type": "point", - "x": 757.85, - "y": 304.053 + "x": 759.6375148955264, + "y": 312.3000337310865 } ], "labels": [], @@ -289,24 +289,24 @@ }, "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84": { "id": "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "sourcePort": "d5f6f856-ac89-43dc-b5a4-ab06930c3ef8", - "target": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "targetPort": "fcc71481-78e8-4b46-8aab-d54f79788890", + "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "sourcePort": "ee5c57cc-081d-447a-b38d-308d2263a1cb", + "target": "2987483c-86b0-4226-b4c6-c074ee253194", + "targetPort": "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", "points": [ { "id": "9b94f844-be3b-4975-96e9-745189b09891", "type": "point", - "x": 316.458, - "y": 181.383 + "x": 290.1125196447116, + "y": 184.02501003933355 }, { "id": "3e6263e8-e594-46a2-980f-8178db7a14fe", "type": "point", - "x": 595.956, - "y": 42.642 + "x": 597.7375374315841, + "y": 45.274995818864454 } ], "labels": [], @@ -317,24 +317,24 @@ }, "342a9e7e-a441-43be-85a5-ee316e9d8ac0": { "id": "342a9e7e-a441-43be-85a5-ee316e9d8ac0", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "sourcePort": "ef6592fd-0159-4ecd-a256-37d6be50a8d5", - "target": "207b2841-4827-49f2-bae1-f15e113f5629", - "targetPort": "8c6a8b11-9f1f-4875-8987-9380f7d36292", + "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "sourcePort": "b0670301-c1ce-49d4-8935-38286d43bd32", + "target": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "targetPort": "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", "points": [ { "id": "24874c12-d592-4fbc-af2e-ec9446ff8534", "type": "point", - "x": 316.458, - "y": 197.377 + "x": 290.1125196447116, + "y": 205.6250267969149 }, { "id": "8771e104-21cd-4ba6-9496-cc12b958fe7b", "type": "point", - "x": 471.089, - "y": 198.201 + "x": 472.86258388511646, + "y": 200.8375015973408 } ], "labels": [], @@ -345,24 +345,24 @@ }, "57f0a64c-49b0-406d-9884-248af7df8b20": { "id": "57f0a64c-49b0-406d-9884-248af7df8b20", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "207b2841-4827-49f2-bae1-f15e113f5629", - "sourcePort": "3de13c28-d8ac-49f2-bce6-3a9ef361640f", - "target": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "targetPort": "527d94a5-d052-4eb4-8d71-807536527f3f", + "source": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "sourcePort": "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", + "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "targetPort": "1810fce5-de9e-430e-a676-b5196da56f7e", "points": [ { "id": "1e9c8414-5fb8-43d2-baf9-bd48348d77bf", "type": "point", - "x": 656.619, - "y": 198.201 + "x": 688.6000474807155, + "y": 200.8375015973408 }, { "id": "2a4ccf7d-3cff-430b-9e58-925714db0e6f", "type": "point", - "x": 757.85, - "y": 288.059 + "x": 759.6375148955264, + "y": 290.70001697350517 } ], "labels": [], @@ -374,7 +374,7 @@ } }, { - "id": "4635f184-5389-420c-8651-bc0b6eb9ad90", + "id": "47708e1d-b30e-4077-ad6b-26a2e811e15f", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -393,8 +393,9 @@ { "id": "bf8a4e2a-acf6-4402-ae31-00832051219c", "type": "default", - "x": -158.93, - "y": 69.034, + "extras": {}, + "x": -132.48749855748886, + "y": 68.87500079377143, "name": "out-0", "alignment": "right", "parentNode": "f2e8590e-a852-4f38-beab-2f9195005df7", @@ -402,7 +403,10 @@ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "Start", @@ -412,596 +416,722 @@ "bf8a4e2a-acf6-4402-ae31-00832051219c" ] }, - "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030": { - "id": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", + "9767a54c-dbc9-4387-8908-f18259b4c4a2": { + "id": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "type": "custom-node", "selected": false, "extras": { - "type": "Finish", + "type": "string" + }, + "x": 494.276, + "y": 99.751, + "ports": [ + { + "id": "b8330c27-4e5b-4d74-878c-5aea434f62e0", + "type": "default", + "extras": {}, + "x": 560.95006645037, + "y": 123.55000483870487, + "name": "out-0", + "alignment": "right", + "parentNode": "9767a54c-dbc9-4387-8908-f18259b4c4a2", + "links": [ + "458ae3b9-49a9-42fd-acf7-05f32d965647" + ], + "in": false, + "label": "$ayonara", + "varName": "$ayonara", + "portType": "", + "dataType": "" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "b8330c27-4e5b-4d74-878c-5aea434f62e0" + ] + }, + "d6626896-ea06-45ca-851f-d5f63db5d64e": { + "id": "d6626896-ea06-45ca-851f-d5f63db5d64e", + "type": "custom-node", + "selected": false, + "extras": { + "type": "string", "borderColor": "rgb(0,192,255)" }, + "x": -35.109, + "y": 188.901, + "ports": [ + { + "id": "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78", + "type": "default", + "extras": {}, + "x": 24.837550848483787, + "y": 212.70001263964792, + "name": "out-0", + "alignment": "right", + "parentNode": "d6626896-ea06-45ca-851f-d5f63db5d64e", + "links": [ + "a4f65d91-c51d-4788-b8a0-3c51556fbea0" + ], + "in": false, + "label": "$predict", + "varName": "$predict", + "portType": "", + "dataType": "" + } + ], + "name": "Literal String", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78" + ] + }, + "765e49ad-0419-450c-8fb2-e7ea3fda635c": { + "id": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "type": "custom-node", + "selected": true, + "extras": { + "type": "Finish" + }, "x": 1075.847, "y": 9.402, "ports": [ { - "id": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", + "id": "0c169174-13c6-48bc-8410-4c369bca2f82", "type": "default", - "x": 1077.661, - "y": 36.354, + "extras": {}, + "x": 1076.6376184566568, + "y": 36.200010472719285, "name": "in-0", "alignment": "left", - "parentNode": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", + "parentNode": "765e49ad-0419-450c-8fb2-e7ea3fda635c", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "7aa22f9c-3991-4dcd-8ee8-b1ee6100e681", + "type": "default", + "extras": {}, + "x": 1076.6376184566568, + "y": 57.800009172562106, + "name": "parameter-dynalist-outputs", + "alignment": "left", + "parentNode": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "links": [], + "in": true, + "label": "outputs", + "varName": "outputs", + "portType": "", + "dataType": "dynalist", + "dynaPortOrder": 0, + "dynaPortRef": { + "previous": null, + "next": null + } } ], "name": "Finish", "color": "rgb(255,102,102)", "portsInOrder": [ - "28be5ddf-3d38-4d16-b6b4-86a0d42f5681" + "0c169174-13c6-48bc-8410-4c369bca2f82", + "7aa22f9c-3991-4dcd-8ee8-b1ee6100e681" ], "portsOutOrder": [] }, - "bb6991a3-5132-42d3-a430-056deb84f29b": { - "id": "bb6991a3-5132-42d3-a430-056deb84f29b", + "144df2a3-cdae-4ef8-83f4-8531c64cce0f": { + "id": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Initializes a Discord client with the default intents and enables message content.\n\n##### ctx:\n- discord_client: A Discord client instance with the default intents and message content enabled.", "lineNo": [ { - "lineno": 8, - "end_lineno": 25 + "lineno": 9, + "end_lineno": 26 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": -87.223, "y": 112.685, "ports": [ { - "id": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "id": "47348e47-d943-403e-adad-ac214b7d00a8", "type": "default", - "x": -85.398, - "y": 139.64, + "extras": {}, + "x": -86.41249249008871, + "y": 139.4750161067337, "name": "in-0", "alignment": "left", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2145de9b-8e09-4d75-b778-e4e1791d52f2", + "id": "5203ff0a-c956-43e9-9035-072ecc510f61", "type": "default", - "x": 23.693, - "y": 139.64, + "extras": {}, + "x": 48.88756933960805, + "y": 139.4750161067337, "name": "out-0", "alignment": "right", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", "links": [ "3a793bf4-1dac-4c3e-9552-d227345cc151" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordClientInit", - "color": "rgb(255,153,102)", + "color": "rgb(102,51,102)", "portsInOrder": [ - "12dd6c07-7099-46cd-9924-d2a2920ebce9" + "47348e47-d943-403e-adad-ac214b7d00a8" ], "portsOutOrder": [ - "2145de9b-8e09-4d75-b778-e4e1791d52f2" + "5203ff0a-c956-43e9-9035-072ecc510f61" ] }, - "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828": { - "id": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "26a668f3-128d-4ec1-9722-d7c133be3ad9": { + "id": "26a668f3-128d-4ec1-9722-d7c133be3ad9", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", + "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication. \n If not provided, will search for 'DISCORD_BOT_TOKEN' from env.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 97, - "end_lineno": 129 + "lineno": 101, + "end_lineno": 134 } - ], - "nextNode": "None", - "borderColor": "rgb(0,192,255)" + ] }, "x": 854.34, "y": 8.039, "ports": [ { - "id": "02182906-5298-4862-aa37-f26541653216", + "id": "35ba688d-801e-424a-b87b-2bfaf142279c", "type": "default", - "x": 856.155, - "y": 34.991, + "extras": {}, + "x": 855.1376415705621, + "y": 34.83749992699998, "name": "in-0", "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2c3491e1-77ff-4852-b751-6ae15a413c24", + "id": "2e1b0aed-01d2-4f84-a9ea-1863488c54ea", "type": "default", - "x": 973.201, - "y": 34.991, + "extras": {}, + "x": 855.1376415705621, + "y": 56.4374986268428, + "name": "parameter-string-token", + "alignment": "left", + "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "links": [], + "in": true, + "label": "token", + "varName": "token", + "portType": "", + "dataType": "string" + }, + { + "id": "fac90c12-439a-4675-9386-4a6bff101b03", + "type": "default", + "extras": {}, + "x": 998.0002120679734, + "y": 34.83749992699998, "name": "out-0", "alignment": "right", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], "in": false, - "label": "▶" - }, - { - "id": "30f46225-d4d6-4ab3-8f14-1a85c7871a30", - "type": "default", - "x": 856.155, - "y": 50.985, - "name": "parameter-string-token", - "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "links": [], - "in": true, - "label": "token" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordDeployBot", - "color": "rgb(255,204,204)", + "color": "rgb(255,102,0)", "portsInOrder": [ - "02182906-5298-4862-aa37-f26541653216", - "30f46225-d4d6-4ab3-8f14-1a85c7871a30" + "35ba688d-801e-424a-b87b-2bfaf142279c", + "2e1b0aed-01d2-4f84-a9ea-1863488c54ea" ], "portsOutOrder": [ - "2c3491e1-77ff-4852-b751-6ae15a413c24" + "fac90c12-439a-4675-9386-4a6bff101b03" ] }, - "88068f3a-533d-4280-8c7c-ff0f1651cacd": { - "id": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "2987483c-86b0-4226-b4c6-c074ee253194": { + "id": "2987483c-86b0-4226-b4c6-c074ee253194", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Adds a shutdown command for the Discord bot that can be executed by an administrator.\n\n##### inPorts:\n- shutdown_cmd: The command that, when received from an administrator, will shut down the bot.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 71, - "end_lineno": 95 + "lineno": 73, + "end_lineno": 97 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 586.647, "y": 8.185, "ports": [ { - "id": "fcc71481-78e8-4b46-8aab-d54f79788890", + "id": "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", "type": "default", - "x": 588.456, - "y": 35.142, + "extras": {}, + "x": 587.4375184890164, + "y": 34.974991548209296, "name": "in-0", "alignment": "left", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", "links": [ "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84" ], "in": true, - "label": "▶" - }, - { - "id": "7a0c9ac9-18c0-4588-b87d-688aa980cee9", - "type": "default", - "x": 742.803, - "y": 35.142, - "name": "out-0", - "alignment": "right", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "links": [ - "0899539d-fbec-4f8b-89bc-746d4137fbd1" - ], - "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4", + "id": "a393d733-2186-4b3a-958e-fe58701ca748", "type": "default", - "x": 588.456, - "y": 51.136, + "extras": {}, + "x": 587.4375184890164, + "y": 56.574990248052124, "name": "parameter-string-shutdown_cmd", "alignment": "left", - "parentNode": "88068f3a-533d-4280-8c7c-ff0f1651cacd", + "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", "links": [ "458ae3b9-49a9-42fd-acf7-05f32d965647" ], "in": true, - "label": "★shutdown_cmd" - } - ], - "name": "DiscordShutdownBot", - "color": "rgb(15,255,255)", - "portsInOrder": [ - "fcc71481-78e8-4b46-8aab-d54f79788890", - "b89b2fb2-aeb8-40af-a92a-e9ca10aa13a4" - ], - "portsOutOrder": [ - "7a0c9ac9-18c0-4588-b87d-688aa980cee9" - ] - }, - "9767a54c-dbc9-4387-8908-f18259b4c4a2": { - "id": "9767a54c-dbc9-4387-8908-f18259b4c4a2", - "type": "custom-node", - "selected": false, - "extras": { - "type": "string" - }, - "x": 494.276, - "y": 99.751, - "ports": [ + "label": "★shutdown_cmd", + "varName": "★shutdown_cmd", + "portType": "", + "dataType": "string" + }, { - "id": "b8330c27-4e5b-4d74-878c-5aea434f62e0", + "id": "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b", "type": "default", - "x": 561.96, - "y": 126.705, + "extras": {}, + "x": 745.7749208327663, + "y": 34.974991548209296, "name": "out-0", "alignment": "right", - "parentNode": "9767a54c-dbc9-4387-8908-f18259b4c4a2", + "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", "links": [ - "458ae3b9-49a9-42fd-acf7-05f32d965647" + "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], "in": false, - "label": "$ayonara" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], + "name": "DiscordShutdownBot", + "color": "rgb(102,102,102)", + "portsInOrder": [ + "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", + "a393d733-2186-4b3a-958e-fe58701ca748" + ], "portsOutOrder": [ - "b8330c27-4e5b-4d74-878c-5aea434f62e0" + "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b" ] }, - "20fb577c-d42e-488b-966d-d7e3fb99199c": { - "id": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a": { + "id": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": null, + "description": "Sends a message with an optional attachment to the same channel as the received Discord message.\nIt uses the provided message as the response and references the original message in the reply.\n\n##### inPorts:\n- msg_response: The response message to be sent.\n- discord_msg (str): The original Discord message that the bot is replying to.\n- attachment_path (str): The local path to the file to be sent as an attachment. Defaults to None.", "lineNo": [ { - "lineno": 170, - "end_lineno": 178 + "lineno": 194, + "end_lineno": 218 } - ], - "borderColor": "rgb(0,192,255)", - "nextNode": "None" + ] }, "x": 748.539, "y": 253.604, "ports": [ { - "id": "527d94a5-d052-4eb4-8d71-807536527f3f", + "id": "1810fce5-de9e-430e-a676-b5196da56f7e", "type": "default", - "x": 750.35, - "y": 280.559, + "extras": {}, + "x": 749.3374959529586, + "y": 280.40002737476254, "name": "in-0", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", "links": [ "57f0a64c-49b0-406d-9884-248af7df8b20" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "b6c332ab-7e0f-4359-905e-a76a7f13b81e", + "id": "668d7cbd-978a-4382-aa09-2cf8d261c54e", "type": "default", - "x": 902.86, - "y": 280.559, - "name": "out-0", - "alignment": "right", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", - "links": [], - "in": false, - "label": "▶" - }, - { - "id": "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", - "type": "default", - "x": 750.35, - "y": 296.553, + "extras": {}, + "x": 749.3374959529586, + "y": 302.00004413234393, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", "links": [ "3db0e5ec-74d9-462d-bd0e-1277608986b8" ], "in": true, - "label": "★msg_response" + "label": "★msg_response", + "varName": "★msg_response", + "portType": "", + "dataType": "string" }, { - "id": "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2", + "id": "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", "type": "default", - "x": 750.35, - "y": 312.547, + "extras": {}, + "x": 749.3374959529586, + "y": 323.60002477444823, "name": "parameter-discord.message.Message-discord_msg", "alignment": "left", - "parentNode": "20fb577c-d42e-488b-966d-d7e3fb99199c", + "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", "links": [ "7e301b61-a8ba-4243-87bd-db5cbc3d97a7" ], "in": true, - "label": "★discord_msg" + "label": "★discord_msg", + "varName": "★discord_msg", + "portType": "", + "dataType": "discord.message.Message" + }, + { + "id": "634b73a8-a768-4993-9c93-606b6aab2e2e", + "type": "default", + "extras": {}, + "x": 749.3374959529586, + "y": 345.20004153202956, + "name": "parameter-string-attachment_path", + "alignment": "left", + "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "links": [], + "in": true, + "label": "attachment_path", + "varName": "attachment_path", + "portType": "", + "dataType": "string" + }, + { + "id": "21cdcc19-b6b6-4705-bbdb-185615b9ed13", + "type": "default", + "extras": {}, + "x": 908.8875837857988, + "y": 280.40002737476254, + "name": "out-0", + "alignment": "right", + "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "links": [], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordPostMessage", - "color": "rgb(255,204,0)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "527d94a5-d052-4eb4-8d71-807536527f3f", - "5d2594f4-c9bc-4f6c-8647-b6562f628bc5", - "0b06f296-9b4c-4db0-9b93-9ee1ba43fda2" + "1810fce5-de9e-430e-a676-b5196da56f7e", + "668d7cbd-978a-4382-aa09-2cf8d261c54e", + "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", + "634b73a8-a768-4993-9c93-606b6aab2e2e" ], "portsOutOrder": [ - "b6c332ab-7e0f-4359-905e-a76a7f13b81e" + "21cdcc19-b6b6-4705-bbdb-185615b9ed13" ] }, - "fca5f7ba-776a-4727-b93c-fbfb26adf635": { - "id": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "8f584000-7c26-41c2-b880-da3a1508dfc6": { + "id": "8f584000-7c26-41c2-b880-da3a1508dfc6", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": null, + "description": "Processes an image attachment from a Discord message and triggers the 'on_message' component.\n\n##### inPorts:\n- msg_trigger: String representing the message trigger.\n\n##### outPorts:\n- discord_msg: The processed Discord message.\n- image_data: Image data in bytes.", "lineNo": [ { - "lineno": 230, - "end_lineno": 256 + "lineno": 221, + "end_lineno": 257 } - ], - "borderColor": "rgb(0,192,255)", - "finishNodeId": "88068f3a-533d-4280-8c7c-ff0f1651cacd", - "isBranchNode": true + ] }, "x": 98.541, "y": 146.928, "ports": [ { - "id": "a6dcba85-9fc8-4d79-ac34-5617290406d6", + "id": "00566588-4137-4377-9002-54f3e45de405", "type": "default", - "x": 100.35, - "y": 173.883, + "extras": {}, + "x": 99.33749595295865, + "y": 173.72502044059095, "name": "in-0", "alignment": "left", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", "links": [ "3a793bf4-1dac-4c3e-9552-d227345cc151" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "d5f6f856-ac89-43dc-b5a4-ab06930c3ef8", + "id": "503a6593-e448-442d-9a67-adcf45d7ce02", "type": "default", - "x": 308.958, - "y": 173.883, + "extras": {}, + "x": 99.33749595295865, + "y": 195.3250371981723, + "name": "parameter-string-msg_trigger", + "alignment": "left", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "links": [ + "a4f65d91-c51d-4788-b8a0-3c51556fbea0" + ], + "in": true, + "label": "★msg_trigger", + "varName": "★msg_trigger", + "portType": "", + "dataType": "string" + }, + { + "id": "ee5c57cc-081d-447a-b38d-308d2263a1cb", + "type": "default", + "extras": {}, + "x": 279.812530045969, + "y": 173.72502044059095, "name": "out-0", "alignment": "right", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", "links": [ "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "ef6592fd-0159-4ecd-a256-37d6be50a8d5", + "id": "b0670301-c1ce-49d4-8935-38286d43bd32", "type": "default", - "x": 308.958, - "y": 189.877, + "extras": {}, + "x": 279.812530045969, + "y": 195.3250371981723, "name": "out-flow-on_message", "alignment": "right", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", "links": [ "342a9e7e-a441-43be-85a5-ee316e9d8ac0" ], "in": false, - "label": "on_message ▶" - }, - { - "id": "5a5b5d0a-e262-472c-b9c6-3579d9008abd", - "type": "default", - "x": 100.35, - "y": 189.877, - "name": "parameter-string-msg_trigger", - "alignment": "left", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "links": [ - "a4f65d91-c51d-4788-b8a0-3c51556fbea0" - ], - "in": true, - "label": "★msg_trigger" + "label": "on_message ▶", + "varName": "on_message ▶", + "portType": "", + "dataType": "" }, { - "id": "0b99b851-8afe-4fd4-9275-e3a4149f4395", + "id": "71a7f118-f2f1-430f-acb9-3c74c87051e2", "type": "default", - "x": 308.958, - "y": 205.871, + "extras": {}, + "x": 279.812530045969, + "y": 216.9250178402766, "name": "parameter-out-discord.message.Message-discord_msg", "alignment": "right", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", "links": [ "7e301b61-a8ba-4243-87bd-db5cbc3d97a7" ], "in": false, - "label": "discord_msg" + "label": "discord_msg", + "varName": "discord_msg", + "portType": "", + "dataType": "discord.message.Message" }, { - "id": "cfddceaf-6ac8-4c78-89f0-e717f1128051", + "id": "bc208150-dd00-47fd-88b3-e7575f90c5e8", "type": "default", - "x": 308.958, - "y": 221.865, + "extras": {}, + "x": 279.812530045969, + "y": 238.52503459785797, "name": "parameter-out-bytes-image_data", "alignment": "right", - "parentNode": "fca5f7ba-776a-4727-b93c-fbfb26adf635", + "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", "links": [ "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701" ], "in": false, - "label": "image_data" + "label": "image_data", + "varName": "image_data", + "portType": "", + "dataType": "bytes" } ], "name": "DiscordProcessImage", - "color": "rgb(153,204,204)", + "color": "rgb(255,153,102)", "portsInOrder": [ - "a6dcba85-9fc8-4d79-ac34-5617290406d6", - "5a5b5d0a-e262-472c-b9c6-3579d9008abd" + "00566588-4137-4377-9002-54f3e45de405", + "503a6593-e448-442d-9a67-adcf45d7ce02" ], "portsOutOrder": [ - "d5f6f856-ac89-43dc-b5a4-ab06930c3ef8", - "ef6592fd-0159-4ecd-a256-37d6be50a8d5", - "0b99b851-8afe-4fd4-9275-e3a4149f4395", - "cfddceaf-6ac8-4c78-89f0-e717f1128051" + "ee5c57cc-081d-447a-b38d-308d2263a1cb", + "b0670301-c1ce-49d4-8935-38286d43bd32", + "71a7f118-f2f1-430f-acb9-3c74c87051e2", + "bc208150-dd00-47fd-88b3-e7575f90c5e8" ] }, - "d6626896-ea06-45ca-851f-d5f63db5d64e": { - "id": "d6626896-ea06-45ca-851f-d5f63db5d64e", + "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9": { + "id": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "string", - "borderColor": "rgb(0,192,255)" - }, - "x": -35.109, - "y": 188.901, - "ports": [ - { - "id": "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78", - "type": "default", - "x": 25.852, - "y": 215.852, - "name": "out-0", - "alignment": "right", - "parentNode": "d6626896-ea06-45ca-851f-d5f63db5d64e", - "links": [ - "a4f65d91-c51d-4788-b8a0-3c51556fbea0" - ], - "in": false, - "label": "$predict" - } - ], - "name": "Literal String", - "color": "lightpink", - "portsInOrder": [], - "portsOutOrder": [ - "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78" - ] - }, - "207b2841-4827-49f2-bae1-f15e113f5629": { - "id": "207b2841-4827-49f2-bae1-f15e113f5629", - "type": "custom-node", - "selected": false, - "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/simple_ml_predict.py", - "description": null, + "description": "Processes image data using the MobileNetV2 model and returns the predicted class label.\n\n##### inPorts:\n- image_data: Input image data in bytes.\n\n##### outPorts:\n- prediction: Predicted class label for the input image.", "lineNo": [ { - "lineno": 11, - "end_lineno": 49 + "lineno": 17, + "end_lineno": 65 } - ], - "borderColor": "rgb(0,192,255)", - "sourceBranchId": "fca5f7ba-776a-4727-b93c-fbfb26adf635", - "portId": "ef6592fd-0159-4ecd-a256-37d6be50a8d5" + ] }, "x": 461.771, "y": 163.746, "ports": [ { - "id": "8c6a8b11-9f1f-4875-8987-9380f7d36292", + "id": "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", "type": "default", - "x": 463.589, - "y": 190.701, + "extras": {}, + "x": 462.5626225015903, + "y": 190.53749732668564, "name": "in-0", "alignment": "left", - "parentNode": "207b2841-4827-49f2-bae1-f15e113f5629", + "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", "links": [ "342a9e7e-a441-43be-85a5-ee316e9d8ac0" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "3de13c28-d8ac-49f2-bce6-3a9ef361640f", + "id": "5597fa18-509b-4be1-88da-8c199f3330b7", "type": "default", - "x": 649.119, - "y": 190.701, - "name": "out-0", - "alignment": "right", - "parentNode": "207b2841-4827-49f2-bae1-f15e113f5629", + "extras": {}, + "x": 462.5626225015903, + "y": 212.137514084267, + "name": "parameter-bytes-image_data", + "alignment": "left", + "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", "links": [ - "57f0a64c-49b0-406d-9884-248af7df8b20" + "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701" ], - "in": false, - "label": "▶" + "in": true, + "label": "image_data", + "varName": "image_data", + "portType": "", + "dataType": "bytes" }, { - "id": "2967a284-e892-403e-93eb-799f6d3998e6", + "id": "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", "type": "default", - "x": 463.589, - "y": 206.695, - "name": "parameter-bytes-image_data", - "alignment": "left", - "parentNode": "207b2841-4827-49f2-bae1-f15e113f5629", + "extras": {}, + "x": 678.3000860971894, + "y": 190.53749732668564, + "name": "out-0", + "alignment": "right", + "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", "links": [ - "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701" + "57f0a64c-49b0-406d-9884-248af7df8b20" ], - "in": true, - "label": "image_data" + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "5553932a-a313-4a55-82e0-240a9c380e07", + "id": "08d61928-c3c0-4d0f-93b1-455baeaa7c6b", "type": "default", - "x": 649.119, - "y": 206.695, + "extras": {}, + "x": 678.3000860971894, + "y": 212.137514084267, "name": "parameter-out-string-prediction", "alignment": "right", - "parentNode": "207b2841-4827-49f2-bae1-f15e113f5629", + "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", "links": [ "3db0e5ec-74d9-462d-bd0e-1277608986b8" ], "in": false, - "label": "prediction" + "label": "prediction", + "varName": "prediction", + "portType": "", + "dataType": "string" } ], "name": "MobileNetV2ProcessImageData", - "color": "rgb(153,0,102)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "8c6a8b11-9f1f-4875-8987-9380f7d36292", - "2967a284-e892-403e-93eb-799f6d3998e6" + "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", + "5597fa18-509b-4be1-88da-8c199f3330b7" ], "portsOutOrder": [ - "3de13c28-d8ac-49f2-bce6-3a9ef361640f", - "5553932a-a313-4a55-82e0-240a9c380e07" + "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", + "08d61928-c3c0-4d0f-93b1-455baeaa7c6b" ] } } diff --git a/examples/DiscordBotMessageResponder.xircuits b/examples/DiscordBotMessageResponder.xircuits index a814ee7..0149dab 100644 --- a/examples/DiscordBotMessageResponder.xircuits +++ b/examples/DiscordBotMessageResponder.xircuits @@ -1,36 +1,36 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 173.1877037616182, - "offsetY": -8.357178321671915, - "zoom": 70, + "offsetX": 192.87523941192, + "offsetY": -4.491515018306984, + "zoom": 88, "gridSize": 0, "layers": [ { - "id": "92c1246c-c634-4372-aa2a-f4fedcce888f", + "id": "e46b18cd-0b8f-4f87-8d6b-18c55d28f71e", "type": "diagram-links", "isSvg": true, "transformed": true, "models": { "7050d17f-1631-4aee-86ab-e1f7051c6617": { "id": "7050d17f-1631-4aee-86ab-e1f7051c6617", - "type": "triangle", + "type": "triangle-link", "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "bb6991a3-5132-42d3-a430-056deb84f29b", - "targetPort": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "target": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "targetPort": "4afe61fa-5356-4229-8cdc-d39869e021b4", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", "type": "point", - "x": -151.43, - "y": 76.535 + "x": -122.18746709996292, + "y": 79.17500176412005 }, { "id": "95621c4e-c084-43ae-b917-0e9b75f78610", "type": "point", - "x": -77.898, - "y": 147.14 + "x": -76.11247847469659, + "y": 149.775008561217 } ], "labels": [], @@ -41,24 +41,24 @@ }, "54738be9-1998-42eb-9c58-d16ebfe0df66": { "id": "54738be9-1998-42eb-9c58-d16ebfe0df66", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f", "sourcePort": "8a0d365e-17d1-4b36-a706-b9b2466739b8", - "target": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", - "targetPort": "39e373d0-2d26-47fc-bdbf-d0054bce7e7d", + "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "targetPort": "a4691161-5fc8-4ea9-8f82-2716bc850001", "points": [ { "id": "da80e56c-1b6e-4093-a94b-8fd1fcd6e82b", "type": "point", - "x": 34.886, - "y": 258.949 + "x": 36.66252651908893, + "y": 258.5875141098676 }, { "id": "4ac1c127-3527-4117-a60d-9918401ba4bd", "type": "point", - "x": 112.888, - "y": 240.871 + "x": 114.67500053579869, + "y": 249.11253436244212 } ], "labels": [], @@ -69,24 +69,24 @@ }, "c2ff702a-67c2-4f20-be5e-3abeb1f397dd": { "id": "c2ff702a-67c2-4f20-be5e-3abeb1f397dd", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "05f6a2a4-09fd-4b86-9d58-7b6100a9635f", "sourcePort": "0a93b1c9-5a1d-4472-b4ec-89f32192874c", - "target": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", - "targetPort": "73a121cf-5127-4cd8-81d1-77d45f112aac", + "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "targetPort": "aa670f0e-b826-4fdc-ab5e-d764c16680ce", "points": [ { "id": "b56d5cfd-44de-40bd-9421-725dfb010249", "type": "point", - "x": 62.244, - "y": 336.487 + "x": 64.0375299436467, + "y": 336.1250160518953 }, { "id": "3b1b4303-7d2e-4ff0-96a1-386d896a6e53", "type": "point", - "x": 112.888, - "y": 256.866 + "x": 114.67500053579869, + "y": 270.7124946895906 } ], "labels": [], @@ -97,24 +97,24 @@ }, "92084b70-0aa5-4921-a9e6-579531ad4d8e": { "id": "92084b70-0aa5-4921-a9e6-579531ad4d8e", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "bb6991a3-5132-42d3-a430-056deb84f29b", - "sourcePort": "2145de9b-8e09-4d75-b778-e4e1791d52f2", - "target": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", - "targetPort": "86202b58-dc50-409a-a1c5-a6a859e91d89", + "source": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "sourcePort": "ad836562-a935-47db-9dd4-1aff1e991d40", + "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "targetPort": "a684e1fe-a51a-43f9-813e-0168cd3957ed", "points": [ { "id": "cb938bc2-bb5f-4cfe-8098-562857a07074", "type": "point", - "x": 31.193, - "y": 147.14 + "x": 59.18752384013108, + "y": 149.775008561217 }, { "id": "e2ad32d7-7b83-42b4-b286-0aa84bd9bdb2", "type": "point", - "x": 112.888, - "y": 224.877 + "x": 114.67500053579869, + "y": 227.51251768181135 } ], "labels": [], @@ -125,24 +125,24 @@ }, "51b25cea-9cb0-4fcc-bd20-f0c9b82de77f": { "id": "51b25cea-9cb0-4fcc-bd20-f0c9b82de77f", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "edeacca4-189e-4e93-977c-7baf07eed7d3", "sourcePort": "12a1645f-297a-4a57-9a01-4fd80908e745", - "target": "d00da486-a08e-4a2b-9c77-397aa91fde77", - "targetPort": "4523d7b1-8850-4aaa-be39-6a819b0a1efa", + "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "targetPort": "48a499f4-ed12-45b5-81be-6791325c6f2a", "points": [ { "id": "6b5b8bed-4ac5-43a7-a7e0-cc299716567c", "type": "point", - "x": 280.852, - "y": 355.985 + "x": 282.65006212582, + "y": 355.6250202133832 }, { "id": "3e3b566d-c017-484c-903b-b06958a60b3d", "type": "point", - "x": 366.525, - "y": 350.805 + "x": 368.3125842250548, + "y": 359.0500288137915 } ], "labels": [], @@ -153,24 +153,24 @@ }, "f76af186-01c4-46dc-ada1-cdd17cebe80f": { "id": "f76af186-01c4-46dc-ada1-cdd17cebe80f", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "f599d71f-42f7-4d0a-a1cd-9bcfc3a080ae", "sourcePort": "674b4e87-6d8c-4f23-a532-deb52b47a5e2", - "target": "d00da486-a08e-4a2b-9c77-397aa91fde77", - "targetPort": "3355533b-bcba-49ab-ac02-05f399ee506c", + "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "targetPort": "2fe24476-ac5d-4637-a895-2a5711f8d5d7", "points": [ { "id": "b6b49e02-d544-4cb7-9c89-3d1af980372b", "type": "point", - "x": 307.727, - "y": 439.593 + "x": 309.51249378205057, + "y": 439.22502544992216 }, { "id": "0ca125c1-45f2-43d6-94ba-e9a053a18db3", "type": "point", - "x": 366.525, - "y": 366.799 + "x": 368.3125842250548, + "y": 380.65000973163546 } ], "labels": [], @@ -181,24 +181,24 @@ }, "b7e21308-8291-4225-acdf-d64025ad9d75": { "id": "b7e21308-8291-4225-acdf-d64025ad9d75", - "type": "custom", + "type": "parameter-link", "selected": false, "source": "6e4b0b0b-a64e-408c-8eb9-0b7ef2f80d10", "sourcePort": "31cb8b30-97c3-4e26-982e-6ca5db462d64", - "target": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", - "targetPort": "6e16a798-a75d-496a-aa6e-9d8f2e71b746", + "target": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "targetPort": "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0", "points": [ { "id": "2b2d95b4-a1b2-4a38-84c7-bc0dd245aeb2", "type": "point", - "x": 551.875, - "y": 490.597 + "x": 553.6625384833667, + "y": 490.23752304839684 }, { "id": "2419811a-905d-4df0-8c2c-d4450fde4a05", "type": "point", - "x": 590.455, - "y": 424.801 + "x": 592.2374779077081, + "y": 433.0375171269463 } ], "labels": [], @@ -209,24 +209,24 @@ }, "ddf0437d-56ef-4b20-bda6-6142f72ecca0": { "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "sourcePort": "2c3491e1-77ff-4852-b751-6ae15a413c24", - "target": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", - "targetPort": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", + "source": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "sourcePort": "008d06c5-e6b5-4934-825a-25e0306d12b5", + "target": "f99ca041-322e-45a2-8646-73f2319a7a12", + "targetPort": "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 912.841, - "y": 496.307 + "x": 940.4374956633899, + "y": 498.95001417055596 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 963.75, - "y": 571.222 + "x": 965.537482996861, + "y": 573.8625535659748 } ], "labels": [], @@ -237,24 +237,24 @@ }, "f89a13f2-8fd5-4f23-9b57-cd41409f9baf": { "id": "f89a13f2-8fd5-4f23-9b57-cd41409f9baf", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", - "sourcePort": "b333a018-2aac-4b9f-bc07-f1e31edbd5a1", - "target": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "targetPort": "02182906-5298-4862-aa37-f26541653216", + "source": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "sourcePort": "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0", + "target": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "targetPort": "00a11c7a-87b9-4402-898a-e497c42d6d13", "points": [ { "id": "7f554509-8aae-45ff-89a4-54b59fe9a081", "type": "point", - "x": 744.801, - "y": 408.807 + "x": 750.5749918747019, + "y": 411.43752212073184 }, { "id": "39479bf5-a050-43fb-a4ec-6d9712c8d074", "type": "point", - "x": 795.795, - "y": 496.307 + "x": 797.5750575915321, + "y": 498.95001417055596 } ], "labels": [], @@ -265,24 +265,24 @@ }, "cfd474f1-20ff-4394-83f2-0f9a89076f8e": { "id": "cfd474f1-20ff-4394-83f2-0f9a89076f8e", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", - "sourcePort": "96d79570-68cc-4e48-8126-c7708d0cf40f", - "target": "d00da486-a08e-4a2b-9c77-397aa91fde77", - "targetPort": "3beefa48-e545-4361-8363-7b5ed0552e10", + "source": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "sourcePort": "79e6b6e0-781f-4074-979a-297785e36edc", + "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "targetPort": "02a71555-10a3-4048-a4b6-cd39aa872d1b", "points": [ { "id": "270c9f17-fd04-40a2-86ad-04c2d419509a", "type": "point", - "x": 277.633, - "y": 224.877 + "x": 308.02503928098525, + "y": 227.51251768181135 }, { "id": "9f98b634-47df-43e6-8109-8f0b666433f6", "type": "point", - "x": 366.525, - "y": 334.811 + "x": 368.3125842250548, + "y": 337.44999912851097 } ], "labels": [], @@ -293,24 +293,24 @@ }, "4a3e0f16-ddae-40b7-b634-946df61f892b": { "id": "4a3e0f16-ddae-40b7-b634-946df61f892b", - "type": "triangle", + "type": "triangle-link", "selected": false, - "source": "d00da486-a08e-4a2b-9c77-397aa91fde77", - "sourcePort": "69f24c24-59ac-4f9c-b29c-ea49804e17f8", - "target": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", - "targetPort": "9eeee040-7dc9-454c-8fa6-684f5d34d39c", + "source": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "sourcePort": "35b2982d-fb6a-44ef-9166-a2756bdd11d1", + "target": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "targetPort": "f5cc09cb-6a81-4344-999b-f8e53502e2ff", "points": [ { "id": "0df750a5-4189-4eeb-881c-a445181c81db", "type": "point", - "x": 531.269, - "y": 334.811 + "x": 561.6625265190889, + "y": 337.44999912851097 }, { "id": "d9f33f95-c09f-4288-98be-8cd9336522e7", "type": "point", - "x": 590.455, - "y": 408.807 + "x": 592.2374779077081, + "y": 411.43752212073184 } ], "labels": [], @@ -322,7 +322,7 @@ } }, { - "id": "4c82c2b5-fd78-48db-8e37-f9f9f8635d95", + "id": "42b67c71-b12e-4d42-a915-ffc1a073140f", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -330,7 +330,7 @@ "f2e8590e-a852-4f38-beab-2f9195005df7": { "id": "f2e8590e-a852-4f38-beab-2f9195005df7", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "Start", "borderColor": "rgb(0,192,255)" @@ -341,8 +341,9 @@ { "id": "bf8a4e2a-acf6-4402-ae31-00832051219c", "type": "default", - "x": -158.93, - "y": 69.035, + "extras": {}, + "x": -132.48748241944034, + "y": 68.87499944929239, "name": "out-0", "alignment": "right", "parentNode": "f2e8590e-a852-4f38-beab-2f9195005df7", @@ -350,7 +351,10 @@ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "Start", @@ -360,39 +364,6 @@ "bf8a4e2a-acf6-4402-ae31-00832051219c" ] }, - "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030": { - "id": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", - "type": "custom-node", - "selected": false, - "extras": { - "type": "Finish", - "borderColor": "rgb(0,192,255)" - }, - "x": 954.44, - "y": 536.763, - "ports": [ - { - "id": "28be5ddf-3d38-4d16-b6b4-86a0d42f5681", - "type": "default", - "x": 956.25, - "y": 563.722, - "name": "in-0", - "alignment": "left", - "parentNode": "c2ba7b34-5b8c-405d-8c8d-3fdbafad6030", - "links": [ - "ddf0437d-56ef-4b20-bda6-6142f72ecca0" - ], - "in": true, - "label": "▶" - } - ], - "name": "Finish", - "color": "rgb(255,102,102)", - "portsInOrder": [ - "28be5ddf-3d38-4d16-b6b4-86a0d42f5681" - ], - "portsOutOrder": [] - }, "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f": { "id": "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f", "type": "custom-node", @@ -407,8 +378,9 @@ { "id": "8a0d365e-17d1-4b36-a706-b9b2466739b8", "type": "default", - "x": 27.386, - "y": 251.449, + "extras": {}, + "x": 26.3625111996115, + "y": 248.2875117950399, "name": "out-0", "alignment": "right", "parentNode": "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f", @@ -416,7 +388,10 @@ "54738be9-1998-42eb-9c58-d16ebfe0df66" ], "in": false, - "label": "$Hello there!" + "label": "$Hello there!", + "varName": "$Hello there!", + "portType": "", + "dataType": "" } ], "name": "Literal String", @@ -440,8 +415,9 @@ { "id": "0a93b1c9-5a1d-4472-b4ec-89f32192874c", "type": "default", - "x": 54.744, - "y": 328.987, + "extras": {}, + "x": 53.73754171718962, + "y": 325.8250137370676, "name": "out-0", "alignment": "right", "parentNode": "05f6a2a4-09fd-4b86-9d58-7b6100a9635f", @@ -449,7 +425,10 @@ "c2ff702a-67c2-4f20-be5e-3abeb1f397dd" ], "in": false, - "label": "General Kenobi!" + "label": "General Kenobi!", + "varName": "General Kenobi!", + "portType": "", + "dataType": "" } ], "name": "Literal String", @@ -473,8 +452,9 @@ { "id": "31cb8b30-97c3-4e26-982e-6ca5db462d64", "type": "default", - "x": 544.375, - "y": 483.097, + "extras": {}, + "x": 543.362466810407, + "y": 479.9375348219398, "name": "out-0", "alignment": "right", "parentNode": "6e4b0b0b-a64e-408c-8eb9-0b7ef2f80d10", @@ -482,7 +462,10 @@ "b7e21308-8291-4225-acdf-d64025ad9d75" ], "in": false, - "label": "$ayonara" + "label": "$ayonara", + "varName": "$ayonara", + "portType": "", + "dataType": "" } ], "name": "Literal String", @@ -505,8 +488,9 @@ { "id": "12a1645f-297a-4a57-9a01-4fd80908e745", "type": "default", - "x": 273.352, - "y": 348.485, + "extras": {}, + "x": 272.35007389936294, + "y": 345.32501789855553, "name": "out-0", "alignment": "right", "parentNode": "edeacca4-189e-4e93-977c-7baf07eed7d3", @@ -514,7 +498,10 @@ "51b25cea-9cb0-4fcc-bd20-f0c9b82de77f" ], "in": false, - "label": "$test" + "label": "$test", + "varName": "$test", + "portType": "", + "dataType": "" } ], "name": "Literal String", @@ -537,8 +524,9 @@ { "id": "674b4e87-6d8c-4f23-a532-deb52b47a5e2", "type": "default", - "x": 300.227, - "y": 432.093, + "extras": {}, + "x": 299.21247846257313, + "y": 428.9250101304447, "name": "out-0", "alignment": "right", "parentNode": "f599d71f-42f7-4d0a-a1cd-9bcfc3a080ae", @@ -546,7 +534,10 @@ "f76af186-01c4-46dc-ada1-cdd17cebe80f" ], "in": false, - "label": "it works!" + "label": "it works!", + "varName": "it works!", + "portType": "", + "dataType": "" } ], "name": "Literal String", @@ -556,321 +547,427 @@ "674b4e87-6d8c-4f23-a532-deb52b47a5e2" ] }, - "bb6991a3-5132-42d3-a430-056deb84f29b": { - "id": "bb6991a3-5132-42d3-a430-056deb84f29b", + "f99ca041-322e-45a2-8646-73f2319a7a12": { + "id": "f99ca041-322e-45a2-8646-73f2319a7a12", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "Finish" + }, + "x": 954.44, + "y": 536.763, + "ports": [ + { + "id": "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", + "type": "default", + "extras": {}, + "x": 955.2374113239013, + "y": 563.5625653395178, + "name": "in-0", + "alignment": "left", + "parentNode": "f99ca041-322e-45a2-8646-73f2319a7a12", + "links": [ + "ddf0437d-56ef-4b20-bda6-6142f72ecca0" + ], + "in": true, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" + }, + { + "id": "481af593-3b5f-476e-9825-79e87583bd8c", + "type": "default", + "extras": {}, + "x": 955.2374113239013, + "y": 585.1625603457323, + "name": "parameter-dynalist-outputs", + "alignment": "left", + "parentNode": "f99ca041-322e-45a2-8646-73f2319a7a12", + "links": [], + "in": true, + "label": "outputs", + "varName": "outputs", + "portType": "", + "dataType": "dynalist", + "dynaPortOrder": 0, + "dynaPortRef": { + "previous": null, + "next": null + } + } + ], + "name": "Finish", + "color": "rgb(255,102,102)", + "portsInOrder": [ + "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", + "481af593-3b5f-476e-9825-79e87583bd8c" + ], + "portsOutOrder": [] + }, + "f4b3b4be-a79e-4a54-9000-b0910c41489d": { + "id": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "type": "custom-node", + "selected": true, + "extras": { + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Initializes a Discord client with the default intents and enables message content.\n\n##### ctx:\n- discord_client: A Discord client instance with the default intents and message content enabled.", "lineNo": [ { - "lineno": 8, - "end_lineno": 25 + "lineno": 9, + "end_lineno": 26 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": -87.223, "y": 112.685, "ports": [ { - "id": "12dd6c07-7099-46cd-9924-d2a2920ebce9", + "id": "4afe61fa-5356-4229-8cdc-d39869e021b4", "type": "default", - "x": -85.398, - "y": 139.64, + "extras": {}, + "x": -86.41249379417401, + "y": 139.47500624638934, "name": "in-0", "alignment": "left", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "f4b3b4be-a79e-4a54-9000-b0910c41489d", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2145de9b-8e09-4d75-b778-e4e1791d52f2", + "id": "ad836562-a935-47db-9dd4-1aff1e991d40", "type": "default", - "x": 23.693, - "y": 139.64, + "extras": {}, + "x": 48.887535613674, + "y": 139.47500624638934, "name": "out-0", "alignment": "right", - "parentNode": "bb6991a3-5132-42d3-a430-056deb84f29b", + "parentNode": "f4b3b4be-a79e-4a54-9000-b0910c41489d", "links": [ "92084b70-0aa5-4921-a9e6-579531ad4d8e" ], "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordClientInit", - "color": "rgb(255,153,102)", + "color": "rgb(102,51,102)", "portsInOrder": [ - "12dd6c07-7099-46cd-9924-d2a2920ebce9" + "4afe61fa-5356-4229-8cdc-d39869e021b4" ], "portsOutOrder": [ - "2145de9b-8e09-4d75-b778-e4e1791d52f2" + "ad836562-a935-47db-9dd4-1aff1e991d40" ] }, - "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9": { - "id": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", + "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e": { + "id": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Adds a message responder that listens for a specified trigger message and responds with the specified response.\n\n##### inPorts:\n- msg_trigger: The message trigger that the bot listens for.\n- msg_response: The response the bot sends when the trigger is detected.\n\n##### ctx:\n- message_responders: A list of tuples containing message triggers and their corresponding responses.\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 29, - "end_lineno": 65 + "lineno": 30, + "end_lineno": 68 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 103.579, "y": 190.422, "ports": [ { - "id": "86202b58-dc50-409a-a1c5-a6a859e91d89", + "id": "a684e1fe-a51a-43f9-813e-0168cd3957ed", "type": "default", - "x": 105.388, - "y": 217.377, + "extras": {}, + "x": 104.37501230934161, + "y": 217.21250236233394, "name": "in-0", "alignment": "left", - "parentNode": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", + "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", "links": [ "92084b70-0aa5-4921-a9e6-579531ad4d8e" ], "in": true, - "label": "▶" - }, - { - "id": "96d79570-68cc-4e48-8126-c7708d0cf40f", - "type": "default", - "x": 270.133, - "y": 217.377, - "name": "out-0", - "alignment": "right", - "parentNode": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", - "links": [ - "cfd474f1-20ff-4394-83f2-0f9a89076f8e" - ], - "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "39e373d0-2d26-47fc-bdbf-d0054bce7e7d", + "id": "a4691161-5fc8-4ea9-8f82-2716bc850001", "type": "default", - "x": 105.388, - "y": 233.371, + "extras": {}, + "x": 104.37501230934161, + "y": 238.81253204761447, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", + "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", "links": [ "54738be9-1998-42eb-9c58-d16ebfe0df66" ], "in": true, - "label": "★msg_trigger" + "label": "★msg_trigger", + "varName": "★msg_trigger", + "portType": "", + "dataType": "string" }, { - "id": "73a121cf-5127-4cd8-81d1-77d45f112aac", + "id": "aa670f0e-b826-4fdc-ab5e-d764c16680ce", "type": "default", - "x": 105.388, - "y": 249.366, + "extras": {}, + "x": 104.37501230934161, + "y": 260.4124923747629, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "71f6d0db-8f46-47fd-8c5f-331b3ad12ad9", + "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", "links": [ "c2ff702a-67c2-4f20-be5e-3abeb1f397dd" ], "in": true, - "label": "★msg_response" + "label": "★msg_response", + "varName": "★msg_response", + "portType": "", + "dataType": "string" + }, + { + "id": "79e6b6e0-781f-4074-979a-297785e36edc", + "type": "default", + "extras": {}, + "x": 297.7250239615078, + "y": 217.21250236233394, + "name": "out-0", + "alignment": "right", + "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "links": [ + "cfd474f1-20ff-4394-83f2-0f9a89076f8e" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordMessageResponder", - "color": "rgb(255,102,102)", + "color": "rgb(153,51,204)", "portsInOrder": [ - "86202b58-dc50-409a-a1c5-a6a859e91d89", - "39e373d0-2d26-47fc-bdbf-d0054bce7e7d", - "73a121cf-5127-4cd8-81d1-77d45f112aac" + "a684e1fe-a51a-43f9-813e-0168cd3957ed", + "a4691161-5fc8-4ea9-8f82-2716bc850001", + "aa670f0e-b826-4fdc-ab5e-d764c16680ce" ], "portsOutOrder": [ - "96d79570-68cc-4e48-8126-c7708d0cf40f" + "79e6b6e0-781f-4074-979a-297785e36edc" ] }, - "d00da486-a08e-4a2b-9c77-397aa91fde77": { - "id": "d00da486-a08e-4a2b-9c77-397aa91fde77", + "3dcc032c-7822-424a-b0fe-aefd495fb580": { + "id": "3dcc032c-7822-424a-b0fe-aefd495fb580", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Adds a message responder that listens for a specified trigger message and responds with the specified response.\n\n##### inPorts:\n- msg_trigger: The message trigger that the bot listens for.\n- msg_response: The response the bot sends when the trigger is detected.\n\n##### ctx:\n- message_responders: A list of tuples containing message triggers and their corresponding responses.\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 29, - "end_lineno": 65 + "lineno": 30, + "end_lineno": 68 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 357.215, "y": 300.353, "ports": [ { - "id": "3beefa48-e545-4361-8363-7b5ed0552e10", + "id": "02a71555-10a3-4048-a4b6-cd39aa872d1b", "type": "default", - "x": 359.025, - "y": 327.311, + "extras": {}, + "x": 358.0125689055774, + "y": 327.14999681368334, "name": "in-0", "alignment": "left", - "parentNode": "d00da486-a08e-4a2b-9c77-397aa91fde77", + "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", "links": [ "cfd474f1-20ff-4394-83f2-0f9a89076f8e" ], "in": true, - "label": "▶" - }, - { - "id": "69f24c24-59ac-4f9c-b29c-ea49804e17f8", - "type": "default", - "x": 523.769, - "y": 327.311, - "name": "out-0", - "alignment": "right", - "parentNode": "d00da486-a08e-4a2b-9c77-397aa91fde77", - "links": [ - "4a3e0f16-ddae-40b7-b634-946df61f892b" - ], - "in": false, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "4523d7b1-8850-4aaa-be39-6a819b0a1efa", + "id": "48a499f4-ed12-45b5-81be-6791325c6f2a", "type": "default", - "x": 359.025, - "y": 343.305, + "extras": {}, + "x": 358.0125689055774, + "y": 348.7500264989639, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "d00da486-a08e-4a2b-9c77-397aa91fde77", + "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", "links": [ "51b25cea-9cb0-4fcc-bd20-f0c9b82de77f" ], "in": true, - "label": "★msg_trigger" + "label": "★msg_trigger", + "varName": "★msg_trigger", + "portType": "", + "dataType": "string" }, { - "id": "3355533b-bcba-49ab-ac02-05f399ee506c", + "id": "2fe24476-ac5d-4637-a895-2a5711f8d5d7", "type": "default", - "x": 359.025, - "y": 359.299, + "extras": {}, + "x": 358.0125689055774, + "y": 370.3500215051784, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "d00da486-a08e-4a2b-9c77-397aa91fde77", + "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", "links": [ "f76af186-01c4-46dc-ada1-cdd17cebe80f" ], "in": true, - "label": "★msg_response" + "label": "★msg_response", + "varName": "★msg_response", + "portType": "", + "dataType": "string" + }, + { + "id": "35b2982d-fb6a-44ef-9166-a2756bdd11d1", + "type": "default", + "extras": {}, + "x": 551.3625111996115, + "y": 327.14999681368334, + "name": "out-0", + "alignment": "right", + "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "links": [ + "4a3e0f16-ddae-40b7-b634-946df61f892b" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordMessageResponder", - "color": "rgb(255,102,102)", + "color": "rgb(153,51,204)", "portsInOrder": [ - "3beefa48-e545-4361-8363-7b5ed0552e10", - "4523d7b1-8850-4aaa-be39-6a819b0a1efa", - "3355533b-bcba-49ab-ac02-05f399ee506c" + "02a71555-10a3-4048-a4b6-cd39aa872d1b", + "48a499f4-ed12-45b5-81be-6791325c6f2a", + "2fe24476-ac5d-4637-a895-2a5711f8d5d7" ], "portsOutOrder": [ - "69f24c24-59ac-4f9c-b29c-ea49804e17f8" + "35b2982d-fb6a-44ef-9166-a2756bdd11d1" ] }, - "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379": { - "id": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", + "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1": { + "id": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", "description": "Adds a shutdown command for the Discord bot that can be executed by an administrator.\n\n##### inPorts:\n- shutdown_cmd: The command that, when received from an administrator, will shut down the bot.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 70, - "end_lineno": 93 + "lineno": 73, + "end_lineno": 97 } - ], - "borderColor": "rgb(0,192,255)" + ] }, "x": 581.143, "y": 374.348, "ports": [ { - "id": "9eeee040-7dc9-454c-8fa6-684f5d34d39c", + "id": "f5cc09cb-6a81-4344-999b-f8e53502e2ff", "type": "default", - "x": 582.955, - "y": 401.307, + "extras": {}, + "x": 581.9375178579921, + "y": 401.1375068012544, "name": "in-0", "alignment": "left", - "parentNode": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", + "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", "links": [ "4a3e0f16-ddae-40b7-b634-946df61f892b" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "b333a018-2aac-4b9f-bc07-f1e31edbd5a1", + "id": "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0", "type": "default", - "x": 737.301, - "y": 401.307, - "name": "out-0", - "alignment": "right", - "parentNode": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", + "extras": {}, + "x": 581.9375178579921, + "y": 422.73750180746885, + "name": "parameter-string-shutdown_cmd", + "alignment": "left", + "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", "links": [ - "f89a13f2-8fd5-4f23-9b57-cd41409f9baf" + "b7e21308-8291-4225-acdf-d64025ad9d75" ], - "in": false, - "label": "▶" + "in": true, + "label": "★shutdown_cmd", + "varName": "★shutdown_cmd", + "portType": "", + "dataType": "string" }, { - "id": "6e16a798-a75d-496a-aa6e-9d8f2e71b746", + "id": "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0", "type": "default", - "x": 582.955, - "y": 417.301, - "name": "parameter-string-shutdown_cmd", - "alignment": "left", - "parentNode": "2d02f8d4-c0b3-4e9b-8bbe-467ec24ed379", + "extras": {}, + "x": 740.2749202017421, + "y": 401.1375068012544, + "name": "out-0", + "alignment": "right", + "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", "links": [ - "b7e21308-8291-4225-acdf-d64025ad9d75" + "f89a13f2-8fd5-4f23-9b57-cd41409f9baf" ], - "in": true, - "label": "★shutdown_cmd" + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordShutdownBot", - "color": "rgb(15,255,255)", + "color": "rgb(102,102,102)", "portsInOrder": [ - "9eeee040-7dc9-454c-8fa6-684f5d34d39c", - "6e16a798-a75d-496a-aa6e-9d8f2e71b746" + "f5cc09cb-6a81-4344-999b-f8e53502e2ff", + "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0" ], "portsOutOrder": [ - "b333a018-2aac-4b9f-bc07-f1e31edbd5a1" + "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0" ] }, - "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828": { - "id": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88": { + "id": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", "type": "custom-node", - "selected": false, + "selected": true, "extras": { - "type": "debug", + "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", - "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", + "description": "Deploys the Discord bot using the provided token, running either in Xircuits or as a standalone script.\n\n##### inPorts:\n- token: The bot token to be used for authentication. \n If not provided, will search for 'DISCORD_BOT_TOKEN' from env.\n\n##### ctx:\n- on_message_handlers: A list of message handling functions that are called when a message is received.", "lineNo": [ { - "lineno": 97, - "end_lineno": 129 + "lineno": 101, + "end_lineno": 134 } ] }, @@ -878,54 +975,66 @@ "y": 461.853, "ports": [ { - "id": "02182906-5298-4862-aa37-f26541653216", + "id": "00a11c7a-87b9-4402-898a-e497c42d6d13", "type": "default", - "x": 788.295, - "y": 488.807, + "extras": {}, + "x": 787.2750422720546, + "y": 488.65002594409884, "name": "in-0", "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", "links": [ "f89a13f2-8fd5-4f23-9b57-cd41409f9baf" ], "in": true, - "label": "▶" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" }, { - "id": "2c3491e1-77ff-4852-b751-6ae15a413c24", + "id": "4d792116-f54a-43cd-85a4-bc27b76eb60f", "type": "default", - "x": 905.341, - "y": 488.807, + "extras": {}, + "x": 787.2750422720546, + "y": 510.25002095031334, + "name": "parameter-string-token", + "alignment": "left", + "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "links": [], + "in": true, + "label": "token", + "varName": "token", + "portType": "", + "dataType": "string" + }, + { + "id": "008d06c5-e6b5-4934-825a-25e0306d12b5", + "type": "default", + "extras": {}, + "x": 930.137535613674, + "y": 488.65002594409884, "name": "out-0", "alignment": "right", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", + "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], "in": false, - "label": "▶" - }, - { - "id": "30f46225-d4d6-4ab3-8f14-1a85c7871a30", - "type": "default", - "x": 788.295, - "y": 504.801, - "name": "parameter-string-token", - "alignment": "left", - "parentNode": "6c5afa8f-fff0-4f85-a8c0-fb4a16fa5828", - "links": [], - "in": true, - "label": "token" + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "" } ], "name": "DiscordDeployBot", - "color": "rgb(255,204,204)", + "color": "rgb(255,102,0)", "portsInOrder": [ - "02182906-5298-4862-aa37-f26541653216", - "30f46225-d4d6-4ab3-8f14-1a85c7871a30" + "00a11c7a-87b9-4402-898a-e497c42d6d13", + "4d792116-f54a-43cd-85a4-bc27b76eb60f" ], "portsOutOrder": [ - "2c3491e1-77ff-4852-b751-6ae15a413c24" + "008d06c5-e6b5-4934-825a-25e0306d12b5" ] } } From 9be4ac32005a56ccd88787a35961c3b4d65cf35c Mon Sep 17 00:00:00 2001 From: rabea-al Date: Tue, 15 Oct 2024 18:52:52 +0800 Subject: [PATCH 6/7] Update workflow test --- .github/workflows/run-workflow-tests.yml | 39 +- examples/DiscordBotBranchExample.xircuits | 435 +++++++++++-------- examples/DiscordBotCVisionExample.xircuits | 427 ++++++++++-------- examples/DiscordBotMessageResponder.xircuits | 387 ++++++++++------- 4 files changed, 754 insertions(+), 534 deletions(-) diff --git a/.github/workflows/run-workflow-tests.yml b/.github/workflows/run-workflow-tests.yml index 832d5dd..6b51d62 100644 --- a/.github/workflows/run-workflow-tests.yml +++ b/.github/workflows/run-workflow-tests.yml @@ -33,6 +33,8 @@ jobs: run: | python -m venv venv echo "${{ github.workspace }}/venv/bin" >> $GITHUB_PATH + source venv/bin/activate + pip install --upgrade pip - name: Install xircuits in virtual environment run: pip install xircuits @@ -79,6 +81,14 @@ jobs: echo "Repository: $LIBRARY_NAME" > $LOG_FILE echo "Branch: $BRANCH_NAME" >> $LOG_FILE echo -e "Testing Files:\n$TEST_FILES" >> $LOG_FILE + + #Get the server token for GitHub secret if any + TOKEN="${{secrets.DISCORD_TOKEN}}" + + # Set waiting time to consider server run a success + SLEEP_TIME=120 + CHECK_INTERVAL=5 # Check server every 5 seconds + IFS=' ' read -r -a FILE_ARRAY <<< "$TEST_FILES" FAIL=0 if [ ${#FILE_ARRAY[@]} -eq 0 ]; then @@ -90,26 +100,35 @@ jobs: WORKFLOW_LOG_FILE="${FULL_PATH%.*}_workflow_log.txt" echo -e "\n\nProcessing $FULL_PATH..." | tee -a $LOG_FILE xircuits compile $FULL_PATH "${FULL_PATH%.*}.py" 2>&1 | tee -a $LOG_FILE - python "${FULL_PATH%.*}.py" 2>&1 | tee -a $WORKFLOW_LOG_FILE - LAST_LINE=$(tail -n 1 "$WORKFLOW_LOG_FILE") - if [[ "$LAST_LINE" != "Finished Executing" ]]; then - echo "Error: Workflow $FULL_PATH did not finish as expected" | tee -a $LOG_FILE - FAIL=1 + + python "${FULL_PATH%.*}.py" --token "$TOKEN" 2>&1 | tee -a $WORKFLOW_LOG_FILE & + WORKFLOW_PID=$! + + TIME_PASSED=0 + while ps -p $WORKFLOW_PID > /dev/null && [ $TIME_PASSED -lt $SLEEP_TIME ]; do + sleep $CHECK_INTERVAL + TIME_PASSED=$((TIME_PASSED + CHECK_INTERVAL)) + done + + if ps -p $WORKFLOW_PID > /dev/null; then + kill -9 $WORKFLOW_PID + echo "Test for $FULL_PATH server ran successfully for $SLEEP_TIME seconds." | tee -a $LOG_FILE else - echo "$FULL_PATH processed successfully" | tee -a $LOG_FILE + echo "Test for $FULL_PATH failed to run for $SLEEP_TIME seconds.." | tee -a $LOG_FILE + FAIL=1 fi - cat "$WORKFLOW_LOG_FILE" | tee -a $LOG_FILE else - echo "Specified file $FULL_PATH does not exist" | tee -a $LOG_FILE + echo "Specified file $FULL_PATH does not exist." | tee -a $LOG_FILE FAIL=1 fi done fi + if [ $FAIL -ne 0 ]; then echo "One or more workflows failed or did not finish as expected." | tee -a $LOG_FILE exit 1 else - echo "Workflow processing completed" | tee -a $LOG_FILE + echo "All workflows processed successfully." | tee -a $LOG_FILE fi - name: Upload log file @@ -117,4 +136,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: ${{ env.LIBRARY_NAME }}-validation-workflow-${{ matrix.python-version }} - path: ${{ github.workspace }}/workflow_logs.txt \ No newline at end of file + path: ${{ github.workspace }}/workflow_logs.txt diff --git a/examples/DiscordBotBranchExample.xircuits b/examples/DiscordBotBranchExample.xircuits index 11d8ee8..f207442 100644 --- a/examples/DiscordBotBranchExample.xircuits +++ b/examples/DiscordBotBranchExample.xircuits @@ -1,12 +1,12 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 155.89583613184462, - "offsetY": 97.57364532880848, + "offsetX": -36.10416386815538, + "offsetY": 111.57364532880848, "zoom": 79.5, "gridSize": 0, "layers": [ { - "id": "f0cd2e69-8b8e-4b9d-b01e-43ff942d07de", + "id": "1e1a277b-9c02-452a-b5b3-a97d7bae245f", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -17,8 +17,8 @@ "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", - "targetPort": "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4", + "target": "ebe02041-be1a-4619-b705-fc37df8c4466", + "targetPort": "7d7d27ca-1680-43a0-b256-711b39d534cb", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", @@ -43,21 +43,21 @@ "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", "type": "triangle-link", "selected": false, - "source": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", - "sourcePort": "b743baf4-90a4-4e8c-9ecc-695246b69380", - "target": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", - "targetPort": "49c46c6f-106f-499f-b01c-3f99215ba8a9", + "source": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", + "sourcePort": "f688616e-7b4e-4b7a-8ba5-aec650245ca0", + "target": "00d9c24d-b843-4f9b-886a-7c8591e99e8b", + "targetPort": "be38662e-06f1-4355-bb6b-e21bec7bac08", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 1026.3751044749793, + "x": 1026.3750888803047, "y": 49.874997019856906 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 1114.9375612417434, + "x": 1114.937484467962, "y": 41.162497173404475 } ], @@ -73,13 +73,13 @@ "selected": false, "source": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "sourcePort": "b8330c27-4e5b-4d74-878c-5aea434f62e0", - "target": "078f8d3b-45c2-4620-b950-b122af746541", - "targetPort": "90dd4db0-cd8d-4474-9de6-f9807fe3c189", + "target": "3208834e-223b-47e4-8aa5-bbc81bf0296a", + "targetPort": "bbd85b37-8966-4cb9-924b-a75f0d023350", "points": [ { "id": "a9dab119-5ba8-410e-aa03-1f7f10f2ccfc", "type": "point", - "x": 549.250006204539, + "x": 549.2500829783205, "y": 135.46252373713287 }, { @@ -99,21 +99,21 @@ "id": "0899539d-fbec-4f8b-89bc-746d4137fbd1", "type": "triangle-link", "selected": false, - "source": "078f8d3b-45c2-4620-b950-b122af746541", - "sourcePort": "a986619b-ae03-4c93-86d7-7876878d62b4", - "target": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", - "targetPort": "12fdd800-9ddb-4dec-8575-296eabe2538d", + "source": "3208834e-223b-47e4-8aa5-bbc81bf0296a", + "sourcePort": "43b7070a-7e86-47bc-82a8-03168e3c9ae7", + "target": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", + "targetPort": "7effddbc-3409-42a0-b5c7-4525fc926478", "points": [ { "id": "9bffc1c3-61d3-4397-88c8-a6df17660d03", "type": "point", - "x": 756.0749494591178, + "x": 756.0625888803048, "y": 45.2749999372606 }, { "id": "cb479acf-cef2-4094-8adf-8aa5387823bb", "type": "point", - "x": 883.5126093885012, + "x": 883.5125326147199, "y": 49.874997019856906 } ], @@ -127,10 +127,10 @@ "id": "472ff44c-81ab-4b52-8327-6f94d3db8b8e", "type": "parameter-link", "selected": false, - "source": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", - "sourcePort": "373152c3-5cdf-4b1c-a661-81c38a4e43b0", - "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", - "targetPort": "3aca4918-c6bf-41bd-b1aa-aa651408642f", + "source": "6e341760-66c8-43bb-aed3-5ec59882b1b5", + "sourcePort": "87cc924c-6614-4616-aae0-615f518049cc", + "target": "89c846a2-242f-4d66-911e-ea208c83706f", + "targetPort": "1ce40a55-44ab-4a14-9640-5b6756aa40d0", "points": [ { "id": "77ee08ea-be87-4ce3-b6b3-30e61c78bd3f", @@ -155,10 +155,10 @@ "id": "adb87cb4-512f-405a-8613-b7122802e6d6", "type": "triangle-link", "selected": false, - "source": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", - "sourcePort": "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", - "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", - "targetPort": "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", + "source": "6e341760-66c8-43bb-aed3-5ec59882b1b5", + "sourcePort": "bbc3363c-377a-4055-95a6-678a6727f1fe", + "target": "89c846a2-242f-4d66-911e-ea208c83706f", + "targetPort": "a132a3ea-6d55-471a-9fbf-0a8267fe3353", "points": [ { "id": "0f90672c-a8f3-4b5a-a0dd-4a004c82f460", @@ -183,21 +183,21 @@ "id": "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d", "type": "triangle-link", "selected": false, - "source": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", - "sourcePort": "cfb01398-d05c-4794-917e-804cfbb356bb", - "target": "55c8960d-24f7-41d0-abee-213c69eb3092", - "targetPort": "7fc3da90-a783-439b-9eed-88a28e27861c", + "source": "ebe02041-be1a-4619-b705-fc37df8c4466", + "sourcePort": "8ae37e59-11f0-4789-a444-0f44f823c077", + "target": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "targetPort": "d4d9e142-32e4-402d-8016-d494554d2511", "points": [ { "id": "fd28185b-ad23-421f-aa3d-46f9a51d8f6b", "type": "point", - "x": 59.18752770119781, + "x": 59.18750490898144, "y": 149.7749991695228 }, { "id": "da38e7e1-9fca-41da-acaf-1b27dc7f479a", "type": "point", - "x": 107.43757731625406, + "x": 107.43753892936334, "y": 151.9000206661816 } ], @@ -211,15 +211,15 @@ "id": "395192a1-4a8c-4ee9-83e4-063508951d1d", "type": "parameter-link", "selected": false, - "source": "55c8960d-24f7-41d0-abee-213c69eb3092", - "sourcePort": "6f2065a5-8654-4515-9572-332e4e05da47", - "target": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", - "targetPort": "d7b8dec8-141d-466a-a2fd-8c8af7559e06", + "source": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "sourcePort": "8096cb09-76da-440c-a822-d250de43a5b6", + "target": "89c846a2-242f-4d66-911e-ea208c83706f", + "targetPort": "e1cd6ca0-b3f3-4e36-b7b6-c4b398bb45c9", "points": [ { "id": "7b09ccd1-a99f-4fe0-8764-1745c468fb60", "type": "point", - "x": 287.9125915769839, + "x": 288.2750717885418, "y": 195.10001329589858 }, { @@ -251,15 +251,15 @@ "id": "89dd19d2-4c87-4707-a641-33e88b88cfa4", "type": "triangle-link", "selected": false, - "source": "55c8960d-24f7-41d0-abee-213c69eb3092", - "sourcePort": "720a1a10-b13c-4591-a7a6-1b9a4f804597", - "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", - "targetPort": "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", + "source": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "sourcePort": "5007b201-a028-44f6-9895-e24dac36d034", + "target": "6e341760-66c8-43bb-aed3-5ec59882b1b5", + "targetPort": "5f40efff-c2cb-49b1-96ef-d489805517ed", "points": [ { "id": "0dd121b5-34d4-40ae-a3f0-5790c18de432", "type": "point", - "x": 287.9125915769839, + "x": 288.2750717885418, "y": 173.50001698104006 }, { @@ -279,15 +279,15 @@ "id": "0c836c00-49c8-4df4-a4f6-874b0ae69973", "type": "triangle-link", "selected": false, - "source": "55c8960d-24f7-41d0-abee-213c69eb3092", - "sourcePort": "f671f950-3d88-46cb-9f4b-d13084bd2338", - "target": "078f8d3b-45c2-4620-b950-b122af746541", - "targetPort": "979951ca-95c3-44c9-aa6b-836871fe7357", + "source": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "sourcePort": "c4e027fb-dcf4-44f8-b528-5b05a736a933", + "target": "3208834e-223b-47e4-8aa5-bbc81bf0296a", + "targetPort": "309479b4-8070-455b-b988-5ab510b88b21", "points": [ { "id": "6ac54149-3ede-47b0-8df7-91af8e181c1d", "type": "point", - "x": 287.9125915769839, + "x": 288.2750717885418, "y": 151.9000206661816 }, { @@ -309,13 +309,13 @@ "selected": false, "source": "8064b37e-a953-406e-9e70-6cda15cafb74", "sourcePort": "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42", - "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", - "targetPort": "7754af04-9cab-4a77-9137-a8b5a5a4e553", + "target": "6e341760-66c8-43bb-aed3-5ec59882b1b5", + "targetPort": "16156cce-fa8a-4371-9d95-89bff4878756", "points": [ { "id": "4a1c9de0-e9b8-45a2-af14-4ab0d7d920e1", "type": "point", - "x": 526.5501486966773, + "x": 526.550071922896, "y": 317.68755076150387 }, { @@ -335,15 +335,15 @@ "id": "bda6826a-0cca-473d-9079-2ba53653d8c2", "type": "parameter-link", "selected": false, - "source": "55c8960d-24f7-41d0-abee-213c69eb3092", - "sourcePort": "215f383b-d1ee-4290-b02f-1492ff688db5", - "target": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", - "targetPort": "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7", + "source": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "sourcePort": "9dd839d3-e841-4d50-afa1-20198cb318fd", + "target": "6e341760-66c8-43bb-aed3-5ec59882b1b5", + "targetPort": "cf178afa-3f39-47c0-85f8-2516925ca1a1", "points": [ { "id": "05bed03c-379d-478f-9127-05b2f1526b68", "type": "point", - "x": 287.9125915769839, + "x": 288.2750717885418, "y": 216.70000961075704 }, { @@ -365,19 +365,19 @@ "selected": false, "source": "9a980c57-ca09-4618-a7c4-a502b3ae43f8", "sourcePort": "6e3e31bf-0d64-4036-a499-fc48e660af5b", - "target": "55c8960d-24f7-41d0-abee-213c69eb3092", - "targetPort": "67f862aa-a555-4de3-95d3-a2cf73ccba27", + "target": "498c47ca-84d0-4233-a8f9-33605e92e47b", + "targetPort": "5dcb215d-7aa5-4fd9-8d42-06659db5020b", "points": [ { "id": "befe0ec8-701b-448d-9a35-a53a081c5db9", "type": "point", - "x": 32.77507485949306, + "x": 32.77503647260234, "y": 223.0000121346951 }, { "id": "71b2fd49-4c71-492d-9951-d55bef05ad2b", "type": "point", - "x": 107.43757731625406, + "x": 107.43753892936334, "y": 173.50001698104006 } ], @@ -386,11 +386,39 @@ "color": "gray", "curvyness": 50, "selectedColor": "rgb(0,192,255)" + }, + "56c3de2e-e2b2-45cd-8bd7-45070b54000d": { + "id": "56c3de2e-e2b2-45cd-8bd7-45070b54000d", + "type": "triangle-link", + "selected": false, + "source": "d1ec6c1b-cfb4-451c-89bc-2da4bde50e23", + "sourcePort": "26620666-1b8b-43bc-8e1b-a8c5e06d44de", + "target": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", + "targetPort": "ffb47cd7-4a08-412e-b3a8-30b19a548775", + "points": [ + { + "id": "f41158d2-4f9f-43d1-b33a-46f31ceca020", + "type": "point", + "x": 819.5459230677468, + "y": 141.55325652752202 + }, + { + "id": "b1695be1-067d-4138-bd3e-94b35d9131fa", + "type": "point", + "x": 883.5125326147199, + "y": 71.47499333471539 + } + ], + "labels": [], + "width": 3, + "color": "gray", + "curvyness": 50, + "selectedColor": "rgb(0,192,255)" } } }, { - "id": "1b32bbb5-7684-4162-917d-5d3cab1fe3e5", + "id": "88c5d5e5-428c-44dc-b65d-80295609ff05", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -471,7 +499,7 @@ "22b80dc4-7cb3-4306-8920-03c43d41360e": { "id": "22b80dc4-7cb3-4306-8920-03c43d41360e", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "comment", "commentInput": "You can insert any components between the branch and post!\n", @@ -489,7 +517,7 @@ "720472d0-8169-44ec-87f6-e5c5a024b6a9": { "id": "720472d0-8169-44ec-87f6-e5c5a024b6a9", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "comment", "commentInput": "When bot detects the msg_trigger string,\nit will execute the on_message flow.", @@ -518,7 +546,7 @@ "id": "cf2e2fe3-4c6e-45c1-8f12-b6446e368d42", "type": "default", "extras": {}, - "x": 516.2501781778094, + "x": 516.2500246302466, "y": 307.3875490532873, "name": "out-0", "alignment": "right", @@ -555,7 +583,7 @@ "id": "6e3e31bf-0d64-4036-a499-fc48e660af5b", "type": "default", "extras": {}, - "x": 22.475073151276423, + "x": 22.474996377494975, "y": 212.70002602115284, "name": "out-0", "alignment": "right", @@ -577,10 +605,47 @@ "6e3e31bf-0d64-4036-a499-fc48e660af5b" ] }, - "0539cc6b-d935-4a58-a266-f9604f0e8d7c": { - "id": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "d1ec6c1b-cfb4-451c-89bc-2da4bde50e23": { + "id": "d1ec6c1b-cfb4-451c-89bc-2da4bde50e23", "type": "custom-node", "selected": false, + "extras": { + "type": "string", + "borderColor": "rgb(0,192,255)" + }, + "x": 691.4517861278881, + "y": 107.45453417759938, + "ports": [ + { + "id": "26620666-1b8b-43bc-8e1b-a8c5e06d44de", + "type": "default", + "extras": {}, + "x": 809.2500215592953, + "y": 131.2499919335939, + "name": "parameter-out-0", + "alignment": "right", + "parentNode": "d1ec6c1b-cfb4-451c-89bc-2da4bde50e23", + "links": [ + "56c3de2e-e2b2-45cd-8bd7-45070b54000d" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "string" + } + ], + "name": "Argument (string): token", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "26620666-1b8b-43bc-8e1b-a8c5e06d44de" + ] + }, + "00d9c24d-b843-4f9b-886a-7c8591e99e8b": { + "id": "00d9c24d-b843-4f9b-886a-7c8591e99e8b", + "type": "custom-node", + "selected": true, "extras": { "type": "Finish" }, @@ -588,14 +653,14 @@ "y": 4.069, "ports": [ { - "id": "49c46c6f-106f-499f-b01c-3f99215ba8a9", + "id": "be38662e-06f1-4355-bb6b-e21bec7bac08", "type": "default", "extras": {}, - "x": 1104.6375295437686, + "x": 1104.637452769987, "y": 30.862495465187838, "name": "in-0", "alignment": "left", - "parentNode": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "parentNode": "00d9c24d-b843-4f9b-886a-7c8591e99e8b", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -606,14 +671,14 @@ "dataType": "" }, { - "id": "0a5fc6f1-fb6d-4add-a654-0ef5fde238e7", + "id": "d1bf4939-4ba0-408e-b551-43fc43c25aae", "type": "default", "extras": {}, - "x": 1104.6375295437686, + "x": 1104.637452769987, "y": 52.46253016693705, "name": "parameter-dynalist-outputs", "alignment": "left", - "parentNode": "0539cc6b-d935-4a58-a266-f9604f0e8d7c", + "parentNode": "00d9c24d-b843-4f9b-886a-7c8591e99e8b", "links": [], "in": true, "label": "outputs", @@ -630,15 +695,15 @@ "name": "Finish", "color": "rgb(255,102,102)", "portsInOrder": [ - "49c46c6f-106f-499f-b01c-3f99215ba8a9", - "0a5fc6f1-fb6d-4add-a654-0ef5fde238e7" + "be38662e-06f1-4355-bb6b-e21bec7bac08", + "d1bf4939-4ba0-408e-b551-43fc43c25aae" ], "portsOutOrder": [] }, - "983ebe8b-9b83-4f25-80bb-368df97fe0a4": { - "id": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", + "ebe02041-be1a-4619-b705-fc37df8c4466": { + "id": "ebe02041-be1a-4619-b705-fc37df8c4466", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -654,14 +719,14 @@ "y": 112.685, "ports": [ { - "id": "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4", + "id": "7d7d27ca-1680-43a0-b256-711b39d534cb", "type": "default", "extras": {}, "x": -86.41249011031948, "y": 139.47499746130615, "name": "in-0", "alignment": "left", - "parentNode": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", + "parentNode": "ebe02041-be1a-4619-b705-fc37df8c4466", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], @@ -672,14 +737,14 @@ "dataType": "" }, { - "id": "cfb01398-d05c-4794-917e-804cfbb356bb", + "id": "8ae37e59-11f0-4789-a444-0f44f823c077", "type": "default", "extras": {}, - "x": 48.88755718232988, + "x": 48.887518795439156, "y": 139.47499746130615, "name": "out-0", "alignment": "right", - "parentNode": "983ebe8b-9b83-4f25-80bb-368df97fe0a4", + "parentNode": "ebe02041-be1a-4619-b705-fc37df8c4466", "links": [ "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d" ], @@ -691,18 +756,18 @@ } ], "name": "DiscordClientInit", - "color": "rgb(102,51,102)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "ad34bbe2-a04d-4377-a67d-b5ec01fbc3a4" + "7d7d27ca-1680-43a0-b256-711b39d534cb" ], "portsOutOrder": [ - "cfb01398-d05c-4794-917e-804cfbb356bb" + "8ae37e59-11f0-4789-a444-0f44f823c077" ] }, - "88be8ec4-6046-4433-b879-90ea5b3c5fb5": { - "id": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", + "81b7ff64-a91a-4167-9d54-52e913dcc2d7": { + "id": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -718,14 +783,14 @@ "y": 12.78, "ports": [ { - "id": "12fdd800-9ddb-4dec-8575-296eabe2538d", + "id": "7effddbc-3409-42a0-b5c7-4525fc926478", "type": "default", "extras": {}, - "x": 873.2126388696333, + "x": 873.2125620958519, "y": 39.57499531164027, "name": "in-0", "alignment": "left", - "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", + "parentNode": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], @@ -736,15 +801,17 @@ "dataType": "" }, { - "id": "5d84a49d-7f1d-4bb9-981b-950ae92de86c", + "id": "ffb47cd7-4a08-412e-b3a8-30b19a548775", "type": "default", "extras": {}, - "x": 873.2126388696333, + "x": 873.2125620958519, "y": 61.17499162649876, "name": "parameter-string-token", "alignment": "left", - "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", - "links": [], + "parentNode": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", + "links": [ + "56c3de2e-e2b2-45cd-8bd7-45070b54000d" + ], "in": true, "label": "token", "varName": "token", @@ -752,14 +819,14 @@ "dataType": "string" }, { - "id": "b743baf4-90a4-4e8c-9ecc-695246b69380", + "id": "f688616e-7b4e-4b7a-8ba5-aec650245ca0", "type": "default", "extras": {}, - "x": 1016.0751339561114, + "x": 1016.0750571823298, "y": 39.57499531164027, "name": "out-0", "alignment": "right", - "parentNode": "88be8ec4-6046-4433-b879-90ea5b3c5fb5", + "parentNode": "81b7ff64-a91a-4167-9d54-52e913dcc2d7", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -771,19 +838,19 @@ } ], "name": "DiscordDeployBot", - "color": "rgb(255,102,0)", + "color": "rgb(15,255,255)", "portsInOrder": [ - "12fdd800-9ddb-4dec-8575-296eabe2538d", - "5d84a49d-7f1d-4bb9-981b-950ae92de86c" + "7effddbc-3409-42a0-b5c7-4525fc926478", + "ffb47cd7-4a08-412e-b3a8-30b19a548775" ], "portsOutOrder": [ - "b743baf4-90a4-4e8c-9ecc-695246b69380" + "f688616e-7b4e-4b7a-8ba5-aec650245ca0" ] }, - "078f8d3b-45c2-4620-b950-b122af746541": { - "id": "078f8d3b-45c2-4620-b950-b122af746541", + "3208834e-223b-47e4-8aa5-bbc81bf0296a": { + "id": "3208834e-223b-47e4-8aa5-bbc81bf0296a", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -799,14 +866,14 @@ "y": 8.185, "ports": [ { - "id": "979951ca-95c3-44c9-aa6b-836871fe7357", + "id": "309479b4-8070-455b-b988-5ab510b88b21", "type": "default", "extras": {}, "x": 587.4375921911742, "y": 34.97499822904397, "name": "in-0", "alignment": "left", - "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", + "parentNode": "3208834e-223b-47e4-8aa5-bbc81bf0296a", "links": [ "0c836c00-49c8-4df4-a4f6-874b0ae69973" ], @@ -817,14 +884,14 @@ "dataType": "" }, { - "id": "90dd4db0-cd8d-4474-9de6-f9807fe3c189", + "id": "bbd85b37-8966-4cb9-924b-a75f0d023350", "type": "default", "extras": {}, "x": 587.4375921911742, "y": 56.57501373734782, "name": "parameter-string-shutdown_cmd", "alignment": "left", - "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", + "parentNode": "3208834e-223b-47e4-8aa5-bbc81bf0296a", "links": [ "458ae3b9-49a9-42fd-acf7-05f32d965647" ], @@ -835,14 +902,14 @@ "dataType": "string" }, { - "id": "a986619b-ae03-4c93-86d7-7876878d62b4", + "id": "43b7070a-7e86-47bc-82a8-03168e3c9ae7", "type": "default", "extras": {}, - "x": 745.7749177611428, + "x": 745.7625571823298, "y": 34.97499822904397, "name": "out-0", "alignment": "right", - "parentNode": "078f8d3b-45c2-4620-b950-b122af746541", + "parentNode": "3208834e-223b-47e4-8aa5-bbc81bf0296a", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], @@ -854,19 +921,19 @@ } ], "name": "DiscordShutdownBot", - "color": "rgb(102,102,102)", + "color": "rgb(255,102,102)", "portsInOrder": [ - "979951ca-95c3-44c9-aa6b-836871fe7357", - "90dd4db0-cd8d-4474-9de6-f9807fe3c189" + "309479b4-8070-455b-b988-5ab510b88b21", + "bbd85b37-8966-4cb9-924b-a75f0d023350" ], "portsOutOrder": [ - "a986619b-ae03-4c93-86d7-7876878d62b4" + "43b7070a-7e86-47bc-82a8-03168e3c9ae7" ] }, - "ea17058f-65aa-4beb-b184-f5c02e6e98a3": { - "id": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "6e341760-66c8-43bb-aed3-5ec59882b1b5": { + "id": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_utils/utils.py", @@ -882,14 +949,14 @@ "y": 176.183, "ports": [ { - "id": "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", + "id": "5f40efff-c2cb-49b1-96ef-d489805517ed", "type": "default", "extras": {}, "x": 574.4000221734856, "y": 202.97501435153805, "name": "in-0", "alignment": "left", - "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "parentNode": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "links": [ "89dd19d2-4c87-4707-a641-33e88b88cfa4" ], @@ -900,14 +967,14 @@ "dataType": "" }, { - "id": "7754af04-9cab-4a77-9137-a8b5a5a4e553", + "id": "16156cce-fa8a-4371-9d95-89bff4878756", "type": "default", "extras": {}, "x": 574.4000221734856, "y": 224.57504905328727, "name": "parameter-string-a", "alignment": "left", - "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "parentNode": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "links": [ "4d17155e-424c-4293-8dd3-66d0ab7889c0" ], @@ -918,14 +985,14 @@ "dataType": "string" }, { - "id": "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7", + "id": "cf178afa-3f39-47c0-85f8-2516925ca1a1", "type": "default", "extras": {}, "x": 574.4000221734856, "y": 246.17500698125505, "name": "parameter-string-b", "alignment": "left", - "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "parentNode": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "links": [ "bda6826a-0cca-473d-9079-2ba53653d8c2" ], @@ -936,14 +1003,14 @@ "dataType": "string" }, { - "id": "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", + "id": "bbc3363c-377a-4055-95a6-678a6727f1fe", "type": "default", "extras": {}, "x": 691.1999681247434, "y": 202.97501435153805, "name": "out-0", "alignment": "right", - "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "parentNode": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "links": [ "adb87cb4-512f-405a-8613-b7122802e6d6" ], @@ -954,14 +1021,14 @@ "dataType": "" }, { - "id": "373152c3-5cdf-4b1c-a661-81c38a4e43b0", + "id": "87cc924c-6614-4616-aae0-615f518049cc", "type": "default", "extras": {}, "x": 691.1999681247434, "y": 224.57504905328727, "name": "parameter-out-string-out", "alignment": "right", - "parentNode": "ea17058f-65aa-4beb-b184-f5c02e6e98a3", + "parentNode": "6e341760-66c8-43bb-aed3-5ec59882b1b5", "links": [ "472ff44c-81ab-4b52-8327-6f94d3db8b8e" ], @@ -975,19 +1042,19 @@ "name": "ConcatString", "color": "rgb(255,153,0)", "portsInOrder": [ - "886e3ab5-20e7-4b5d-bf78-a01fd0167f28", - "7754af04-9cab-4a77-9137-a8b5a5a4e553", - "a92bbea2-9c0f-40eb-9ca5-d7f912debcd7" + "5f40efff-c2cb-49b1-96ef-d489805517ed", + "16156cce-fa8a-4371-9d95-89bff4878756", + "cf178afa-3f39-47c0-85f8-2516925ca1a1" ], "portsOutOrder": [ - "10230ed4-55b4-4e1c-9a3a-76e2799b9e17", - "373152c3-5cdf-4b1c-a661-81c38a4e43b0" + "bbc3363c-377a-4055-95a6-678a6727f1fe", + "87cc924c-6614-4616-aae0-615f518049cc" ] }, - "a93914c6-a1a0-4091-b02c-7ef32b35b60b": { - "id": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "89c846a2-242f-4d66-911e-ea208c83706f": { + "id": "89c846a2-242f-4d66-911e-ea208c83706f", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -1003,14 +1070,14 @@ "y": 308.933, "ports": [ { - "id": "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", + "id": "a132a3ea-6d55-471a-9fbf-0a8267fe3353", "type": "default", "extras": {}, "x": 768.7875516546176, "y": 335.7250588803313, "name": "in-0", "alignment": "left", - "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "parentNode": "89c846a2-242f-4d66-911e-ea208c83706f", "links": [ "adb87cb4-512f-405a-8613-b7122802e6d6" ], @@ -1021,14 +1088,14 @@ "dataType": "" }, { - "id": "3aca4918-c6bf-41bd-b1aa-aa651408642f", + "id": "1ce40a55-44ab-4a14-9640-5b6756aa40d0", "type": "default", "extras": {}, "x": 768.7875516546176, "y": 357.32501680829904, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "parentNode": "89c846a2-242f-4d66-911e-ea208c83706f", "links": [ "472ff44c-81ab-4b52-8327-6f94d3db8b8e" ], @@ -1039,14 +1106,14 @@ "dataType": "string" }, { - "id": "d7b8dec8-141d-466a-a2fd-8c8af7559e06", + "id": "e1cd6ca0-b3f3-4e36-b7b6-c4b398bb45c9", "type": "default", "extras": {}, "x": 768.7875516546176, "y": 378.92505151004826, "name": "parameter-discord.message.Message-discord_msg", "alignment": "left", - "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "parentNode": "89c846a2-242f-4d66-911e-ea208c83706f", "links": [ "395192a1-4a8c-4ee9-83e4-063508951d1d" ], @@ -1057,14 +1124,14 @@ "dataType": "discord.message.Message" }, { - "id": "3d806f04-a497-4a58-bb87-338b9541d137", + "id": "7c99ec93-980e-417f-981d-f8710bf1c9aa", "type": "default", "extras": {}, "x": 768.7875516546176, "y": 400.525009438016, "name": "parameter-string-attachment_path", "alignment": "left", - "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "parentNode": "89c846a2-242f-4d66-911e-ea208c83706f", "links": [], "in": true, "label": "attachment_path", @@ -1073,14 +1140,14 @@ "dataType": "string" }, { - "id": "ac6e5290-6786-4383-97ad-e29ad139acad", + "id": "26d7cde0-bcb7-4952-aca8-0db12528f0b4", "type": "default", "extras": {}, - "x": 928.3374423287528, + "x": 928.3376726500971, "y": 335.7250588803313, "name": "out-0", "alignment": "right", - "parentNode": "a93914c6-a1a0-4091-b02c-7ef32b35b60b", + "parentNode": "89c846a2-242f-4d66-911e-ea208c83706f", "links": [], "in": false, "label": "▶", @@ -1090,21 +1157,21 @@ } ], "name": "DiscordPostMessage", - "color": "rgb(0,102,204)", + "color": "rgb(255,153,0)", "portsInOrder": [ - "320c7ad7-cac1-49c1-a49a-8e39f9a7b2a3", - "3aca4918-c6bf-41bd-b1aa-aa651408642f", - "d7b8dec8-141d-466a-a2fd-8c8af7559e06", - "3d806f04-a497-4a58-bb87-338b9541d137" + "a132a3ea-6d55-471a-9fbf-0a8267fe3353", + "1ce40a55-44ab-4a14-9640-5b6756aa40d0", + "e1cd6ca0-b3f3-4e36-b7b6-c4b398bb45c9", + "7c99ec93-980e-417f-981d-f8710bf1c9aa" ], "portsOutOrder": [ - "ac6e5290-6786-4383-97ad-e29ad139acad" + "26d7cde0-bcb7-4952-aca8-0db12528f0b4" ] }, - "55c8960d-24f7-41d0-abee-213c69eb3092": { - "id": "55c8960d-24f7-41d0-abee-213c69eb3092", + "498c47ca-84d0-4233-a8f9-33605e92e47b": { + "id": "498c47ca-84d0-4233-a8f9-33605e92e47b", "type": "custom-node", - "selected": false, + "selected": true, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -1120,14 +1187,14 @@ "y": 114.81, "ports": [ { - "id": "7fc3da90-a783-439b-9eed-88a28e27861c", + "id": "d4d9e142-32e4-402d-8016-d494554d2511", "type": "default", "extras": {}, - "x": 97.13757560803742, + "x": 97.1375372211467, "y": 141.60001895796495, "name": "in-0", "alignment": "left", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "fb5cc811-7ef0-4d62-bcbe-c9b94c7d824d" ], @@ -1138,14 +1205,14 @@ "dataType": "" }, { - "id": "67f862aa-a555-4de3-95d3-a2cf73ccba27", + "id": "5dcb215d-7aa5-4fd9-8d42-06659db5020b", "type": "default", "extras": {}, - "x": 97.13757560803742, + "x": 97.1375372211467, "y": 163.20001527282344, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "6edb84ef-1512-40af-9ec8-67e104f0736b" ], @@ -1156,14 +1223,14 @@ "dataType": "string" }, { - "id": "f671f950-3d88-46cb-9f4b-d13084bd2338", + "id": "c4e027fb-dcf4-44f8-b528-5b05a736a933", "type": "default", "extras": {}, - "x": 277.612621058116, + "x": 277.97507008032517, "y": 141.60001895796495, "name": "out-0", "alignment": "right", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "0c836c00-49c8-4df4-a4f6-874b0ae69973" ], @@ -1174,14 +1241,14 @@ "dataType": "" }, { - "id": "720a1a10-b13c-4591-a7a6-1b9a4f804597", + "id": "5007b201-a028-44f6-9895-e24dac36d034", "type": "default", "extras": {}, - "x": 277.612621058116, + "x": 277.97507008032517, "y": 163.20001527282344, "name": "out-flow-on_message", "alignment": "right", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "89dd19d2-4c87-4707-a641-33e88b88cfa4" ], @@ -1192,14 +1259,14 @@ "dataType": "" }, { - "id": "6f2065a5-8654-4515-9572-332e4e05da47", + "id": "8096cb09-76da-440c-a822-d250de43a5b6", "type": "default", "extras": {}, - "x": 277.612621058116, + "x": 277.97507008032517, "y": 184.80001158768192, "name": "parameter-out-discord.message.Message-discord_msg", "alignment": "right", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "395192a1-4a8c-4ee9-83e4-063508951d1d" ], @@ -1210,14 +1277,14 @@ "dataType": "discord.message.Message" }, { - "id": "215f383b-d1ee-4290-b02f-1492ff688db5", + "id": "9dd839d3-e841-4d50-afa1-20198cb318fd", "type": "default", "extras": {}, - "x": 277.612621058116, + "x": 277.97507008032517, "y": 206.4000079025404, "name": "parameter-out-string-str_msg", "alignment": "right", - "parentNode": "55c8960d-24f7-41d0-abee-213c69eb3092", + "parentNode": "498c47ca-84d0-4233-a8f9-33605e92e47b", "links": [ "bda6826a-0cca-473d-9079-2ba53653d8c2" ], @@ -1229,16 +1296,16 @@ } ], "name": "DiscordTriggerBranch", - "color": "rgb(51,51,51)", + "color": "rgb(255,204,204)", "portsInOrder": [ - "7fc3da90-a783-439b-9eed-88a28e27861c", - "67f862aa-a555-4de3-95d3-a2cf73ccba27" + "d4d9e142-32e4-402d-8016-d494554d2511", + "5dcb215d-7aa5-4fd9-8d42-06659db5020b" ], "portsOutOrder": [ - "f671f950-3d88-46cb-9f4b-d13084bd2338", - "720a1a10-b13c-4591-a7a6-1b9a4f804597", - "6f2065a5-8654-4515-9572-332e4e05da47", - "215f383b-d1ee-4290-b02f-1492ff688db5" + "c4e027fb-dcf4-44f8-b528-5b05a736a933", + "5007b201-a028-44f6-9895-e24dac36d034", + "8096cb09-76da-440c-a822-d250de43a5b6", + "9dd839d3-e841-4d50-afa1-20198cb318fd" ] } } diff --git a/examples/DiscordBotCVisionExample.xircuits b/examples/DiscordBotCVisionExample.xircuits index dc3ec85..de2e045 100644 --- a/examples/DiscordBotCVisionExample.xircuits +++ b/examples/DiscordBotCVisionExample.xircuits @@ -1,12 +1,12 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 182.26919702326558, - "offsetY": 77.52047296207564, + "offsetX": 51.269197023265576, + "offsetY": 73.52047296207564, "zoom": 84.5, "gridSize": 0, "layers": [ { - "id": "dda203f7-11cb-45de-adc0-1ebe278328e6", + "id": "8e4db5d0-b21a-4277-acff-e4c2591e0ba4", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -17,8 +17,8 @@ "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", - "targetPort": "47348e47-d943-403e-adad-ac214b7d00a8", + "target": "311033c9-e6fd-4b15-a281-0ca6e6248bfc", + "targetPort": "c06e4b32-1940-4ed0-8d71-29da02b3f6ee", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", @@ -43,21 +43,21 @@ "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", "type": "triangle-link", "selected": false, - "source": "26a668f3-128d-4ec1-9722-d7c133be3ad9", - "sourcePort": "fac90c12-439a-4675-9386-4a6bff101b03", - "target": "765e49ad-0419-450c-8fb2-e7ea3fda635c", - "targetPort": "0c169174-13c6-48bc-8410-4c369bca2f82", + "source": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", + "sourcePort": "9a291509-b6dd-4615-95f1-16733a3737e9", + "target": "1f737ccf-c597-486d-b49c-73c563198a7e", + "targetPort": "d185c03a-1a17-4898-99a5-2dc085658a1e", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 1008.3001734514995, + "x": 1008.3001012205453, "y": 45.13750419765515 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 1086.9376373992245, + "x": 1086.9375651682703, "y": 46.50001474337445 } ], @@ -73,8 +73,8 @@ "selected": false, "source": "9767a54c-dbc9-4387-8908-f18259b4c4a2", "sourcePort": "b8330c27-4e5b-4d74-878c-5aea434f62e0", - "target": "2987483c-86b0-4226-b4c6-c074ee253194", - "targetPort": "a393d733-2186-4b3a-958e-fe58701ca748", + "target": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", + "targetPort": "eaf5d1f3-2893-479e-9413-73583667cd9d", "points": [ { "id": "a9dab119-5ba8-410e-aa03-1f7f10f2ccfc", @@ -99,21 +99,21 @@ "id": "0899539d-fbec-4f8b-89bc-746d4137fbd1", "type": "triangle-link", "selected": false, - "source": "2987483c-86b0-4226-b4c6-c074ee253194", - "sourcePort": "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b", - "target": "26a668f3-128d-4ec1-9722-d7c133be3ad9", - "targetPort": "35ba688d-801e-424a-b87b-2bfaf142279c", + "source": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", + "sourcePort": "8dcee2f1-917d-42ae-bff9-2e05d7cea8b5", + "target": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", + "targetPort": "a5ff9cc4-bb0e-42ce-a178-3e3e5af56c01", "points": [ { "id": "9bffc1c3-61d3-4397-88c8-a6df17660d03", "type": "point", - "x": 756.0749973343756, + "x": 756.0624438202674, "y": 45.274995818864454 }, { "id": "cb479acf-cef2-4094-8adf-8aa5387823bb", "type": "point", - "x": 865.4376029540882, + "x": 865.4374438202674, "y": 45.13750419765515 } ], @@ -127,15 +127,15 @@ "id": "3a793bf4-1dac-4c3e-9552-d227345cc151", "type": "triangle-link", "selected": false, - "source": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", - "sourcePort": "5203ff0a-c956-43e9-9035-072ecc510f61", - "target": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "targetPort": "00566588-4137-4377-9002-54f3e45de405", + "source": "311033c9-e6fd-4b15-a281-0ca6e6248bfc", + "sourcePort": "93a1efd4-6378-4217-8f78-b905bbeeba18", + "target": "2dbbb91b-8c49-414a-af88-606692ec1409", + "targetPort": "4fced103-dcde-4b6c-806e-7d93ea8a7fb6", "points": [ { "id": "c559221e-7f79-495c-b253-7c130a18f313", "type": "point", - "x": 59.187558938350655, + "x": 59.18752282287358, "y": 149.7750057054763 }, { @@ -157,13 +157,13 @@ "selected": false, "source": "d6626896-ea06-45ca-851f-d5f63db5d64e", "sourcePort": "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78", - "target": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "targetPort": "503a6593-e448-442d-9a67-adcf45d7ce02", + "target": "2dbbb91b-8c49-414a-af88-606692ec1409", + "targetPort": "d95620ec-2a6f-49e3-a61f-4cb3d84e8ee3", "points": [ { "id": "1c4c65ba-60c7-4bfc-8b25-1e31e2d4a01a", "type": "point", - "x": 35.13754044722639, + "x": 35.13750433174932, "y": 223.0000169103031 }, { @@ -183,15 +183,15 @@ "id": "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701", "type": "parameter-link", "selected": false, - "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "sourcePort": "bc208150-dd00-47fd-88b3-e7575f90c5e8", - "target": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", - "targetPort": "5597fa18-509b-4be1-88da-8c199f3330b7", + "source": "2dbbb91b-8c49-414a-af88-606692ec1409", + "sourcePort": "1a35987c-c8ec-4de1-bef7-4201889e4902", + "target": "e7557912-63df-41d6-ba01-9fa8acc3ba82", + "targetPort": "e812d5ef-382c-4662-a382-024e23bf9559", "points": [ { "id": "02011dfb-a03d-4e45-a70e-d6c6315fd310", "type": "point", - "x": 290.1125196447116, + "x": 290.4750468035504, "y": 248.82502419660057 }, { @@ -209,7 +209,7 @@ { "id": "e041bd06-dae2-44bb-9571-8c0fc78dced4", "type": "point", - "x": 472.86258388511646, + "x": 472.8625116541623, "y": 222.43751835492216 } ], @@ -223,15 +223,15 @@ "id": "7e301b61-a8ba-4243-87bd-db5cbc3d97a7", "type": "parameter-link", "selected": false, - "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "sourcePort": "71a7f118-f2f1-430f-acb9-3c74c87051e2", - "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", - "targetPort": "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", + "source": "2dbbb91b-8c49-414a-af88-606692ec1409", + "sourcePort": "52e9c208-30f4-4cfe-9d8c-7bb6ccec108d", + "target": "a6f80aa6-0623-4225-9362-84e018617da0", + "targetPort": "e117d406-b522-40f6-8050-6d02ec08c576", "points": [ { "id": "9c357250-d6d4-4c6c-9074-4ac0fa786de3", "type": "point", - "x": 290.1125196447116, + "x": 290.4750468035504, "y": 227.2250074390192 }, { @@ -249,7 +249,7 @@ { "id": "88db0438-79a7-466c-ae74-db1f430477b6", "type": "point", - "x": 759.6375148955264, + "x": 759.6375871264804, "y": 333.90001437319086 } ], @@ -263,21 +263,21 @@ "id": "3db0e5ec-74d9-462d-bd0e-1277608986b8", "type": "parameter-link", "selected": false, - "source": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", - "sourcePort": "08d61928-c3c0-4d0f-93b1-455baeaa7c6b", - "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", - "targetPort": "668d7cbd-978a-4382-aa09-2cf8d261c54e", + "source": "e7557912-63df-41d6-ba01-9fa8acc3ba82", + "sourcePort": "31ed8f4a-901e-491a-bb49-4e0478926490", + "target": "a6f80aa6-0623-4225-9362-84e018617da0", + "targetPort": "7f96f0f5-8d87-48e1-8187-76f4ef7368da", "points": [ { "id": "27916269-dd3d-42a6-a34d-2459aecb19db", "type": "point", - "x": 688.6000474807155, + "x": 688.5999752497613, "y": 222.43751835492216 }, { "id": "a0c303f2-e249-41ed-b605-c18d72f4d656", "type": "point", - "x": 759.6375148955264, + "x": 759.6375871264804, "y": 312.3000337310865 } ], @@ -291,15 +291,15 @@ "id": "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84", "type": "triangle-link", "selected": false, - "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "sourcePort": "ee5c57cc-081d-447a-b38d-308d2263a1cb", - "target": "2987483c-86b0-4226-b4c6-c074ee253194", - "targetPort": "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", + "source": "2dbbb91b-8c49-414a-af88-606692ec1409", + "sourcePort": "59016f0b-d6fd-4178-ab7e-94a9610fab24", + "target": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", + "targetPort": "1c22b83a-e256-4b3e-b39e-3aa1fc297671", "points": [ { "id": "9b94f844-be3b-4975-96e9-745189b09891", "type": "point", - "x": 290.1125196447116, + "x": 290.4750468035504, "y": 184.02501003933355 }, { @@ -319,21 +319,21 @@ "id": "342a9e7e-a441-43be-85a5-ee316e9d8ac0", "type": "triangle-link", "selected": false, - "source": "8f584000-7c26-41c2-b880-da3a1508dfc6", - "sourcePort": "b0670301-c1ce-49d4-8935-38286d43bd32", - "target": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", - "targetPort": "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", + "source": "2dbbb91b-8c49-414a-af88-606692ec1409", + "sourcePort": "59c8a98e-511a-46ef-8893-17d95c1d6b7d", + "target": "e7557912-63df-41d6-ba01-9fa8acc3ba82", + "targetPort": "ab4aeef7-caf5-4429-9621-3a730b4fb904", "points": [ { "id": "24874c12-d592-4fbc-af2e-ec9446ff8534", "type": "point", - "x": 290.1125196447116, + "x": 290.4750468035504, "y": 205.6250267969149 }, { "id": "8771e104-21cd-4ba6-9496-cc12b958fe7b", "type": "point", - "x": 472.86258388511646, + "x": 472.8625116541623, "y": 200.8375015973408 } ], @@ -347,21 +347,21 @@ "id": "57f0a64c-49b0-406d-9884-248af7df8b20", "type": "triangle-link", "selected": false, - "source": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", - "sourcePort": "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", - "target": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", - "targetPort": "1810fce5-de9e-430e-a676-b5196da56f7e", + "source": "e7557912-63df-41d6-ba01-9fa8acc3ba82", + "sourcePort": "fa30d0b0-3c71-49a0-8024-5d3279ce3057", + "target": "a6f80aa6-0623-4225-9362-84e018617da0", + "targetPort": "4de02d62-3fcc-4936-96a8-72f4ccdf1a7e", "points": [ { "id": "1e9c8414-5fb8-43d2-baf9-bd48348d77bf", "type": "point", - "x": 688.6000474807155, + "x": 688.5999752497613, "y": 200.8375015973408 }, { "id": "2a4ccf7d-3cff-430b-9e58-925714db0e6f", "type": "point", - "x": 759.6375148955264, + "x": 759.6375871264804, "y": 290.70001697350517 } ], @@ -370,11 +370,39 @@ "color": "gray", "curvyness": 50, "selectedColor": "rgb(0,192,255)" + }, + "bd2d2d4e-eb1b-4e2f-8351-5face2f1ac71": { + "id": "bd2d2d4e-eb1b-4e2f-8351-5face2f1ac71", + "type": "triangle-link", + "selected": true, + "source": "6a2348c6-74a8-4861-a0f2-6a77809546bb", + "sourcePort": "876aa6a9-043b-4d1b-85a7-4672f4bae299", + "target": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", + "targetPort": "f1249962-8e62-477d-85ef-346a0a4983c1", + "points": [ + { + "id": "a1eedba7-a0e0-4d6d-82ef-5c883ad68bba", + "type": "point", + "x": 831.4501220230602, + "y": 136.43750246411224 + }, + { + "id": "8cd93e70-ed8f-4b30-bbcc-31f94d015206", + "type": "point", + "x": 865.4374438202674, + "y": 66.73750289749796 + } + ], + "labels": [], + "width": 3, + "color": "gray", + "curvyness": 50, + "selectedColor": "rgb(0,192,255)" } } }, { - "id": "47708e1d-b30e-4077-ad6b-26a2e811e15f", + "id": "e18584e4-d4c1-4bf8-b2fb-a284fa5938b4", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -467,7 +495,7 @@ "id": "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78", "type": "default", "extras": {}, - "x": 24.837550848483787, + "x": 24.837514733006714, "y": 212.70001263964792, "name": "out-0", "alignment": "right", @@ -489,8 +517,45 @@ "f966bddd-f0d6-43e9-a9f3-e8ae482e6c78" ] }, - "765e49ad-0419-450c-8fb2-e7ea3fda635c": { - "id": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "6a2348c6-74a8-4861-a0f2-6a77809546bb": { + "id": "6a2348c6-74a8-4861-a0f2-6a77809546bb", + "type": "custom-node", + "selected": false, + "extras": { + "type": "string", + "borderColor": "rgb(0,192,255)" + }, + "x": 703.3500699174557, + "y": 102.34263554783949, + "ports": [ + { + "id": "876aa6a9-043b-4d1b-85a7-4672f4bae299", + "type": "default", + "extras": {}, + "x": 821.1501606395341, + "y": 126.13749819345708, + "name": "parameter-out-0", + "alignment": "right", + "parentNode": "6a2348c6-74a8-4861-a0f2-6a77809546bb", + "links": [ + "bd2d2d4e-eb1b-4e2f-8351-5face2f1ac71" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "string" + } + ], + "name": "Argument (string): token", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "876aa6a9-043b-4d1b-85a7-4672f4bae299" + ] + }, + "1f737ccf-c597-486d-b49c-73c563198a7e": { + "id": "1f737ccf-c597-486d-b49c-73c563198a7e", "type": "custom-node", "selected": true, "extras": { @@ -500,14 +565,14 @@ "y": 9.402, "ports": [ { - "id": "0c169174-13c6-48bc-8410-4c369bca2f82", + "id": "d185c03a-1a17-4898-99a5-2dc085658a1e", "type": "default", "extras": {}, - "x": 1076.6376184566568, + "x": 1076.6375462257026, "y": 36.200010472719285, "name": "in-0", "alignment": "left", - "parentNode": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "parentNode": "1f737ccf-c597-486d-b49c-73c563198a7e", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -518,14 +583,14 @@ "dataType": "" }, { - "id": "7aa22f9c-3991-4dcd-8ee8-b1ee6100e681", + "id": "b89e7ab8-d8f8-4ea5-a517-52c4ef3878bc", "type": "default", "extras": {}, - "x": 1076.6376184566568, + "x": 1076.6375462257026, "y": 57.800009172562106, "name": "parameter-dynalist-outputs", "alignment": "left", - "parentNode": "765e49ad-0419-450c-8fb2-e7ea3fda635c", + "parentNode": "1f737ccf-c597-486d-b49c-73c563198a7e", "links": [], "in": true, "label": "outputs", @@ -542,13 +607,13 @@ "name": "Finish", "color": "rgb(255,102,102)", "portsInOrder": [ - "0c169174-13c6-48bc-8410-4c369bca2f82", - "7aa22f9c-3991-4dcd-8ee8-b1ee6100e681" + "d185c03a-1a17-4898-99a5-2dc085658a1e", + "b89e7ab8-d8f8-4ea5-a517-52c4ef3878bc" ], "portsOutOrder": [] }, - "144df2a3-cdae-4ef8-83f4-8531c64cce0f": { - "id": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", + "311033c9-e6fd-4b15-a281-0ca6e6248bfc": { + "id": "311033c9-e6fd-4b15-a281-0ca6e6248bfc", "type": "custom-node", "selected": true, "extras": { @@ -566,14 +631,14 @@ "y": 112.685, "ports": [ { - "id": "47348e47-d943-403e-adad-ac214b7d00a8", + "id": "c06e4b32-1940-4ed0-8d71-29da02b3f6ee", "type": "default", "extras": {}, "x": -86.41249249008871, "y": 139.4750161067337, "name": "in-0", "alignment": "left", - "parentNode": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", + "parentNode": "311033c9-e6fd-4b15-a281-0ca6e6248bfc", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], @@ -584,14 +649,14 @@ "dataType": "" }, { - "id": "5203ff0a-c956-43e9-9035-072ecc510f61", + "id": "93a1efd4-6378-4217-8f78-b905bbeeba18", "type": "default", "extras": {}, - "x": 48.88756933960805, + "x": 48.887533224130976, "y": 139.4750161067337, "name": "out-0", "alignment": "right", - "parentNode": "144df2a3-cdae-4ef8-83f4-8531c64cce0f", + "parentNode": "311033c9-e6fd-4b15-a281-0ca6e6248bfc", "links": [ "3a793bf4-1dac-4c3e-9552-d227345cc151" ], @@ -603,16 +668,16 @@ } ], "name": "DiscordClientInit", - "color": "rgb(102,51,102)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "47348e47-d943-403e-adad-ac214b7d00a8" + "c06e4b32-1940-4ed0-8d71-29da02b3f6ee" ], "portsOutOrder": [ - "5203ff0a-c956-43e9-9035-072ecc510f61" + "93a1efd4-6378-4217-8f78-b905bbeeba18" ] }, - "26a668f3-128d-4ec1-9722-d7c133be3ad9": { - "id": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4": { + "id": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", "type": "custom-node", "selected": true, "extras": { @@ -630,14 +695,14 @@ "y": 8.039, "ports": [ { - "id": "35ba688d-801e-424a-b87b-2bfaf142279c", + "id": "a5ff9cc4-bb0e-42ce-a178-3e3e5af56c01", "type": "default", "extras": {}, - "x": 855.1376415705621, + "x": 855.1374248776997, "y": 34.83749992699998, "name": "in-0", "alignment": "left", - "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "parentNode": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], @@ -648,15 +713,17 @@ "dataType": "" }, { - "id": "2e1b0aed-01d2-4f84-a9ea-1863488c54ea", + "id": "f1249962-8e62-477d-85ef-346a0a4983c1", "type": "default", "extras": {}, - "x": 855.1376415705621, + "x": 855.1374248776997, "y": 56.4374986268428, "name": "parameter-string-token", "alignment": "left", - "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", - "links": [], + "parentNode": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", + "links": [ + "bd2d2d4e-eb1b-4e2f-8351-5face2f1ac71" + ], "in": true, "label": "token", "varName": "token", @@ -664,14 +731,14 @@ "dataType": "string" }, { - "id": "fac90c12-439a-4675-9386-4a6bff101b03", + "id": "9a291509-b6dd-4615-95f1-16733a3737e9", "type": "default", "extras": {}, - "x": 998.0002120679734, + "x": 998.0001398370192, "y": 34.83749992699998, "name": "out-0", "alignment": "right", - "parentNode": "26a668f3-128d-4ec1-9722-d7c133be3ad9", + "parentNode": "1fff9d3b-99c1-4a09-bc2d-7e0a7c7e74f4", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -683,17 +750,17 @@ } ], "name": "DiscordDeployBot", - "color": "rgb(255,102,0)", + "color": "rgb(15,255,255)", "portsInOrder": [ - "35ba688d-801e-424a-b87b-2bfaf142279c", - "2e1b0aed-01d2-4f84-a9ea-1863488c54ea" + "a5ff9cc4-bb0e-42ce-a178-3e3e5af56c01", + "f1249962-8e62-477d-85ef-346a0a4983c1" ], "portsOutOrder": [ - "fac90c12-439a-4675-9386-4a6bff101b03" + "9a291509-b6dd-4615-95f1-16733a3737e9" ] }, - "2987483c-86b0-4226-b4c6-c074ee253194": { - "id": "2987483c-86b0-4226-b4c6-c074ee253194", + "aaee8542-3c61-42d4-b0d4-f285ed9259bb": { + "id": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", "type": "custom-node", "selected": true, "extras": { @@ -711,14 +778,14 @@ "y": 8.185, "ports": [ { - "id": "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", + "id": "1c22b83a-e256-4b3e-b39e-3aa1fc297671", "type": "default", "extras": {}, "x": 587.4375184890164, "y": 34.974991548209296, "name": "in-0", "alignment": "left", - "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", + "parentNode": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", "links": [ "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84" ], @@ -729,14 +796,14 @@ "dataType": "" }, { - "id": "a393d733-2186-4b3a-958e-fe58701ca748", + "id": "eaf5d1f3-2893-479e-9413-73583667cd9d", "type": "default", "extras": {}, "x": 587.4375184890164, "y": 56.574990248052124, "name": "parameter-string-shutdown_cmd", "alignment": "left", - "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", + "parentNode": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", "links": [ "458ae3b9-49a9-42fd-acf7-05f32d965647" ], @@ -747,14 +814,14 @@ "dataType": "string" }, { - "id": "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b", + "id": "8dcee2f1-917d-42ae-bff9-2e05d7cea8b5", "type": "default", "extras": {}, - "x": 745.7749208327663, + "x": 745.7624248776997, "y": 34.974991548209296, "name": "out-0", "alignment": "right", - "parentNode": "2987483c-86b0-4226-b4c6-c074ee253194", + "parentNode": "aaee8542-3c61-42d4-b0d4-f285ed9259bb", "links": [ "0899539d-fbec-4f8b-89bc-746d4137fbd1" ], @@ -766,17 +833,17 @@ } ], "name": "DiscordShutdownBot", - "color": "rgb(102,102,102)", + "color": "rgb(255,102,102)", "portsInOrder": [ - "96849b52-bf56-40f8-9bf9-6fb7d3406d8e", - "a393d733-2186-4b3a-958e-fe58701ca748" + "1c22b83a-e256-4b3e-b39e-3aa1fc297671", + "eaf5d1f3-2893-479e-9413-73583667cd9d" ], "portsOutOrder": [ - "d1931bb7-90e1-4e5b-b5ea-31eb7d770c7b" + "8dcee2f1-917d-42ae-bff9-2e05d7cea8b5" ] }, - "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a": { - "id": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "a6f80aa6-0623-4225-9362-84e018617da0": { + "id": "a6f80aa6-0623-4225-9362-84e018617da0", "type": "custom-node", "selected": true, "extras": { @@ -794,14 +861,14 @@ "y": 253.604, "ports": [ { - "id": "1810fce5-de9e-430e-a676-b5196da56f7e", + "id": "4de02d62-3fcc-4936-96a8-72f4ccdf1a7e", "type": "default", "extras": {}, - "x": 749.3374959529586, + "x": 749.3375681839127, "y": 280.40002737476254, "name": "in-0", "alignment": "left", - "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "parentNode": "a6f80aa6-0623-4225-9362-84e018617da0", "links": [ "57f0a64c-49b0-406d-9884-248af7df8b20" ], @@ -812,14 +879,14 @@ "dataType": "" }, { - "id": "668d7cbd-978a-4382-aa09-2cf8d261c54e", + "id": "7f96f0f5-8d87-48e1-8187-76f4ef7368da", "type": "default", "extras": {}, - "x": 749.3374959529586, + "x": 749.3375681839127, "y": 302.00004413234393, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "parentNode": "a6f80aa6-0623-4225-9362-84e018617da0", "links": [ "3db0e5ec-74d9-462d-bd0e-1277608986b8" ], @@ -830,14 +897,14 @@ "dataType": "string" }, { - "id": "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", + "id": "e117d406-b522-40f6-8050-6d02ec08c576", "type": "default", "extras": {}, - "x": 749.3374959529586, + "x": 749.3375681839127, "y": 323.60002477444823, "name": "parameter-discord.message.Message-discord_msg", "alignment": "left", - "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "parentNode": "a6f80aa6-0623-4225-9362-84e018617da0", "links": [ "7e301b61-a8ba-4243-87bd-db5cbc3d97a7" ], @@ -848,14 +915,14 @@ "dataType": "discord.message.Message" }, { - "id": "634b73a8-a768-4993-9c93-606b6aab2e2e", + "id": "bf0b64b9-c260-4fb4-8099-6d80799e2b22", "type": "default", "extras": {}, - "x": 749.3374959529586, + "x": 749.3375681839127, "y": 345.20004153202956, "name": "parameter-string-attachment_path", "alignment": "left", - "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "parentNode": "a6f80aa6-0623-4225-9362-84e018617da0", "links": [], "in": true, "label": "attachment_path", @@ -864,14 +931,14 @@ "dataType": "string" }, { - "id": "21cdcc19-b6b6-4705-bbdb-185615b9ed13", + "id": "7cdd0988-abe0-4cd9-83f3-14bc05c98cb0", "type": "default", "extras": {}, - "x": 908.8875837857988, + "x": 908.887656016753, "y": 280.40002737476254, "name": "out-0", "alignment": "right", - "parentNode": "a2eaf76f-8537-43b4-8f01-0e7a29da9e3a", + "parentNode": "a6f80aa6-0623-4225-9362-84e018617da0", "links": [], "in": false, "label": "▶", @@ -881,19 +948,19 @@ } ], "name": "DiscordPostMessage", - "color": "rgb(0,102,204)", + "color": "rgb(255,153,0)", "portsInOrder": [ - "1810fce5-de9e-430e-a676-b5196da56f7e", - "668d7cbd-978a-4382-aa09-2cf8d261c54e", - "73af44e9-4aed-4a67-a366-f0bbcd1ea60b", - "634b73a8-a768-4993-9c93-606b6aab2e2e" + "4de02d62-3fcc-4936-96a8-72f4ccdf1a7e", + "7f96f0f5-8d87-48e1-8187-76f4ef7368da", + "e117d406-b522-40f6-8050-6d02ec08c576", + "bf0b64b9-c260-4fb4-8099-6d80799e2b22" ], "portsOutOrder": [ - "21cdcc19-b6b6-4705-bbdb-185615b9ed13" + "7cdd0988-abe0-4cd9-83f3-14bc05c98cb0" ] }, - "8f584000-7c26-41c2-b880-da3a1508dfc6": { - "id": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "2dbbb91b-8c49-414a-af88-606692ec1409": { + "id": "2dbbb91b-8c49-414a-af88-606692ec1409", "type": "custom-node", "selected": true, "extras": { @@ -911,14 +978,14 @@ "y": 146.928, "ports": [ { - "id": "00566588-4137-4377-9002-54f3e45de405", + "id": "4fced103-dcde-4b6c-806e-7d93ea8a7fb6", "type": "default", "extras": {}, "x": 99.33749595295865, "y": 173.72502044059095, "name": "in-0", "alignment": "left", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "3a793bf4-1dac-4c3e-9552-d227345cc151" ], @@ -929,14 +996,14 @@ "dataType": "" }, { - "id": "503a6593-e448-442d-9a67-adcf45d7ce02", + "id": "d95620ec-2a6f-49e3-a61f-4cb3d84e8ee3", "type": "default", "extras": {}, "x": 99.33749595295865, "y": 195.3250371981723, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "a4f65d91-c51d-4788-b8a0-3c51556fbea0" ], @@ -947,14 +1014,14 @@ "dataType": "string" }, { - "id": "ee5c57cc-081d-447a-b38d-308d2263a1cb", + "id": "59016f0b-d6fd-4178-ab7e-94a9610fab24", "type": "default", "extras": {}, - "x": 279.812530045969, + "x": 280.1750572048078, "y": 173.72502044059095, "name": "out-0", "alignment": "right", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "f426b1ad-c88e-4c9c-b858-8f7fb4b99b84" ], @@ -965,14 +1032,14 @@ "dataType": "" }, { - "id": "b0670301-c1ce-49d4-8935-38286d43bd32", + "id": "59c8a98e-511a-46ef-8893-17d95c1d6b7d", "type": "default", "extras": {}, - "x": 279.812530045969, + "x": 280.1750572048078, "y": 195.3250371981723, "name": "out-flow-on_message", "alignment": "right", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "342a9e7e-a441-43be-85a5-ee316e9d8ac0" ], @@ -983,14 +1050,14 @@ "dataType": "" }, { - "id": "71a7f118-f2f1-430f-acb9-3c74c87051e2", + "id": "52e9c208-30f4-4cfe-9d8c-7bb6ccec108d", "type": "default", "extras": {}, - "x": 279.812530045969, + "x": 280.1750572048078, "y": 216.9250178402766, "name": "parameter-out-discord.message.Message-discord_msg", "alignment": "right", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "7e301b61-a8ba-4243-87bd-db5cbc3d97a7" ], @@ -1001,14 +1068,14 @@ "dataType": "discord.message.Message" }, { - "id": "bc208150-dd00-47fd-88b3-e7575f90c5e8", + "id": "1a35987c-c8ec-4de1-bef7-4201889e4902", "type": "default", "extras": {}, - "x": 279.812530045969, + "x": 280.1750572048078, "y": 238.52503459785797, "name": "parameter-out-bytes-image_data", "alignment": "right", - "parentNode": "8f584000-7c26-41c2-b880-da3a1508dfc6", + "parentNode": "2dbbb91b-8c49-414a-af88-606692ec1409", "links": [ "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701" ], @@ -1020,20 +1087,20 @@ } ], "name": "DiscordProcessImage", - "color": "rgb(255,153,102)", + "color": "rgb(255,204,0)", "portsInOrder": [ - "00566588-4137-4377-9002-54f3e45de405", - "503a6593-e448-442d-9a67-adcf45d7ce02" + "4fced103-dcde-4b6c-806e-7d93ea8a7fb6", + "d95620ec-2a6f-49e3-a61f-4cb3d84e8ee3" ], "portsOutOrder": [ - "ee5c57cc-081d-447a-b38d-308d2263a1cb", - "b0670301-c1ce-49d4-8935-38286d43bd32", - "71a7f118-f2f1-430f-acb9-3c74c87051e2", - "bc208150-dd00-47fd-88b3-e7575f90c5e8" + "59016f0b-d6fd-4178-ab7e-94a9610fab24", + "59c8a98e-511a-46ef-8893-17d95c1d6b7d", + "52e9c208-30f4-4cfe-9d8c-7bb6ccec108d", + "1a35987c-c8ec-4de1-bef7-4201889e4902" ] }, - "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9": { - "id": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "e7557912-63df-41d6-ba01-9fa8acc3ba82": { + "id": "e7557912-63df-41d6-ba01-9fa8acc3ba82", "type": "custom-node", "selected": true, "extras": { @@ -1051,14 +1118,14 @@ "y": 163.746, "ports": [ { - "id": "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", + "id": "ab4aeef7-caf5-4429-9621-3a730b4fb904", "type": "default", "extras": {}, - "x": 462.5626225015903, + "x": 462.56255027063617, "y": 190.53749732668564, "name": "in-0", "alignment": "left", - "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "parentNode": "e7557912-63df-41d6-ba01-9fa8acc3ba82", "links": [ "342a9e7e-a441-43be-85a5-ee316e9d8ac0" ], @@ -1069,14 +1136,14 @@ "dataType": "" }, { - "id": "5597fa18-509b-4be1-88da-8c199f3330b7", + "id": "e812d5ef-382c-4662-a382-024e23bf9559", "type": "default", "extras": {}, - "x": 462.5626225015903, + "x": 462.56255027063617, "y": 212.137514084267, "name": "parameter-bytes-image_data", "alignment": "left", - "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "parentNode": "e7557912-63df-41d6-ba01-9fa8acc3ba82", "links": [ "b8ab97e1-b0ee-4d0e-8ff7-8366fc4ad701" ], @@ -1087,14 +1154,14 @@ "dataType": "bytes" }, { - "id": "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", + "id": "fa30d0b0-3c71-49a0-8024-5d3279ce3057", "type": "default", "extras": {}, - "x": 678.3000860971894, + "x": 678.3000138662352, "y": 190.53749732668564, "name": "out-0", "alignment": "right", - "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "parentNode": "e7557912-63df-41d6-ba01-9fa8acc3ba82", "links": [ "57f0a64c-49b0-406d-9884-248af7df8b20" ], @@ -1105,14 +1172,14 @@ "dataType": "" }, { - "id": "08d61928-c3c0-4d0f-93b1-455baeaa7c6b", + "id": "31ed8f4a-901e-491a-bb49-4e0478926490", "type": "default", "extras": {}, - "x": 678.3000860971894, + "x": 678.3000138662352, "y": 212.137514084267, "name": "parameter-out-string-prediction", "alignment": "right", - "parentNode": "bbdfe25d-97a6-4923-bafe-ecd1aa5888e9", + "parentNode": "e7557912-63df-41d6-ba01-9fa8acc3ba82", "links": [ "3db0e5ec-74d9-462d-bd0e-1277608986b8" ], @@ -1124,14 +1191,14 @@ } ], "name": "MobileNetV2ProcessImageData", - "color": "rgb(0,102,204)", + "color": "rgb(204,204,204)", "portsInOrder": [ - "d20d0360-1aaa-40fe-ad6b-e8602d8ed511", - "5597fa18-509b-4be1-88da-8c199f3330b7" + "ab4aeef7-caf5-4429-9621-3a730b4fb904", + "e812d5ef-382c-4662-a382-024e23bf9559" ], "portsOutOrder": [ - "70f24d7d-97b0-4ccc-b0d7-bfb7c7123ccc", - "08d61928-c3c0-4d0f-93b1-455baeaa7c6b" + "fa30d0b0-3c71-49a0-8024-5d3279ce3057", + "31ed8f4a-901e-491a-bb49-4e0478926490" ] } } diff --git a/examples/DiscordBotMessageResponder.xircuits b/examples/DiscordBotMessageResponder.xircuits index 0149dab..92f9d0a 100644 --- a/examples/DiscordBotMessageResponder.xircuits +++ b/examples/DiscordBotMessageResponder.xircuits @@ -1,12 +1,12 @@ { "id": "8b6e5c03-966f-4c60-9968-76ed71abe89e", - "offsetX": 192.87523941192, - "offsetY": -4.491515018306984, + "offsetX": 140.87523941192, + "offsetY": -132.49151501830698, "zoom": 88, "gridSize": 0, "layers": [ { - "id": "e46b18cd-0b8f-4f87-8d6b-18c55d28f71e", + "id": "61e07054-1516-471a-bf47-3ccc25deb26f", "type": "diagram-links", "isSvg": true, "transformed": true, @@ -17,20 +17,20 @@ "selected": false, "source": "f2e8590e-a852-4f38-beab-2f9195005df7", "sourcePort": "bf8a4e2a-acf6-4402-ae31-00832051219c", - "target": "f4b3b4be-a79e-4a54-9000-b0910c41489d", - "targetPort": "4afe61fa-5356-4229-8cdc-d39869e021b4", + "target": "4bae76e6-973b-4dc5-a5e5-001f151df81d", + "targetPort": "fc292275-22bf-4c63-9e89-b3ae35ec4521", "points": [ { "id": "915c1ef5-8f06-40e7-933c-2a4c473fdbb8", "type": "point", - "x": -122.18746709996292, - "y": 79.17500176412005 + "x": -122.18750177902898, + "y": 79.17499959667842 }, { "id": "95621c4e-c084-43ae-b917-0e9b75f78610", "type": "point", - "x": -76.11247847469659, - "y": 149.775008561217 + "x": -76.11251315376263, + "y": 149.77499989145048 } ], "labels": [], @@ -45,20 +45,20 @@ "selected": false, "source": "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f", "sourcePort": "8a0d365e-17d1-4b36-a706-b9b2466739b8", - "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", - "targetPort": "a4691161-5fc8-4ea9-8f82-2716bc850001", + "target": "1e2d0353-e823-44b2-bb74-c0fd413e482b", + "targetPort": "c8c4e815-3043-4a05-b95c-14ab003f25a6", "points": [ { "id": "da80e56c-1b6e-4093-a94b-8fd1fcd6e82b", "type": "point", "x": 36.66252651908893, - "y": 258.5875141098676 + "y": 258.5874967703345 }, { "id": "4ac1c127-3527-4117-a60d-9918401ba4bd", "type": "point", "x": 114.67500053579869, - "y": 249.11253436244212 + "y": 249.1125170229091 } ], "labels": [], @@ -73,14 +73,14 @@ "selected": false, "source": "05f6a2a4-09fd-4b86-9d58-7b6100a9635f", "sourcePort": "0a93b1c9-5a1d-4472-b4ec-89f32192874c", - "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", - "targetPort": "aa670f0e-b826-4fdc-ab5e-d764c16680ce", + "target": "1e2d0353-e823-44b2-bb74-c0fd413e482b", + "targetPort": "773cd2bc-ef4b-4d45-ba27-6d418d6dbb7b", "points": [ { "id": "b56d5cfd-44de-40bd-9421-725dfb010249", "type": "point", "x": 64.0375299436467, - "y": 336.1250160518953 + "y": 336.125011717012 }, { "id": "3b1b4303-7d2e-4ff0-96a1-386d896a6e53", @@ -99,22 +99,22 @@ "id": "92084b70-0aa5-4921-a9e6-579531ad4d8e", "type": "triangle-link", "selected": false, - "source": "f4b3b4be-a79e-4a54-9000-b0910c41489d", - "sourcePort": "ad836562-a935-47db-9dd4-1aff1e991d40", - "target": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", - "targetPort": "a684e1fe-a51a-43f9-813e-0168cd3957ed", + "source": "4bae76e6-973b-4dc5-a5e5-001f151df81d", + "sourcePort": "127dc107-8b7f-45fa-b46d-cef6eb44783f", + "target": "1e2d0353-e823-44b2-bb74-c0fd413e482b", + "targetPort": "de6da7e1-264e-4855-a48c-9ef9473355f1", "points": [ { "id": "cb938bc2-bb5f-4cfe-8098-562857a07074", "type": "point", "x": 59.18752384013108, - "y": 149.775008561217 + "y": 149.77499989145048 }, { "id": "e2ad32d7-7b83-42b4-b286-0aa84bd9bdb2", "type": "point", "x": 114.67500053579869, - "y": 227.51251768181135 + "y": 227.5125046771616 } ], "labels": [], @@ -129,20 +129,20 @@ "selected": false, "source": "edeacca4-189e-4e93-977c-7baf07eed7d3", "sourcePort": "12a1645f-297a-4a57-9a01-4fd80908e745", - "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", - "targetPort": "48a499f4-ed12-45b5-81be-6791325c6f2a", + "target": "2994ae19-a3f2-4643-9dac-808979acbac4", + "targetPort": "279509f8-2776-4e04-aa12-7ef7909f0089", "points": [ { "id": "6b5b8bed-4ac5-43a7-a7e0-cc299716567c", "type": "point", - "x": 282.65006212582, - "y": 355.6250202133832 + "x": 282.6499927676879, + "y": 355.62500612501265 }, { "id": "3e3b566d-c017-484c-903b-b06958a60b3d", "type": "point", "x": 368.3125842250548, - "y": 359.0500288137915 + "y": 359.05001472542097 } ], "labels": [], @@ -157,14 +157,14 @@ "selected": false, "source": "f599d71f-42f7-4d0a-a1cd-9bcfc3a080ae", "sourcePort": "674b4e87-6d8c-4f23-a532-deb52b47a5e2", - "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", - "targetPort": "2fe24476-ac5d-4637-a895-2a5711f8d5d7", + "target": "2994ae19-a3f2-4643-9dac-808979acbac4", + "targetPort": "6c2d4809-ad88-4f33-a7f9-8eab1e3ae79e", "points": [ { "id": "b6b49e02-d544-4cb7-9c89-3d1af980372b", "type": "point", "x": 309.51249378205057, - "y": 439.22502544992216 + "y": 439.2249983569018 }, { "id": "0ca125c1-45f2-43d6-94ba-e9a053a18db3", @@ -185,8 +185,8 @@ "selected": false, "source": "6e4b0b0b-a64e-408c-8eb9-0b7ef2f80d10", "sourcePort": "31cb8b30-97c3-4e26-982e-6ca5db462d64", - "target": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", - "targetPort": "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0", + "target": "e89417af-2cd3-4ded-b04c-ea03319f5da8", + "targetPort": "14b81c97-47fa-42a4-8d41-13d2afe8fc23", "points": [ { "id": "2b2d95b4-a1b2-4a38-84c7-bc0dd245aeb2", @@ -197,8 +197,8 @@ { "id": "2419811a-905d-4df0-8c2c-d4450fde4a05", "type": "point", - "x": 592.2374779077081, - "y": 433.0375171269463 + "x": 592.2375472658402, + "y": 433.0374900339259 } ], "labels": [], @@ -211,22 +211,22 @@ "id": "ddf0437d-56ef-4b20-bda6-6142f72ecca0", "type": "triangle-link", "selected": false, - "source": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", - "sourcePort": "008d06c5-e6b5-4934-825a-25e0306d12b5", - "target": "f99ca041-322e-45a2-8646-73f2319a7a12", - "targetPort": "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", + "source": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", + "sourcePort": "c2767775-061d-42ad-b449-7afc9021df56", + "target": "8e6e0f94-b83d-4092-9ec7-baba2d06473e", + "targetPort": "0b5eadd0-2526-479e-a680-be053fb017d5", "points": [ { "id": "ea04db10-cce9-4c77-81e8-e7ec008835d0", "type": "point", - "x": 940.4374956633899, + "x": 940.437565021522, "y": 498.95001417055596 }, { "id": "81d3895d-c4f5-4d7d-8ea5-68d2d4df0669", "type": "point", - "x": 965.537482996861, - "y": 573.8625535659748 + "x": 965.5375523549931, + "y": 573.8625188869089 } ], "labels": [], @@ -239,21 +239,21 @@ "id": "f89a13f2-8fd5-4f23-9b57-cd41409f9baf", "type": "triangle-link", "selected": false, - "source": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", - "sourcePort": "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0", - "target": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", - "targetPort": "00a11c7a-87b9-4402-898a-e497c42d6d13", + "source": "e89417af-2cd3-4ded-b04c-ea03319f5da8", + "sourcePort": "3ee4e509-31e2-4d1a-8d27-b3f45bb722b7", + "target": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", + "targetPort": "b28e7c92-5ab1-4c34-b872-3836393fc770", "points": [ { "id": "7f554509-8aae-45ff-89a4-54b59fe9a081", "type": "point", - "x": 750.5749918747019, + "x": 750.5624651458118, "y": 411.43752212073184 }, { "id": "39479bf5-a050-43fb-a4ec-6d9712c8d074", "type": "point", - "x": 797.5750575915321, + "x": 797.5749882334001, "y": 498.95001417055596 } ], @@ -267,22 +267,22 @@ "id": "cfd474f1-20ff-4394-83f2-0f9a89076f8e", "type": "triangle-link", "selected": false, - "source": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", - "sourcePort": "79e6b6e0-781f-4074-979a-297785e36edc", - "target": "3dcc032c-7822-424a-b0fe-aefd495fb580", - "targetPort": "02a71555-10a3-4048-a4b6-cd39aa872d1b", + "source": "1e2d0353-e823-44b2-bb74-c0fd413e482b", + "sourcePort": "cb1cc96b-e2d3-4031-a162-f6960d89e3de", + "target": "2994ae19-a3f2-4643-9dac-808979acbac4", + "targetPort": "ed2a88cb-8ad7-4659-9ee7-7d1f53ccbbe9", "points": [ { "id": "270c9f17-fd04-40a2-86ad-04c2d419509a", "type": "point", "x": 308.02503928098525, - "y": 227.51251768181135 + "y": 227.5125046771616 }, { "id": "9f98b634-47df-43e6-8109-8f0b666433f6", "type": "point", "x": 368.3125842250548, - "y": 337.44999912851097 + "y": 337.4500023796735 } ], "labels": [], @@ -295,21 +295,21 @@ "id": "4a3e0f16-ddae-40b7-b634-946df61f892b", "type": "triangle-link", "selected": false, - "source": "3dcc032c-7822-424a-b0fe-aefd495fb580", - "sourcePort": "35b2982d-fb6a-44ef-9166-a2756bdd11d1", - "target": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", - "targetPort": "f5cc09cb-6a81-4344-999b-f8e53502e2ff", + "source": "2994ae19-a3f2-4643-9dac-808979acbac4", + "sourcePort": "8c1e82af-999b-4259-8cf0-f76bdb21b2c2", + "target": "e89417af-2cd3-4ded-b04c-ea03319f5da8", + "targetPort": "e23c008c-932d-46ad-9c56-4524036818ab", "points": [ { "id": "0df750a5-4189-4eeb-881c-a445181c81db", "type": "point", "x": 561.6625265190889, - "y": 337.44999912851097 + "y": 337.4500023796735 }, { "id": "d9f33f95-c09f-4288-98be-8cd9336522e7", "type": "point", - "x": 592.2374779077081, + "x": 592.2375472658402, "y": 411.43752212073184 } ], @@ -318,11 +318,39 @@ "color": "gray", "curvyness": 50, "selectedColor": "rgb(0,192,255)" + }, + "4499530e-e800-4ee7-982a-4ba98ca0cb86": { + "id": "4499530e-e800-4ee7-982a-4ba98ca0cb86", + "type": "triangle-link", + "selected": false, + "source": "d92ea62e-78c1-44eb-8219-274ef1f0e699", + "sourcePort": "3614e995-9447-4c3b-928f-31e19342bdd4", + "target": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", + "targetPort": "df5c13d4-4c3a-4ffd-9349-56dca8d22515", + "points": [ + { + "id": "46d85e38-419e-49ba-8621-c071816a0ec6", + "type": "point", + "x": 684.600080098246, + "y": 585.787505292715 + }, + { + "id": "34187bcd-1cf2-4343-9e1d-6d48a55aec4e", + "type": "point", + "x": 797.5749882334001, + "y": 520.5500438558365 + } + ], + "labels": [], + "width": 3, + "color": "gray", + "curvyness": 50, + "selectedColor": "rgb(0,192,255)" } } }, { - "id": "42b67c71-b12e-4d42-a915-ffc1a073140f", + "id": "2238e694-ea3d-4067-b38d-366dfeb35d0a", "type": "diagram-nodes", "isSvg": false, "transformed": true, @@ -342,8 +370,8 @@ "id": "bf8a4e2a-acf6-4402-ae31-00832051219c", "type": "default", "extras": {}, - "x": -132.48748241944034, - "y": 68.87499944929239, + "x": -132.4875170985064, + "y": 68.87499728185075, "name": "out-0", "alignment": "right", "parentNode": "f2e8590e-a852-4f38-beab-2f9195005df7", @@ -380,7 +408,7 @@ "type": "default", "extras": {}, "x": 26.3625111996115, - "y": 248.2875117950399, + "y": 248.28749445550687, "name": "out-0", "alignment": "right", "parentNode": "a62090e4-1c85-4b93-bc00-c9bd3d4c3b2f", @@ -417,7 +445,7 @@ "type": "default", "extras": {}, "x": 53.73754171718962, - "y": 325.8250137370676, + "y": 325.82499639753456, "name": "out-0", "alignment": "right", "parentNode": "05f6a2a4-09fd-4b86-9d58-7b6100a9635f", @@ -489,7 +517,7 @@ "id": "12a1645f-297a-4a57-9a01-4fd80908e745", "type": "default", "extras": {}, - "x": 272.35007389936294, + "x": 272.3500045412308, "y": 345.32501789855553, "name": "out-0", "alignment": "right", @@ -547,10 +575,47 @@ "674b4e87-6d8c-4f23-a532-deb52b47a5e2" ] }, - "f99ca041-322e-45a2-8646-73f2319a7a12": { - "id": "f99ca041-322e-45a2-8646-73f2319a7a12", + "d92ea62e-78c1-44eb-8219-274ef1f0e699": { + "id": "d92ea62e-78c1-44eb-8219-274ef1f0e699", "type": "custom-node", - "selected": true, + "selected": false, + "extras": { + "type": "string", + "borderColor": "rgb(0,192,255)" + }, + "x": 556.505416694995, + "y": 551.6949034298942, + "ports": [ + { + "id": "3614e995-9447-4c3b-928f-31e19342bdd4", + "type": "default", + "extras": {}, + "x": 674.3000084252863, + "y": 575.487517066258, + "name": "parameter-out-0", + "alignment": "right", + "parentNode": "d92ea62e-78c1-44eb-8219-274ef1f0e699", + "links": [ + "4499530e-e800-4ee7-982a-4ba98ca0cb86" + ], + "in": false, + "label": "▶", + "varName": "▶", + "portType": "", + "dataType": "string" + } + ], + "name": "Argument (string): token", + "color": "lightpink", + "portsInOrder": [], + "portsOutOrder": [ + "3614e995-9447-4c3b-928f-31e19342bdd4" + ] + }, + "8e6e0f94-b83d-4092-9ec7-baba2d06473e": { + "id": "8e6e0f94-b83d-4092-9ec7-baba2d06473e", + "type": "custom-node", + "selected": false, "extras": { "type": "Finish" }, @@ -558,14 +623,14 @@ "y": 536.763, "ports": [ { - "id": "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", + "id": "0b5eadd0-2526-479e-a680-be053fb017d5", "type": "default", "extras": {}, - "x": 955.2374113239013, - "y": 563.5625653395178, + "x": 955.2374806820334, + "y": 563.5625306604518, "name": "in-0", "alignment": "left", - "parentNode": "f99ca041-322e-45a2-8646-73f2319a7a12", + "parentNode": "8e6e0f94-b83d-4092-9ec7-baba2d06473e", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -576,14 +641,14 @@ "dataType": "" }, { - "id": "481af593-3b5f-476e-9825-79e87583bd8c", + "id": "cbd55d56-a5c4-4bac-961c-e3e3386c76dc", "type": "default", "extras": {}, - "x": 955.2374113239013, - "y": 585.1625603457323, + "x": 955.2374806820334, + "y": 585.1625256666663, "name": "parameter-dynalist-outputs", "alignment": "left", - "parentNode": "f99ca041-322e-45a2-8646-73f2319a7a12", + "parentNode": "8e6e0f94-b83d-4092-9ec7-baba2d06473e", "links": [], "in": true, "label": "outputs", @@ -600,15 +665,15 @@ "name": "Finish", "color": "rgb(255,102,102)", "portsInOrder": [ - "dde714d8-bc9e-4f11-9851-f6cb86e72a6f", - "481af593-3b5f-476e-9825-79e87583bd8c" + "0b5eadd0-2526-479e-a680-be053fb017d5", + "cbd55d56-a5c4-4bac-961c-e3e3386c76dc" ], "portsOutOrder": [] }, - "f4b3b4be-a79e-4a54-9000-b0910c41489d": { - "id": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "4bae76e6-973b-4dc5-a5e5-001f151df81d": { + "id": "4bae76e6-973b-4dc5-a5e5-001f151df81d", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -624,14 +689,14 @@ "y": 112.685, "ports": [ { - "id": "4afe61fa-5356-4229-8cdc-d39869e021b4", + "id": "fc292275-22bf-4c63-9e89-b3ae35ec4521", "type": "default", "extras": {}, - "x": -86.41249379417401, - "y": 139.47500624638934, + "x": -86.41252847324006, + "y": 139.47499757662283, "name": "in-0", "alignment": "left", - "parentNode": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "parentNode": "4bae76e6-973b-4dc5-a5e5-001f151df81d", "links": [ "7050d17f-1631-4aee-86ab-e1f7051c6617" ], @@ -642,14 +707,14 @@ "dataType": "" }, { - "id": "ad836562-a935-47db-9dd4-1aff1e991d40", + "id": "127dc107-8b7f-45fa-b46d-cef6eb44783f", "type": "default", "extras": {}, "x": 48.887535613674, - "y": 139.47500624638934, + "y": 139.47499757662283, "name": "out-0", "alignment": "right", - "parentNode": "f4b3b4be-a79e-4a54-9000-b0910c41489d", + "parentNode": "4bae76e6-973b-4dc5-a5e5-001f151df81d", "links": [ "92084b70-0aa5-4921-a9e6-579531ad4d8e" ], @@ -661,18 +726,18 @@ } ], "name": "DiscordClientInit", - "color": "rgb(102,51,102)", + "color": "rgb(0,102,204)", "portsInOrder": [ - "4afe61fa-5356-4229-8cdc-d39869e021b4" + "fc292275-22bf-4c63-9e89-b3ae35ec4521" ], "portsOutOrder": [ - "ad836562-a935-47db-9dd4-1aff1e991d40" + "127dc107-8b7f-45fa-b46d-cef6eb44783f" ] }, - "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e": { - "id": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "1e2d0353-e823-44b2-bb74-c0fd413e482b": { + "id": "1e2d0353-e823-44b2-bb74-c0fd413e482b", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -688,14 +753,14 @@ "y": 190.422, "ports": [ { - "id": "a684e1fe-a51a-43f9-813e-0168cd3957ed", + "id": "de6da7e1-264e-4855-a48c-9ef9473355f1", "type": "default", "extras": {}, "x": 104.37501230934161, "y": 217.21250236233394, "name": "in-0", "alignment": "left", - "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "parentNode": "1e2d0353-e823-44b2-bb74-c0fd413e482b", "links": [ "92084b70-0aa5-4921-a9e6-579531ad4d8e" ], @@ -706,14 +771,14 @@ "dataType": "" }, { - "id": "a4691161-5fc8-4ea9-8f82-2716bc850001", + "id": "c8c4e815-3043-4a05-b95c-14ab003f25a6", "type": "default", "extras": {}, "x": 104.37501230934161, - "y": 238.81253204761447, + "y": 238.81251470808144, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "parentNode": "1e2d0353-e823-44b2-bb74-c0fd413e482b", "links": [ "54738be9-1998-42eb-9c58-d16ebfe0df66" ], @@ -724,14 +789,14 @@ "dataType": "string" }, { - "id": "aa670f0e-b826-4fdc-ab5e-d764c16680ce", + "id": "773cd2bc-ef4b-4d45-ba27-6d418d6dbb7b", "type": "default", "extras": {}, "x": 104.37501230934161, "y": 260.4124923747629, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "parentNode": "1e2d0353-e823-44b2-bb74-c0fd413e482b", "links": [ "c2ff702a-67c2-4f20-be5e-3abeb1f397dd" ], @@ -742,14 +807,14 @@ "dataType": "string" }, { - "id": "79e6b6e0-781f-4074-979a-297785e36edc", + "id": "cb1cc96b-e2d3-4031-a162-f6960d89e3de", "type": "default", "extras": {}, "x": 297.7250239615078, "y": 217.21250236233394, "name": "out-0", "alignment": "right", - "parentNode": "f1a7bc84-13a0-4aa5-ba64-89269ca30b4e", + "parentNode": "1e2d0353-e823-44b2-bb74-c0fd413e482b", "links": [ "cfd474f1-20ff-4394-83f2-0f9a89076f8e" ], @@ -761,20 +826,20 @@ } ], "name": "DiscordMessageResponder", - "color": "rgb(153,51,204)", + "color": "rgb(255,153,102)", "portsInOrder": [ - "a684e1fe-a51a-43f9-813e-0168cd3957ed", - "a4691161-5fc8-4ea9-8f82-2716bc850001", - "aa670f0e-b826-4fdc-ab5e-d764c16680ce" + "de6da7e1-264e-4855-a48c-9ef9473355f1", + "c8c4e815-3043-4a05-b95c-14ab003f25a6", + "773cd2bc-ef4b-4d45-ba27-6d418d6dbb7b" ], "portsOutOrder": [ - "79e6b6e0-781f-4074-979a-297785e36edc" + "cb1cc96b-e2d3-4031-a162-f6960d89e3de" ] }, - "3dcc032c-7822-424a-b0fe-aefd495fb580": { - "id": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "2994ae19-a3f2-4643-9dac-808979acbac4": { + "id": "2994ae19-a3f2-4643-9dac-808979acbac4", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -790,14 +855,14 @@ "y": 300.353, "ports": [ { - "id": "02a71555-10a3-4048-a4b6-cd39aa872d1b", + "id": "ed2a88cb-8ad7-4659-9ee7-7d1f53ccbbe9", "type": "default", "extras": {}, "x": 358.0125689055774, - "y": 327.14999681368334, + "y": 327.1500141532164, "name": "in-0", "alignment": "left", - "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "parentNode": "2994ae19-a3f2-4643-9dac-808979acbac4", "links": [ "cfd474f1-20ff-4394-83f2-0f9a89076f8e" ], @@ -808,14 +873,14 @@ "dataType": "" }, { - "id": "48a499f4-ed12-45b5-81be-6791325c6f2a", + "id": "279509f8-2776-4e04-aa12-7ef7909f0089", "type": "default", "extras": {}, "x": 358.0125689055774, "y": 348.7500264989639, "name": "parameter-string-msg_trigger", "alignment": "left", - "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "parentNode": "2994ae19-a3f2-4643-9dac-808979acbac4", "links": [ "51b25cea-9cb0-4fcc-bd20-f0c9b82de77f" ], @@ -826,14 +891,14 @@ "dataType": "string" }, { - "id": "2fe24476-ac5d-4637-a895-2a5711f8d5d7", + "id": "6c2d4809-ad88-4f33-a7f9-8eab1e3ae79e", "type": "default", "extras": {}, "x": 358.0125689055774, "y": 370.3500215051784, "name": "parameter-string-msg_response", "alignment": "left", - "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "parentNode": "2994ae19-a3f2-4643-9dac-808979acbac4", "links": [ "f76af186-01c4-46dc-ada1-cdd17cebe80f" ], @@ -844,14 +909,14 @@ "dataType": "string" }, { - "id": "35b2982d-fb6a-44ef-9166-a2756bdd11d1", + "id": "8c1e82af-999b-4259-8cf0-f76bdb21b2c2", "type": "default", "extras": {}, "x": 551.3625111996115, - "y": 327.14999681368334, + "y": 327.1500141532164, "name": "out-0", "alignment": "right", - "parentNode": "3dcc032c-7822-424a-b0fe-aefd495fb580", + "parentNode": "2994ae19-a3f2-4643-9dac-808979acbac4", "links": [ "4a3e0f16-ddae-40b7-b634-946df61f892b" ], @@ -863,20 +928,20 @@ } ], "name": "DiscordMessageResponder", - "color": "rgb(153,51,204)", + "color": "rgb(255,153,102)", "portsInOrder": [ - "02a71555-10a3-4048-a4b6-cd39aa872d1b", - "48a499f4-ed12-45b5-81be-6791325c6f2a", - "2fe24476-ac5d-4637-a895-2a5711f8d5d7" + "ed2a88cb-8ad7-4659-9ee7-7d1f53ccbbe9", + "279509f8-2776-4e04-aa12-7ef7909f0089", + "6c2d4809-ad88-4f33-a7f9-8eab1e3ae79e" ], "portsOutOrder": [ - "35b2982d-fb6a-44ef-9166-a2756bdd11d1" + "8c1e82af-999b-4259-8cf0-f76bdb21b2c2" ] }, - "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1": { - "id": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "e89417af-2cd3-4ded-b04c-ea03319f5da8": { + "id": "e89417af-2cd3-4ded-b04c-ea03319f5da8", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -892,14 +957,14 @@ "y": 374.348, "ports": [ { - "id": "f5cc09cb-6a81-4344-999b-f8e53502e2ff", + "id": "e23c008c-932d-46ad-9c56-4524036818ab", "type": "default", "extras": {}, - "x": 581.9375178579921, + "x": 581.9375872161243, "y": 401.1375068012544, "name": "in-0", "alignment": "left", - "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "parentNode": "e89417af-2cd3-4ded-b04c-ea03319f5da8", "links": [ "4a3e0f16-ddae-40b7-b634-946df61f892b" ], @@ -910,14 +975,14 @@ "dataType": "" }, { - "id": "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0", + "id": "14b81c97-47fa-42a4-8d41-13d2afe8fc23", "type": "default", "extras": {}, - "x": 581.9375178579921, + "x": 581.9375872161243, "y": 422.73750180746885, "name": "parameter-string-shutdown_cmd", "alignment": "left", - "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "parentNode": "e89417af-2cd3-4ded-b04c-ea03319f5da8", "links": [ "b7e21308-8291-4225-acdf-d64025ad9d75" ], @@ -928,14 +993,14 @@ "dataType": "string" }, { - "id": "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0", + "id": "3ee4e509-31e2-4d1a-8d27-b3f45bb722b7", "type": "default", "extras": {}, - "x": 740.2749202017421, + "x": 740.2625050960959, "y": 401.1375068012544, "name": "out-0", "alignment": "right", - "parentNode": "daa0d8c0-b4e2-4470-88cb-c9df95ec73a1", + "parentNode": "e89417af-2cd3-4ded-b04c-ea03319f5da8", "links": [ "f89a13f2-8fd5-4f23-9b57-cd41409f9baf" ], @@ -947,19 +1012,19 @@ } ], "name": "DiscordShutdownBot", - "color": "rgb(102,102,102)", + "color": "rgb(255,102,102)", "portsInOrder": [ - "f5cc09cb-6a81-4344-999b-f8e53502e2ff", - "bf954cc4-e19a-4d00-bb9b-ae9b48c582d0" + "e23c008c-932d-46ad-9c56-4524036818ab", + "14b81c97-47fa-42a4-8d41-13d2afe8fc23" ], "portsOutOrder": [ - "ecc0f896-2f26-46cc-853d-0daa6ba3c7a0" + "3ee4e509-31e2-4d1a-8d27-b3f45bb722b7" ] }, - "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88": { - "id": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "fc0b902f-c64a-46b8-8767-dc306d8e3d53": { + "id": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", "type": "custom-node", - "selected": true, + "selected": false, "extras": { "type": "library_component", "path": "xai_components/xai_discord/discord_components.py", @@ -975,14 +1040,14 @@ "y": 461.853, "ports": [ { - "id": "00a11c7a-87b9-4402-898a-e497c42d6d13", + "id": "b28e7c92-5ab1-4c34-b872-3836393fc770", "type": "default", "extras": {}, - "x": 787.2750422720546, + "x": 787.2749729139226, "y": 488.65002594409884, "name": "in-0", "alignment": "left", - "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "parentNode": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", "links": [ "f89a13f2-8fd5-4f23-9b57-cd41409f9baf" ], @@ -993,15 +1058,17 @@ "dataType": "" }, { - "id": "4d792116-f54a-43cd-85a4-bc27b76eb60f", + "id": "df5c13d4-4c3a-4ffd-9349-56dca8d22515", "type": "default", "extras": {}, - "x": 787.2750422720546, - "y": 510.25002095031334, + "x": 787.2749729139226, + "y": 510.2500556293794, "name": "parameter-string-token", "alignment": "left", - "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", - "links": [], + "parentNode": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", + "links": [ + "4499530e-e800-4ee7-982a-4ba98ca0cb86" + ], "in": true, "label": "token", "varName": "token", @@ -1009,14 +1076,14 @@ "dataType": "string" }, { - "id": "008d06c5-e6b5-4934-825a-25e0306d12b5", + "id": "c2767775-061d-42ad-b449-7afc9021df56", "type": "default", "extras": {}, - "x": 930.137535613674, + "x": 930.1376049718061, "y": 488.65002594409884, "name": "out-0", "alignment": "right", - "parentNode": "34b1dbc6-fbe1-4b01-98f1-957f65d7ac88", + "parentNode": "fc0b902f-c64a-46b8-8767-dc306d8e3d53", "links": [ "ddf0437d-56ef-4b20-bda6-6142f72ecca0" ], @@ -1028,13 +1095,13 @@ } ], "name": "DiscordDeployBot", - "color": "rgb(255,102,0)", + "color": "rgb(15,255,255)", "portsInOrder": [ - "00a11c7a-87b9-4402-898a-e497c42d6d13", - "4d792116-f54a-43cd-85a4-bc27b76eb60f" + "b28e7c92-5ab1-4c34-b872-3836393fc770", + "df5c13d4-4c3a-4ffd-9349-56dca8d22515" ], "portsOutOrder": [ - "008d06c5-e6b5-4934-825a-25e0306d12b5" + "c2767775-061d-42ad-b449-7afc9021df56" ] } } From 48c965403e727a97318e34b566cada8f78f07610 Mon Sep 17 00:00:00 2001 From: rabea-al Date: Sat, 16 Nov 2024 18:44:21 +0800 Subject: [PATCH 7/7] Add dependencies to pyproject.toml --- pyproject.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3c21a58..ac6fd30 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,14 @@ authors = [{ name = "XpressAI", email = "eduardo@xpress.ai" }] license = "Apache-2.0" readme = "readme.md" repository = "https://github.com/XpressAI/xai-discord" -keywords = ["xircuits", "discord","Bot"] +keywords = ["xircuits", "discord", "Bot"] + +dependencies = [ + "discord-py==2.4.0", + "aiohttp==3.10.10", + "torch==2.4.1", + "torchvision==0.19.1" +] # Xircuits-specific configurations [tool.xircuits]