mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-11-29 13:45:38 -05:00
more overhauls
This commit is contained in:
Generated
+354
-186
@@ -6,17 +6,17 @@
|
||||
"": {
|
||||
"dependencies": {
|
||||
"@tonejs/midi": "^2.0.28",
|
||||
"axios": "^1.8.2",
|
||||
"discord.js": "^14.17.3",
|
||||
"axios": "^1.11.0",
|
||||
"discord.js": "^14.21.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"matrix-js-sdk": "^36.2.0",
|
||||
"minecraft-data": "^3.83.1",
|
||||
"minecraft-protocol": "^1.54.0",
|
||||
"prismarine-chat": "^1.10.1",
|
||||
"prismarine-item": "^1.16.0",
|
||||
"minecraft-data": "^3.95.1",
|
||||
"minecraft-protocol": "^1.60.1",
|
||||
"prismarine-chat": "^1.11.0",
|
||||
"prismarine-item": "^1.17.0",
|
||||
"prismarine-registry": "^1.11.0",
|
||||
"request": "^2.88.2",
|
||||
"undici": "^7.3.0",
|
||||
"undici": "^7.13.0",
|
||||
"wikipedia": "^2.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
@@ -24,21 +24,21 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@azure/msal-common": {
|
||||
"version": "14.16.0",
|
||||
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.16.0.tgz",
|
||||
"integrity": "sha512-1KOZj9IpcDSwpNiQNjt0jDYZpQvNZay7QAEi/5DLubay40iGYtLzya/jbjRPLyOTZhEKyL1MzPuw2HqBCjceYA==",
|
||||
"version": "14.16.1",
|
||||
"resolved": "https://registry.npmjs.org/@azure/msal-common/-/msal-common-14.16.1.tgz",
|
||||
"integrity": "sha512-nyxsA6NA4SVKh5YyRpbSXiMr7oQbwark7JU9LMeg6tJYTSPyAGkdx61wPT4gyxZfxlSxMMEyAsWaubBlNyIa1w==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.8.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@azure/msal-node": {
|
||||
"version": "2.16.2",
|
||||
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.16.2.tgz",
|
||||
"integrity": "sha512-An7l1hEr0w1HMMh1LU+rtDtqL7/jw74ORlc9Wnh06v7TU/xpG39/Zdr1ZJu3QpjUfKJ+E0/OXMW8DRSWTlh7qQ==",
|
||||
"version": "2.16.3",
|
||||
"resolved": "https://registry.npmjs.org/@azure/msal-node/-/msal-node-2.16.3.tgz",
|
||||
"integrity": "sha512-CO+SE4weOsfJf+C5LM8argzvotrXw252/ZU6SM2Tz63fEblhH1uuVaaO4ISYFuN4Q6BhTo7I3qIdi8ydUQCqhw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@azure/msal-common": "14.16.0",
|
||||
"@azure/msal-common": "14.16.1",
|
||||
"jsonwebtoken": "^9.0.0",
|
||||
"uuid": "^8.3.0"
|
||||
},
|
||||
@@ -46,14 +46,20 @@
|
||||
"node": ">=16"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/runtime": {
|
||||
"version": "7.26.9",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.9.tgz",
|
||||
"integrity": "sha512-aA63XwOkcl4xxQa3HjPMqOP6LiK0ZDv3mUPYEFXkpHbaFjtGggE1A61FjFzJnB+p7/oy2gA8E+rcBNl/zC1tMg==",
|
||||
"node_modules/@azure/msal-node/node_modules/uuid": {
|
||||
"version": "8.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/runtime": {
|
||||
"version": "7.28.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.28.2.tgz",
|
||||
"integrity": "sha512-KHp2IflsnGywDjBWDkR9iEqiWSpc8GIi0lgTT3mOElT0PP1tG26P4tmFI2YvAdzgq9RGyoHZQEIEdZy6Ec5xCA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"regenerator-runtime": "^0.14.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
@@ -223,15 +229,15 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/builders": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.10.0.tgz",
|
||||
"integrity": "sha512-ikVZsZP+3shmVJ5S1oM+7SveUCK3L9fTyfA8aJ7uD9cNQlTqF+3Irbk2Y22KXTb3C3RNUahRkSInClJMkHrINg==",
|
||||
"version": "1.11.3",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.11.3.tgz",
|
||||
"integrity": "sha512-p3kf5eV49CJiRTfhtutUCeivSyQ/l2JlKodW1ZquRwwvlOWmG9+6jFShX6x8rUiYhnP6wKI96rgN/SXMy5e5aw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/formatters": "^0.6.0",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/util": "^1.1.1",
|
||||
"@sapphire/shapeshift": "^4.0.0",
|
||||
"discord-api-types": "^0.37.114",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.6.3"
|
||||
@@ -253,12 +259,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/formatters": {
|
||||
"version": "0.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.6.0.tgz",
|
||||
"integrity": "sha512-YIruKw4UILt/ivO4uISmrGq2GdMY6EkoTtD0oS0GvkJFRZbTSdPhzYiUILbJ/QslsvC9H9nTgGgnarnIl4jMfw==",
|
||||
"version": "0.6.1",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.6.1.tgz",
|
||||
"integrity": "sha512-5cnX+tASiPCqCWtFcFslxBVUaCetB0thvM/JyavhbXInP1HJIEU+Qv/zMrnuwSsX3yWH2lVXNJZeDK3EiP4HHg==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"discord-api-types": "^0.37.114"
|
||||
"discord-api-types": "^0.38.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
@@ -268,9 +274,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/rest": {
|
||||
"version": "2.4.2",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.4.2.tgz",
|
||||
"integrity": "sha512-9bOvXYLQd5IBg/kKGuEFq3cstVxAMJ6wMxO2U3wjrgO+lHv8oNCT+BBRpuzVQh7BoXKvk/gpajceGvQUiRoJ8g==",
|
||||
"version": "2.5.1",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.5.1.tgz",
|
||||
"integrity": "sha512-Tg9840IneBcbrAjcGaQzHUJWFNq1MMWZjTdjJ0WS/89IffaNKc++iOvffucPxQTF/gviO9+9r8kEPea1X5J2Dw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/collection": "^2.1.1",
|
||||
@@ -278,10 +284,10 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "^0.37.114",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.19.8"
|
||||
"undici": "6.21.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
@@ -303,9 +309,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/rest/node_modules/undici": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz",
|
||||
"integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==",
|
||||
"version": "6.21.3",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz",
|
||||
"integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.17"
|
||||
@@ -324,18 +330,18 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/ws": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.2.0.tgz",
|
||||
"integrity": "sha512-QH5CAFe3wHDiedbO+EI3OOiyipwWd+Q6BdoFZUw/Wf2fw5Cv2fgU/9UEtJRmJa9RecI+TAhdGPadMaEIur5yJg==",
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.2.3.tgz",
|
||||
"integrity": "sha512-wPlQDxEmlDg5IxhJPuxXr3Vy9AjYq5xCvFWGJyD7w7Np8ZGu+Mc+97LCoEc/+AYCo2IDpKioiH0/c/mj5ZR9Uw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/collection": "^2.1.0",
|
||||
"@discordjs/rest": "^2.4.1",
|
||||
"@discordjs/rest": "^2.5.1",
|
||||
"@discordjs/util": "^1.1.0",
|
||||
"@sapphire/async-queue": "^1.5.2",
|
||||
"@types/ws": "^8.5.10",
|
||||
"@vladfrangu/async_event_emitter": "^2.2.4",
|
||||
"discord-api-types": "^0.37.114",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"tslib": "^2.6.2",
|
||||
"ws": "^8.17.0"
|
||||
},
|
||||
@@ -423,12 +429,12 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.10.10",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.10.tgz",
|
||||
"integrity": "sha512-X47y/mPNzxviAGY5TcYPtYL8JsY3kAq2n8fMmKoRCxq/c4v4pyGNCzM2R6+M5/umG4ZfHuT+sgqDYqWc9rJ6ww==",
|
||||
"version": "24.2.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz",
|
||||
"integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.20.0"
|
||||
"undici-types": "~7.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node-rsa": {
|
||||
@@ -441,13 +447,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/readable-stream": {
|
||||
"version": "4.0.18",
|
||||
"resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.18.tgz",
|
||||
"integrity": "sha512-21jK/1j+Wg+7jVw1xnSwy/2Q1VgVjWuFssbYGTREPUBeZ+rqVFl2udq0IkxzPC0ZhOzVceUbyIACFZKLqKEBlA==",
|
||||
"version": "4.0.21",
|
||||
"resolved": "https://registry.npmjs.org/@types/readable-stream/-/readable-stream-4.0.21.tgz",
|
||||
"integrity": "sha512-19eKVv9tugr03IgfXlA9UVUVRbW6IuqRO5B92Dl4a6pT7K8uaGrNS0GkxiZD0BOk6PLuXl5FhWl//eX/pzYdTQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/node": "*",
|
||||
"safe-buffer": "~5.1.1"
|
||||
"@types/node": "*"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/retry": {
|
||||
@@ -457,9 +462,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@types/ws": {
|
||||
"version": "8.5.14",
|
||||
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.14.tgz",
|
||||
"integrity": "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw==",
|
||||
"version": "8.18.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",
|
||||
"integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@types/node": "*"
|
||||
@@ -589,20 +594,20 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.8.2",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.8.2.tgz",
|
||||
"integrity": "sha512-ls4GYBm5aig9vWx8AWDSGLpnpDQRtWAfrjU+EuytuODrFBkqesN2RkOQCBzrA1RQNHw1SmRMSDDDSwzNAYQ6Rg==",
|
||||
"version": "1.11.0",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.11.0.tgz",
|
||||
"integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
"form-data": "^4.0.0",
|
||||
"form-data": "^4.0.4",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/base-x": {
|
||||
"version": "5.0.0",
|
||||
"resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.0.tgz",
|
||||
"integrity": "sha512-sMW3VGSX1QWVFA6l8U62MLKz29rRfpTlYdCqLdpLo1/Yd4zZwSbnUaDfciIAowAqvq7YFnWq9hrhdg1KYgc1lQ==",
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/base-x/-/base-x-5.0.1.tgz",
|
||||
"integrity": "sha512-M7uio8Zt++eg3jPj+rHMfCC+IuygQHHCOU+IYsVtik6FWjuYpVt/+MRKcgsAMHh8mMFAwnB+Bs+mTrFiXjMzKg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/base64-js": {
|
||||
@@ -685,6 +690,19 @@
|
||||
"integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==",
|
||||
"license": "BSD-3-Clause"
|
||||
},
|
||||
"node_modules/call-bind-apply-helpers": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz",
|
||||
"integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/camelcase": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
|
||||
@@ -746,9 +764,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/debug": {
|
||||
"version": "4.4.0",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz",
|
||||
"integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==",
|
||||
"version": "4.4.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.4.1.tgz",
|
||||
"integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
@@ -778,29 +796,33 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/discord-api-types": {
|
||||
"version": "0.37.117",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.117.tgz",
|
||||
"integrity": "sha512-d+Z6RKd7v3q22lsil7yASucqMfVVV0s0XSqu3cw7kyHVXiDO/mAnqMzqma26IYnIm2mk3TlupYJDGrdL908ZKA==",
|
||||
"license": "MIT"
|
||||
"version": "0.38.19",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.19.tgz",
|
||||
"integrity": "sha512-NUNMTgjYrgxt7wrTNEqnEez4hIAYbfyBpsjxT5gW7+82GjQCPDZvN+em6t+4/P5kGWnnwDa4ci070BV7eI6GbA==",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"scripts/actions/documentation"
|
||||
]
|
||||
},
|
||||
"node_modules/discord.js": {
|
||||
"version": "14.17.3",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.17.3.tgz",
|
||||
"integrity": "sha512-8/j8udc3CU7dz3Eqch64UaSHoJtUT6IXK4da5ixjbav4NAXJicloWswD/iwn1ImZEMoAV3LscsdO0zhBh6H+0Q==",
|
||||
"version": "14.21.0",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.21.0.tgz",
|
||||
"integrity": "sha512-U5w41cEmcnSfwKYlLv5RJjB8Joa+QJyRwIJz5i/eg+v2Qvv6EYpCRhN9I2Rlf0900LuqSDg8edakUATrDZQncQ==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^1.10.0",
|
||||
"@discordjs/builders": "^1.11.2",
|
||||
"@discordjs/collection": "1.5.3",
|
||||
"@discordjs/formatters": "^0.6.0",
|
||||
"@discordjs/rest": "^2.4.2",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/rest": "^2.5.1",
|
||||
"@discordjs/util": "^1.1.1",
|
||||
"@discordjs/ws": "^1.2.0",
|
||||
"@discordjs/ws": "^1.2.3",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "^0.37.114",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"lodash.snakecase": "4.1.1",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.19.8"
|
||||
"undici": "6.21.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
@@ -810,14 +832,28 @@
|
||||
}
|
||||
},
|
||||
"node_modules/discord.js/node_modules/undici": {
|
||||
"version": "6.19.8",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.19.8.tgz",
|
||||
"integrity": "sha512-U8uCCl2x9TK3WANvmBavymRzxbfFYG+tAu+fgx3zxQy3qdagQqBLwJVrdyO1TBfUXvfKveMKJZhpvUYoOjM+4g==",
|
||||
"version": "6.21.3",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-6.21.3.tgz",
|
||||
"integrity": "sha512-gBLkYIlEnSp8pFbT64yFgGE6UIB9tAkhukC23PmMDCe5Nd+cRqKxSjw5y54MK2AZMgZfJWMaNE4nYUHgi1XEOw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=18.17"
|
||||
}
|
||||
},
|
||||
"node_modules/dunder-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"gopd": "^1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/ecc-jsbn": {
|
||||
"version": "0.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz",
|
||||
@@ -843,6 +879,51 @@
|
||||
"integrity": "sha512-ShfqhXeHRE4TmggSlHXG8CMGIcsOsqDw/GcoPcosToE59Rm9e4aXaMhEQf2kPBsBRrKem1bbOAv5gOKnkliMFQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/es-define-property": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz",
|
||||
"integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-errors": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz",
|
||||
"integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-object-atoms": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz",
|
||||
"integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/es-set-tostringtag": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz",
|
||||
"integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"es-errors": "^1.3.0",
|
||||
"get-intrinsic": "^1.2.6",
|
||||
"has-tostringtag": "^1.0.2",
|
||||
"hasown": "^2.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/event-target-shim": {
|
||||
"version": "5.0.1",
|
||||
"resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz",
|
||||
@@ -889,9 +970,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/follow-redirects": {
|
||||
"version": "1.15.9",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz",
|
||||
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
|
||||
"version": "1.15.11",
|
||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
|
||||
"integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "individual",
|
||||
@@ -918,19 +999,67 @@
|
||||
}
|
||||
},
|
||||
"node_modules/form-data": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz",
|
||||
"integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
|
||||
"version": "4.0.4",
|
||||
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz",
|
||||
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"asynckit": "^0.4.0",
|
||||
"combined-stream": "^1.0.8",
|
||||
"es-set-tostringtag": "^2.1.0",
|
||||
"hasown": "^2.0.2",
|
||||
"mime-types": "^2.1.12"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/function-bind": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",
|
||||
"integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-intrinsic": {
|
||||
"version": "1.3.0",
|
||||
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
|
||||
"integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"call-bind-apply-helpers": "^1.0.2",
|
||||
"es-define-property": "^1.0.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"es-object-atoms": "^1.1.1",
|
||||
"function-bind": "^1.1.2",
|
||||
"get-proto": "^1.0.1",
|
||||
"gopd": "^1.2.0",
|
||||
"has-symbols": "^1.1.0",
|
||||
"hasown": "^2.0.2",
|
||||
"math-intrinsics": "^1.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/get-proto": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz",
|
||||
"integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"dunder-proto": "^1.0.1",
|
||||
"es-object-atoms": "^1.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/getpass": {
|
||||
"version": "0.1.7",
|
||||
"resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz",
|
||||
@@ -940,6 +1069,18 @@
|
||||
"assert-plus": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/gopd": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
|
||||
"integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/har-schema": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz",
|
||||
@@ -963,6 +1104,45 @@
|
||||
"node": ">=6"
|
||||
}
|
||||
},
|
||||
"node_modules/has-symbols": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz",
|
||||
"integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/has-tostringtag": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz",
|
||||
"integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"has-symbols": "^1.0.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
}
|
||||
},
|
||||
"node_modules/hasown": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",
|
||||
"integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"function-bind": "^1.1.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/http-signature": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz",
|
||||
@@ -1097,12 +1277,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/jwa": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.1.tgz",
|
||||
"integrity": "sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA==",
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/jwa/-/jwa-1.4.2.tgz",
|
||||
"integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"buffer-equal-constant-time": "1.0.1",
|
||||
"buffer-equal-constant-time": "^1.0.1",
|
||||
"ecdsa-sig-formatter": "1.0.11",
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
@@ -1132,13 +1312,6 @@
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/lodash.get": {
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
|
||||
"integrity": "sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==",
|
||||
"deprecated": "This package is deprecated. Use the optional chaining (?.) operator instead.",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/lodash.includes": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
||||
@@ -1219,11 +1392,20 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/magic-bytes.js": {
|
||||
"version": "1.10.0",
|
||||
"resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.10.0.tgz",
|
||||
"integrity": "sha512-/k20Lg2q8LE5xiaaSkMXk4sfvI+9EGEykFS4b0CHHGWqDYU0bGUFSwchNOMA56D7TCs9GwVTkqe9als1/ns8UQ==",
|
||||
"version": "1.12.1",
|
||||
"resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.12.1.tgz",
|
||||
"integrity": "sha512-ThQLOhN86ZkJ7qemtVRGYM+gRgR8GEXNli9H/PMvpnZsE44Xfh3wx9kGJaldg314v85m+bFW6WBMaVHJc/c3zA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/math-intrinsics": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
|
||||
"integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
}
|
||||
},
|
||||
"node_modules/matrix-events-sdk": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://registry.npmjs.org/matrix-events-sdk/-/matrix-events-sdk-0.0.1.tgz",
|
||||
@@ -1256,19 +1438,6 @@
|
||||
"node": ">=20.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/matrix-js-sdk/node_modules/uuid": {
|
||||
"version": "11.1.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
|
||||
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/esm/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/matrix-widget-api": {
|
||||
"version": "1.13.1",
|
||||
"resolved": "https://registry.npmjs.org/matrix-widget-api/-/matrix-widget-api-1.13.1.tgz",
|
||||
@@ -1307,9 +1476,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/minecraft-data": {
|
||||
"version": "3.83.1",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.83.1.tgz",
|
||||
"integrity": "sha512-5K26za9k5WV1OnfkGexA77lBhfGZeFw3rT3NM7/rbFXRZC65prCx7Tk2BQvC9UfzgxxvmxHfxM5y8G1U+Oxgfg==",
|
||||
"version": "3.95.1",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.95.1.tgz",
|
||||
"integrity": "sha512-ZqKjP+4pU/8oCK3uNx441X29oDtzSbWtaMT1uqcqoh7+IW96zDWI4siqz1CqWIRP97h9lxTXhdwn7yDYXMz5ug==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-folder-path": {
|
||||
@@ -1319,9 +1488,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-protocol": {
|
||||
"version": "1.54.0",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.54.0.tgz",
|
||||
"integrity": "sha512-v8pWRVhD9kyd/X52j/XESxrNxkmz1OHzSXAJkPLOQUUTENEqisJhu1c3abS7ZI+MAXHAEA/vaCb/Eh6XFxw0lA==",
|
||||
"version": "1.60.1",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.60.1.tgz",
|
||||
"integrity": "sha512-RerPEYjC8Tej8MoIkXbD8CrOoZtr2iN60Ug5+veqqyv7BDoeh48oTQU1B3Rdv0++MofEiitTgV/oOJximCBj+w==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@types/node-rsa": "^1.1.4",
|
||||
@@ -1330,7 +1499,6 @@
|
||||
"buffer-equal": "^1.0.0",
|
||||
"debug": "^4.3.2",
|
||||
"endian-toggle": "^0.0.0",
|
||||
"lodash.get": "^4.1.2",
|
||||
"lodash.merge": "^4.3.0",
|
||||
"minecraft-data": "^3.78.0",
|
||||
"minecraft-folder-path": "^1.2.0",
|
||||
@@ -1346,7 +1514,7 @@
|
||||
"yggdrasil": "^1.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=22"
|
||||
}
|
||||
},
|
||||
"node_modules/mojangson": {
|
||||
@@ -1431,9 +1599,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/oidc-client-ts": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/oidc-client-ts/-/oidc-client-ts-3.1.0.tgz",
|
||||
"integrity": "sha512-IDopEXjiwjkmJLYZo6BTlvwOtnlSniWZkKZoXforC/oLZHC9wkIxd25Kwtmo5yKFMMVcsp3JY6bhcNJqdYk8+g==",
|
||||
"version": "3.3.0",
|
||||
"resolved": "https://registry.npmjs.org/oidc-client-ts/-/oidc-client-ts-3.3.0.tgz",
|
||||
"integrity": "sha512-t13S540ZwFOEZKLYHJwSfITugupW4uYLwuQSSXyKH/wHwZ+7FvgHE7gnNJh1YQIZ1Yd1hKSRjqeXGSUtS0r9JA==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"jwt-decode": "^4.0.0"
|
||||
@@ -1462,9 +1630,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/prismarine-auth": {
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-2.6.0.tgz",
|
||||
"integrity": "sha512-9XXYtr6rnJ5EZ/pf63HJvvYPh3lSPe/AIZubwj2BXBQBEidoBR3P5MIm/1nukLwnF1xHiNpF5Y20gcHCdigMDg==",
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-2.7.0.tgz",
|
||||
"integrity": "sha512-L8wTF6sdtnN6hViPNy+Nx39a8iQBwR5iO92AWCiym5cSXp/92pmnuwnTdcmNDWyqq6zY4hbibVGYhgLA1Ox8sQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@azure/msal-node": "^2.0.2",
|
||||
@@ -1485,9 +1653,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prismarine-block": {
|
||||
"version": "1.20.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-block/-/prismarine-block-1.20.0.tgz",
|
||||
"integrity": "sha512-4epPqpUtpL5NzUEu4y498UPh++vQDB7bxtCbKGqFxVmNsN1H1JO6bucRdHsF5Vv3+J3/FcPReHzy4sheyZhydA==",
|
||||
"version": "1.22.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-block/-/prismarine-block-1.22.0.tgz",
|
||||
"integrity": "sha512-SKVTm+CHR5mY/d+delryqzB2hMH8HIPse8b0O51Ez2R5zPFtKVCLGk5NG71kCDKbMzhhev2iF0O4UC/fWDXhRw==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"minecraft-data": "^3.38.0",
|
||||
@@ -1499,9 +1667,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prismarine-chat": {
|
||||
"version": "1.10.1",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-chat/-/prismarine-chat-1.10.1.tgz",
|
||||
"integrity": "sha512-XukYcuueuhDxzEXG7r8BZyt6jOObrPPB4JESCgb+/XenB9nExoSHF8eTQWWj8faKPLqm1dRQaYwFJlNBlJZJUw==",
|
||||
"version": "1.11.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-chat/-/prismarine-chat-1.11.0.tgz",
|
||||
"integrity": "sha512-VJT/MWYB3qoiznUhrgvSQh76YFpzpCZpY85kJKxHLbd3UVoM0wsfs43Eg8dOltiZG92wc5/DTMLlT07TEeoa9w==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"mojangson": "^2.0.1",
|
||||
@@ -1510,9 +1678,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prismarine-item": {
|
||||
"version": "1.16.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-item/-/prismarine-item-1.16.0.tgz",
|
||||
"integrity": "sha512-88Tz+/6HquYIsDuseae5G3IbqLeMews2L+ba2gX+p6K6soU9nuFhCfbwN56QuB7d/jZFcWrCYAPE5+UhwWh67w==",
|
||||
"version": "1.17.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-item/-/prismarine-item-1.17.0.tgz",
|
||||
"integrity": "sha512-wN1OjP+f+Uvtjo3KzeCkVSy96CqZ8yG7cvuvlGwcYupQ6ct7LtNkubHp0AHuLMJ0vbbfAC0oZ2bWOgI1DYp8WA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"prismarine-nbt": "^2.0.0",
|
||||
@@ -1559,12 +1727,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/protodef": {
|
||||
"version": "1.18.0",
|
||||
"resolved": "https://registry.npmjs.org/protodef/-/protodef-1.18.0.tgz",
|
||||
"integrity": "sha512-jO64lkzkh0dYc0AVWCU/GzCKwqhFFIz1kfEz0NBf0RUuRNcmvgKbopabJdfZ6W8NvALdySUXgEhvKDZPhdBwrg==",
|
||||
"version": "1.19.0",
|
||||
"resolved": "https://registry.npmjs.org/protodef/-/protodef-1.19.0.tgz",
|
||||
"integrity": "sha512-94f3GR7pk4Qi5YVLaLvWBfTGUIzzO8hyo7vFVICQuu5f5nwKtgGDaeC1uXIu49s5to/49QQhEYeL0aigu1jEGA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"lodash.get": "^4.4.2",
|
||||
"lodash.reduce": "^4.6.0",
|
||||
"protodef-validator": "^1.3.0",
|
||||
"readable-stream": "^4.4.0"
|
||||
@@ -1656,12 +1823,6 @@
|
||||
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/regenerator-runtime": {
|
||||
"version": "0.14.1",
|
||||
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz",
|
||||
"integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/request": {
|
||||
"version": "2.88.2",
|
||||
"resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz",
|
||||
@@ -1737,9 +1898,23 @@
|
||||
}
|
||||
},
|
||||
"node_modules/safe-buffer": {
|
||||
"version": "5.1.2",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
|
||||
"integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/safer-buffer": {
|
||||
@@ -1758,9 +1933,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/semver": {
|
||||
"version": "7.6.3",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz",
|
||||
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==",
|
||||
"version": "7.7.2",
|
||||
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
|
||||
"integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
|
||||
"license": "ISC",
|
||||
"bin": {
|
||||
"semver": "bin/semver.js"
|
||||
@@ -1813,26 +1988,6 @@
|
||||
"safe-buffer": "~5.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/string_decoder/node_modules/safe-buffer": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
|
||||
"integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/feross"
|
||||
},
|
||||
{
|
||||
"type": "patreon",
|
||||
"url": "https://www.patreon.com/feross"
|
||||
},
|
||||
{
|
||||
"type": "consulting",
|
||||
"url": "https://feross.org/support"
|
||||
}
|
||||
],
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/tough-cookie": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz",
|
||||
@@ -1883,18 +2038,18 @@
|
||||
"license": "Unlicense"
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.3.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.3.0.tgz",
|
||||
"integrity": "sha512-Qy96NND4Dou5jKoSJ2gm8ax8AJM/Ey9o9mz7KN1bb9GP+G0l20Zw8afxTnY2f4b7hmhn/z8aC2kfArVQlAhFBw==",
|
||||
"version": "7.13.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.13.0.tgz",
|
||||
"integrity": "sha512-l+zSMssRqrzDcb3fjMkjjLGmuiiK2pMIcV++mJaAc9vhjSGpvM7h43QgP+OAMb1GImHmbPyG2tBXeuyG5iY4gA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=20.18.1"
|
||||
}
|
||||
},
|
||||
"node_modules/undici-types": {
|
||||
"version": "6.20.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz",
|
||||
"integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==",
|
||||
"version": "7.10.0",
|
||||
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz",
|
||||
"integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/unhomoglyph": {
|
||||
@@ -1913,12 +2068,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/uuid": {
|
||||
"version": "8.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
||||
"version": "11.1.0",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-11.1.0.tgz",
|
||||
"integrity": "sha512-0/A9rDy9P7cJ+8w1c9WD9V//9Wj15Ce2MPz8Ri6032usz+NfePxx5AcN3bN+r6ZL6jEo066/yNYB3tn4pQEx+A==",
|
||||
"funding": [
|
||||
"https://github.com/sponsors/broofa",
|
||||
"https://github.com/sponsors/ctavan"
|
||||
],
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
"uuid": "dist/esm/bin/uuid"
|
||||
}
|
||||
},
|
||||
"node_modules/uuid-1345": {
|
||||
@@ -1974,9 +2133,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/ws": {
|
||||
"version": "8.18.0",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.0.tgz",
|
||||
"integrity": "sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw==",
|
||||
"version": "8.18.3",
|
||||
"resolved": "https://registry.npmjs.org/ws/-/ws-8.18.3.tgz",
|
||||
"integrity": "sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
@@ -2003,6 +2162,15 @@
|
||||
"node-fetch": "^2.6.1",
|
||||
"uuid": "^8.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yggdrasil/node_modules/uuid": {
|
||||
"version": "8.3.2",
|
||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz",
|
||||
"integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"uuid": "dist/bin/uuid"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+7
-7
@@ -1,17 +1,17 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@tonejs/midi": "^2.0.28",
|
||||
"axios": "^1.8.2",
|
||||
"discord.js": "^14.17.3",
|
||||
"axios": "^1.11.0",
|
||||
"discord.js": "^14.21.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"matrix-js-sdk": "^36.2.0",
|
||||
"minecraft-data": "^3.83.1",
|
||||
"minecraft-protocol": "^1.54.0",
|
||||
"prismarine-chat": "^1.10.1",
|
||||
"prismarine-item": "^1.16.0",
|
||||
"minecraft-data": "^3.95.1",
|
||||
"minecraft-protocol": "^1.60.1",
|
||||
"prismarine-chat": "^1.11.0",
|
||||
"prismarine-item": "^1.17.0",
|
||||
"prismarine-registry": "^1.11.0",
|
||||
"request": "^2.88.2",
|
||||
"undici": "^7.3.0",
|
||||
"undici": "^7.13.0",
|
||||
"wikipedia": "^2.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@@ -25,6 +25,7 @@ class Bot {
|
||||
client.on("login", (data) => {
|
||||
bot.uuid = client.uuid;
|
||||
bot.username = client.username;
|
||||
bot.loggedIn = true;
|
||||
});
|
||||
|
||||
client.on("disconnect", (data) => {
|
||||
@@ -43,6 +44,7 @@ class Bot {
|
||||
|
||||
client.on("end", (reason) => {
|
||||
bot.emit("end", reason);
|
||||
bot.loggedIn = false;
|
||||
disconnectCount++;
|
||||
});
|
||||
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
function chipmunkmod (message, data, context, bot) {
|
||||
try {
|
||||
if (message === null || typeof message !== 'object') return
|
||||
if (message.with?.length < 3 || (message.translate !== '[%s] %s › %s' && message.translate !== '%s %s › %s')) return
|
||||
|
||||
const senderComponent = message.with[1]
|
||||
const contents = message.with[2]
|
||||
let sender
|
||||
const hoverEvent = senderComponent.hoverEvent
|
||||
if (hoverEvent?.action === 'show_entity') {
|
||||
const id = hoverEvent.contents.id
|
||||
|
||||
sender = data.players.find(player => player.uuid === id)
|
||||
} else {
|
||||
const stringUsername = data.getMessageAsPrismarine(senderComponent).toString() // TypeError: data.getMessageAsPrismarine is not a function
|
||||
|
||||
sender = data.players.find(player => player.profile.name === stringUsername)
|
||||
}
|
||||
|
||||
if (!sender) return null;
|
||||
|
||||
return { sender, contents, type: 'minecraft:chat', chatType: ["system"], senderComponent }
|
||||
} catch(e) {
|
||||
console.error(e)
|
||||
}
|
||||
}
|
||||
module.exports = chipmunkmod
|
||||
@@ -10,17 +10,9 @@ function parseMessage(messageobj, data) {
|
||||
const playerWithoutPrefix = /^(\S*?) » (.*?)$/;
|
||||
if (playerWithPrefix.test(message)) {
|
||||
match = message.match(playerWithPrefix);
|
||||
// console.log(match[2])
|
||||
// console.log(data.players.find(player => player.profile.name.toString().replaceAll('§','') === match[2]))
|
||||
// console.log(data.players)
|
||||
// console.log(match[0])
|
||||
// console.log(match[2])
|
||||
// console.log(data.players.find(player => player.profile.name === match[2]))
|
||||
|
||||
sender = data.players.find((player) => player.profile.name === match[2]);
|
||||
// sender = data.players.find(player => util.isDeepStrictEqual(player.displayName, playerListDisplayName))
|
||||
// if (!sender) return;
|
||||
// console.log(sender)
|
||||
return { sender, contents: match[3], type: "minecraft:chat" };
|
||||
return { sender, contents: match[3], chatType: "player", type: "minecraft:chat" };
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e.stack);
|
||||
|
||||
@@ -4,7 +4,7 @@ function kaboom (message, data) {
|
||||
if (message === null || typeof message !== 'object') return
|
||||
|
||||
if (message.text !== '' || !Array.isArray(message.extra) || message.extra.length < 3) return
|
||||
|
||||
|
||||
const children = message.extra
|
||||
|
||||
const prefix = children[0]
|
||||
@@ -22,16 +22,18 @@ function kaboom (message, data) {
|
||||
|
||||
const playerListDisplayName = { extra: [prefix, displayName], text: '' }
|
||||
let sender
|
||||
|
||||
if (data.uuid) {
|
||||
sender = data.players.find(player => player.uuid === data.senderUuid)
|
||||
} else {
|
||||
const playerListDisplayName = { extra: [prefix, displayName], text: '' }
|
||||
|
||||
sender = data.players.find(player => util.isDeepStrictEqual(player.displayName, playerListDisplayName))
|
||||
}
|
||||
|
||||
|
||||
if (!sender) return undefined
|
||||
|
||||
return { sender, contents, type: 'minecraft:chat', displayName }
|
||||
|
||||
return { sender, contents, type: 'minecraft:chat', chatType: ["player", "profileless"], displayName }
|
||||
}
|
||||
|
||||
function isSeparatorAt (children, start) {
|
||||
|
||||
@@ -23,7 +23,7 @@ function parseMessage(message, data, context) {
|
||||
);
|
||||
}
|
||||
if (!sender) return; //stringUsername
|
||||
return { sender, contents, type: "minecraft:chat", senderComponent };
|
||||
return { sender, contents, type: "minecraft:chat", chatType: ["player", "profileless"], senderComponent };
|
||||
} catch (e) {
|
||||
console.error(`${e.stack}`);
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
class CommandContext {
|
||||
constructor(name, aliases, description, trustLevel, usages) {
|
||||
constructor(name, aliases, description, trustLevel, usages, playerOnly) {
|
||||
this.data = {};
|
||||
this.data.name = name;
|
||||
this.data.aliases = aliases;
|
||||
this.data.description = description;
|
||||
this.data.trustLevel = trustLevel;
|
||||
this.data.usages = usages;
|
||||
this.data.playerOnly = playerOnly
|
||||
}
|
||||
}
|
||||
module.exports = CommandContext;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
class CommandSource {
|
||||
constructor(player, sources, hash) {
|
||||
constructor(player, sources, ChatType) {
|
||||
this.player = player;
|
||||
this.sources = sources;
|
||||
this.player.hash = hash;
|
||||
this.ChatType = ChatType
|
||||
this.player.hash = null;
|
||||
}
|
||||
}
|
||||
module.exports = CommandSource;
|
||||
|
||||
@@ -9,7 +9,9 @@ class kick extends CommandContext {
|
||||
"invalidstring",
|
||||
"item",
|
||||
"te",
|
||||
]);
|
||||
],
|
||||
false
|
||||
);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
|
||||
@@ -11,7 +11,9 @@ class console extends CommandContext {
|
||||
"say <message>",
|
||||
"validate/validation/val <owner/o/admin/a/trusted/t>",
|
||||
"logging/togglelogging/logtoconsole <on/true/enable/off/false/disable>",
|
||||
]);
|
||||
],
|
||||
false
|
||||
);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
|
||||
@@ -4,7 +4,7 @@ const trustLevel = new CommandTrustLevel()
|
||||
|
||||
class kill extends CommandContext {
|
||||
constructor() {
|
||||
super("kill", ["suicide", "quit"], "kill the bots process", trustLevel.owner, [""]);
|
||||
super("kill", ["suicide", "quit"], "kill the bots process", trustLevel.owner, [""], false);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
|
||||
@@ -17,7 +17,8 @@ class core extends CommandContext {
|
||||
"$username <message>",
|
||||
"$uuid <message>",
|
||||
"<message>",
|
||||
]
|
||||
],
|
||||
false
|
||||
);
|
||||
}
|
||||
execute(context) {
|
||||
|
||||
@@ -5,8 +5,10 @@ const trustLevel = new CommandTrustLevel()
|
||||
class echo extends CommandContext {
|
||||
constructor() {
|
||||
super("echo", ["say", "botsay"], "make me say something!", trustLevel.public, [
|
||||
"<message>",
|
||||
]);
|
||||
'',
|
||||
],
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
execute(context) {
|
||||
|
||||
@@ -11,6 +11,7 @@ class help extends CommandContext {
|
||||
"see a list of commands",
|
||||
trustLevel.public,
|
||||
["<command>"],
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,9 @@ class info extends CommandContext {
|
||||
"uptimes/uptime <bot, server, all>",
|
||||
"server",
|
||||
"version/ver",
|
||||
]);
|
||||
],
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
execute(context) {
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
const CommandContext = require("../../command_util/command_context");
|
||||
const CommandTrustLevel = require('../../command_util/command_trust_level')
|
||||
const trustLevel = new CommandTrustLevel()
|
||||
|
||||
class refillcore extends CommandContext {
|
||||
constructor() {
|
||||
super("rc", ["refill", "refillcore"], "refill the bots core", trustLevel.public, [
|
||||
'',
|
||||
],
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
const args = context.arguments;
|
||||
|
||||
bot.core.move(bot.position)
|
||||
bot.tellraw("@a", 'refilling core')
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = refillcore;
|
||||
@@ -0,0 +1,111 @@
|
||||
const CommandError = require("../../command_util/command_error");
|
||||
const fixAnsi = require("../../util/ansi");
|
||||
const CommandContext = require("../../command_util/command_context");
|
||||
const CommandTrustLevel = require('../../command_util/command_trust_level')
|
||||
const trustLevel = new CommandTrustLevel()
|
||||
|
||||
class cloop extends CommandContext {
|
||||
constructor() {
|
||||
super("cloop", ["commandloop", "loop"], "loops commands", trustLevel.trusted, [
|
||||
"add <interval> <command>",
|
||||
"remove <index>",
|
||||
"list",
|
||||
"clear",
|
||||
]);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
const config = context.config;
|
||||
const source = context.source;
|
||||
let args
|
||||
let component = [];
|
||||
|
||||
if (!source.sources.console && !source.sources.discord) {
|
||||
args = context.arguments.slice(16)
|
||||
} else {
|
||||
args = context.arguments
|
||||
}
|
||||
|
||||
if (
|
||||
!args &&
|
||||
!args[0] &&
|
||||
!args[1] &&
|
||||
!args[2] &&
|
||||
!args[3] &&
|
||||
!args[4] &&
|
||||
!args[5]
|
||||
)
|
||||
return;
|
||||
|
||||
switch (args[0]?.toLowerCase()) {
|
||||
case "add":
|
||||
if (isNaN(args[1])) throw new CommandError("invalid interval");
|
||||
|
||||
const interval = parseInt(args[1]);
|
||||
const command = args.slice(2).join(" ");
|
||||
bot.cloop.add(command, interval);
|
||||
|
||||
component.push(
|
||||
`added ${command} to the cloops with the interval ${interval}`,
|
||||
);
|
||||
break;
|
||||
case "clear":
|
||||
bot.cloop.clear();
|
||||
component.push("cleared the cloops");
|
||||
break;
|
||||
case "remove":
|
||||
if (isNaN(args[1]))
|
||||
throw new CommandError("argument must be an integer!");
|
||||
|
||||
const index = parseInt(args[1]);
|
||||
bot.cloop.remove(index);
|
||||
|
||||
component.push(`removed ${index} from cloops`);
|
||||
break;
|
||||
case "list":
|
||||
let listComponent = [];
|
||||
let i = 0;
|
||||
for (const cloop of bot.cloop.list) {
|
||||
listComponent.push({
|
||||
translate: "%s \u203a %s (%s)",
|
||||
color: config.colors.commands.primary,
|
||||
with: [
|
||||
{ text: `${i}`, color: config.colors.integer },
|
||||
cloop.command,
|
||||
{ text: `${cloop.interval}`, color: config.colors.integer },
|
||||
],
|
||||
});
|
||||
listComponent.push("\n");
|
||||
i++;
|
||||
}
|
||||
|
||||
listComponent.pop();
|
||||
|
||||
component.push({
|
||||
translate: "Cloops (%s):",
|
||||
color: config.colors.commands.primary,
|
||||
with: [
|
||||
{ text: `${bot.cloop.list.length}`, color: config.colors.integer },
|
||||
],
|
||||
});
|
||||
component.push("\n");
|
||||
|
||||
if (bot.cloop.list.length > 0) {
|
||||
component.push(listComponent);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new CommandError("invalid argument");
|
||||
}
|
||||
|
||||
if (source.sources.discord) {
|
||||
|
||||
} else if (source.sources.console) {
|
||||
bot.console.info(component)
|
||||
} else {
|
||||
bot.tellraw("@a", component);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = cloop
|
||||
@@ -0,0 +1,19 @@
|
||||
const CommandContext = require("../../command_util/command_context");
|
||||
const CommandTrustLevel = require('../../command_util/command_trust_level')
|
||||
const trustLevel = new CommandTrustLevel()
|
||||
|
||||
class reconnect extends CommandContext {
|
||||
constructor() {
|
||||
super("reconnect", ["end"], "reconnect the bot", trustLevel.trusted, [""], false);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
const args = context.arguments;
|
||||
const source = context.source;
|
||||
const config = context.config;
|
||||
|
||||
bot._client.end()
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = reconnect
|
||||
@@ -4,7 +4,7 @@ const trustLevel = new CommandTrustLevel()
|
||||
|
||||
class validate extends CommandContext {
|
||||
constructor() {
|
||||
super("validate", ["val"], "validate through the bot", trustLevel.trusted, [""]);
|
||||
super("validate", ["val"], "validate through the bot", trustLevel.trusted, [""], false);
|
||||
}
|
||||
execute(context) {
|
||||
const bot = context.bot;
|
||||
|
||||
+94
-185
@@ -1,6 +1,8 @@
|
||||
const loadPrismarineChat = require("prismarine-chat");
|
||||
const KaboomChatParser = require("../chat_parsers/kaboom");
|
||||
const CreayunChatParser = require("../chat_parsers/creayun");
|
||||
const ChipmunkModChatParser = require("../chat_parsers/chipmunkmod")
|
||||
const VanilaChatParser = require("../chat_parsers/vanilla")
|
||||
const convertNbtComponentToJson = require("../util/nbt_parser");
|
||||
|
||||
function tryParse(json) {
|
||||
@@ -23,224 +25,125 @@ class chat {
|
||||
if (options.mode === "savageFriends") {
|
||||
bot.chatParsers = [CreayunChatParser];
|
||||
} else {
|
||||
bot.chatParsers = [KaboomChatParser];
|
||||
bot.chatParsers = [KaboomChatParser, ChipmunkModChatParser, VanilaChatParser];
|
||||
}
|
||||
|
||||
bot.on("packet.profileless_chat", (packet) => {
|
||||
let message
|
||||
let sender
|
||||
if (bot._client.version === "1.21" || bot.options.version === "1.21.1") {
|
||||
message = convertNbtComponentToJson(null, packet.message);
|
||||
sender = convertNbtComponentToJson(null, packet.name);
|
||||
} else {
|
||||
message = tryParse(packet.message);
|
||||
sender = tryParse(packet.name);
|
||||
}
|
||||
message = tryParse(packet.message);
|
||||
sender = tryParse(packet.name);
|
||||
|
||||
if (bot.options.version === "1.21" || bot._client.version === "1.21.1") {
|
||||
switch (packet.type.registryIndex) {
|
||||
case 6:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.announcement",
|
||||
with: [sender, message],
|
||||
});
|
||||
break;
|
||||
case 5:
|
||||
bot.emit("message", message);
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", {
|
||||
switch (packet.type) {
|
||||
case 1:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [sender, message],
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [sender, message],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", [
|
||||
{
|
||||
translate: "commands.message.display.outgoing",
|
||||
with: [sender, message],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [sender, message],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [sender, message],
|
||||
});
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (packet.type) {
|
||||
case 1:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [sender, message],
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [sender, message],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", [
|
||||
{
|
||||
translate: "commands.message.display.outgoing",
|
||||
with: [sender, message],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
},
|
||||
]);
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", [message]);
|
||||
break;
|
||||
case 5:
|
||||
bot.emit("message", [
|
||||
{ translate: "chat.type.announcement", with: [sender, message] },
|
||||
]);
|
||||
break;
|
||||
}
|
||||
},
|
||||
]);
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", [message]);
|
||||
break;
|
||||
case 5:
|
||||
bot.emit("message", [
|
||||
{ translate: "chat.type.announcement", with: [sender, message] },
|
||||
]);
|
||||
break;
|
||||
}
|
||||
tryParsingMessage(message, { senderName: sender, players: bot.players, chatType: "profileless", getMessageAsPrismarine: bot.getMessageAsPrismarine })
|
||||
});
|
||||
|
||||
bot.on("packet.player_chat", (packet, data) => {
|
||||
let unsigned;
|
||||
|
||||
if (bot.options.version === "1.21" || bot.options.version === "1.21.1") {
|
||||
unsigned = convertNbtComponentToJson(null, packet.unsignedChatContent);
|
||||
} else {
|
||||
unsigned = tryParse(packet.unsignedChatContent);
|
||||
}
|
||||
unsigned = tryParse(packet.unsignedChatContent);
|
||||
|
||||
if (bot.options.version === "1.21" || bot.options.version === "1.21.1") {
|
||||
switch (packet.type.registryIndex) {
|
||||
case 6:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.announcement",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
switch (packet.type) {
|
||||
case 5:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.announcement",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", unsigned);
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.outgoing",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
case 5:
|
||||
bot.emit("message", unsigned);
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.outgoing",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
switch (packet.type) {
|
||||
case 5:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.announcement",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
case 4:
|
||||
bot.emit("message", unsigned);
|
||||
break;
|
||||
case 3:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.outgoing",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 2:
|
||||
bot.emit("message", {
|
||||
translate: "commands.message.display.incoming",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 1:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
}
|
||||
],
|
||||
color: "gray",
|
||||
italic: true,
|
||||
});
|
||||
break;
|
||||
case 1:
|
||||
bot.emit("message", {
|
||||
translate: "chat.type.emote",
|
||||
with: [
|
||||
bot.players.find((player) => player.uuid === packet.senderUuid)
|
||||
.profile.name,
|
||||
packet.plainMessage,
|
||||
],
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
||||
tryParsingMessage(unsigned, {
|
||||
senderUuid: packet.senderUuid,
|
||||
players: bot.players,
|
||||
getMessageAsPrismarine: bot.getMessageAsPrismarine,
|
||||
chatType: "player"
|
||||
});
|
||||
});
|
||||
|
||||
bot.on("packet.system_chat", (packet) => {
|
||||
let message;
|
||||
|
||||
if (bot.options.version === "1.21" || bot.options.version === "1.21.1") {
|
||||
message = convertNbtComponentToJson(null, packet.content);
|
||||
} else {
|
||||
message = tryParse(packet.content);
|
||||
}
|
||||
message = tryParse(packet.content);
|
||||
|
||||
|
||||
if (
|
||||
message.translate === "advMode.setCommand.success" &&
|
||||
config?.debug?.commandSetMessage === false
|
||||
)
|
||||
return;
|
||||
return;
|
||||
if (message.translate === "multiplayer.message_not_delivered") return;
|
||||
|
||||
if (packet.isActionBar) {
|
||||
@@ -250,14 +153,17 @@ class chat {
|
||||
if (message.translate === "advMode.notAllowed") return;
|
||||
|
||||
bot.emit("message", message);
|
||||
|
||||
bot.emit("system_chat", message)
|
||||
|
||||
tryParsingMessage(message, {
|
||||
players: bot.players,
|
||||
getMessageAsPrismarine: bot.getMessageAsPrismarine,
|
||||
chatType: "system"
|
||||
});
|
||||
});
|
||||
|
||||
function tryParsingMessage(message, data) {
|
||||
try {
|
||||
let parsed;
|
||||
|
||||
for (const parser of bot.chatParsers) {
|
||||
@@ -267,6 +173,9 @@ class chat {
|
||||
|
||||
if (!parsed) return;
|
||||
bot.emit("parsed_message", parsed);
|
||||
} catch (e) {
|
||||
console.log(e.stack)
|
||||
}
|
||||
}
|
||||
|
||||
bot.getMessageAsPrismarine = (message) => {
|
||||
|
||||
@@ -25,7 +25,7 @@ class command_core {
|
||||
|
||||
usePlacedCommandBlock: false,
|
||||
|
||||
refill() {
|
||||
chatRefill() {
|
||||
const pos = bot.core.position;
|
||||
const { start, end } = bot.core.area;
|
||||
const itemPosition = bot.core.itemPosition;
|
||||
@@ -35,10 +35,18 @@ class command_core {
|
||||
if (bot.options.mode === "savageFriends") {
|
||||
command = `minecraft:fill ${pos.x + start.x} ${pos.y + start.y} ${pos.z + start.z} ${pos.x + end.x} ${pos.y + end.y} ${pos.z + end.z} command_block`;
|
||||
} else {
|
||||
command = `minecraft:fill ${pos.x + start.x} ${pos.y + start.y} ${pos.z + start.z} ${pos.x + end.x} ${pos.y + end.y} ${pos.z + end.z} command_block{CustomName:'${JSON.stringify(config.core.name)}'}`;
|
||||
command = `minecraft:fill ${pos.x + start.x} ${pos.y + start.y} ${pos.z + start.z} ${pos.x + end.x} ${pos.y + end.y} ${pos.z + end.z} command_block{CustomName:${JSON.stringify(config.core.name)}}`;
|
||||
}
|
||||
bot.chat.command(command)
|
||||
},
|
||||
|
||||
if (config.core.itemRefill && bot.options.mode !== "savageFriends") {
|
||||
itemRefill () {
|
||||
const pos = bot.core.position;
|
||||
const { start, end } = bot.core.area;
|
||||
const itemPosition = bot.core.itemPosition;
|
||||
|
||||
command = `minecraft:fill ${pos.x + start.x} ${pos.y + start.y} ${pos.z + start.z} ${pos.x + end.x} ${pos.y + end.y} ${pos.z + end.z} command_block{CustomName:${JSON.stringify(config.core.name)}}`;
|
||||
if (bot.options.mode !== "savageFriends") {
|
||||
bot._client.write("set_creative_slot", {
|
||||
slot: 36,
|
||||
item: Item.toNotch(
|
||||
@@ -71,8 +79,6 @@ class command_core {
|
||||
} else {
|
||||
bot.core.commandBlock(command, itemPosition, 1, 5)
|
||||
}
|
||||
} else {
|
||||
bot.chat.command(`${command}`);
|
||||
}
|
||||
},
|
||||
|
||||
@@ -89,7 +95,11 @@ class command_core {
|
||||
z: Math.floor(pos.z),
|
||||
};
|
||||
|
||||
bot.core.refill();
|
||||
if (bot.options.itemRefill) {
|
||||
bot.core.itemRefill();
|
||||
} else {
|
||||
bot.core.chatRefill()
|
||||
}
|
||||
},
|
||||
|
||||
currentBlock() {
|
||||
@@ -127,8 +137,9 @@ class command_core {
|
||||
},
|
||||
|
||||
commandBlock (command, location, mode, flags) {
|
||||
if (!bot.loggedIn) return;
|
||||
bot._client.write("update_command_block", {
|
||||
command: command.substring(0, 32767),
|
||||
command: command?.substring(0, 32767),
|
||||
location: location,
|
||||
mode: mode,
|
||||
flags: flags,
|
||||
@@ -136,6 +147,7 @@ class command_core {
|
||||
},
|
||||
|
||||
run(command) {
|
||||
if (!bot.loggedIn) return;
|
||||
const location = bot.core.currentBlock();
|
||||
const itemPosition = bot.core.itemPosition;
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class command_handler {
|
||||
prefixes.map((prefix) => {
|
||||
const plainMessage = bot
|
||||
.getMessageAsPrismarine(data.contents)
|
||||
?.toMotd();
|
||||
?.toString();
|
||||
|
||||
if (!plainMessage?.startsWith(prefix)) return;
|
||||
const command = plainMessage.substring(prefix.length);
|
||||
@@ -22,6 +22,7 @@ class command_handler {
|
||||
const source = new CommandSource(
|
||||
data.sender,
|
||||
{ discord: false, console: false },
|
||||
data.chatType,
|
||||
null
|
||||
);
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ class command_loop {
|
||||
};
|
||||
this.list.push(timer);
|
||||
|
||||
bot.on("end", () => {
|
||||
/* bot.on("end", () => {
|
||||
this.clear();
|
||||
});
|
||||
|
||||
@@ -24,7 +24,7 @@ class command_loop {
|
||||
interval,
|
||||
};
|
||||
this.list.push(timer);
|
||||
});
|
||||
});*/
|
||||
},
|
||||
|
||||
remove(index) {
|
||||
|
||||
@@ -32,7 +32,6 @@ class command_manager {
|
||||
const options = context.options;
|
||||
const { MessageBuilder } = require('prismarine-chat')(bot._client.version)
|
||||
|
||||
|
||||
bot.commandManager = {
|
||||
commands: {},
|
||||
commandlist: [],
|
||||
@@ -46,9 +45,11 @@ class command_manager {
|
||||
)
|
||||
else source.sendFeedback(unknownCommand(MessageBuilder, commandName, bot))
|
||||
}
|
||||
|
||||
|
||||
const event = bot.discord.message;
|
||||
const roles = event?.member?.roles?.cache;
|
||||
// console.log(command)
|
||||
// console.log(source)
|
||||
|
||||
switch (command?.data?.trustLevel) {
|
||||
case 0:
|
||||
@@ -163,7 +164,7 @@ class command_manager {
|
||||
break
|
||||
}
|
||||
|
||||
if (source.sources.discord) {
|
||||
/* if (source.sources.discord) {
|
||||
discordClient.channels.cache
|
||||
.get("1361739286113685534")
|
||||
.send(
|
||||
@@ -175,8 +176,11 @@ class command_manager {
|
||||
.send(
|
||||
`User: ${source.player.profile.name}, Command: ${command?.data?.name}, Args: ${args.join(" ")}, Time/Date: ${new Date().toLocaleString("en-us", { TimeZone: "America/Chicago" })}, Source: Minecraft, Server: ${bot.options.host}:${bot.options.port}`,
|
||||
);
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
// if (command.playerOnly === true && source.ChatType.find((e) => e)) return;
|
||||
|
||||
return command?.execute({
|
||||
bot,
|
||||
source,
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
class command_spy {
|
||||
constructor (context) {
|
||||
const bot = context.bot
|
||||
|
||||
bot.on('system_chat', (message) => {
|
||||
try {
|
||||
const child = message.extra
|
||||
const sender = bot.players.find((e) => e?.profile?.name === message.text)?.profile?.name === message.text
|
||||
if (!child || !message.text || !message.color || !sender) return
|
||||
const command = child[1].text.substring('/'.length)
|
||||
|
||||
if (
|
||||
(
|
||||
message.color === 'yellow'
|
||||
&&
|
||||
child[0].text === ': '
|
||||
&&
|
||||
child[1].text === `/${command}`
|
||||
&&
|
||||
sender
|
||||
)
|
||||
||
|
||||
(
|
||||
message.color === 'aqua'
|
||||
&&
|
||||
child[0].text === ': '
|
||||
&&
|
||||
child[1].text === `/${command}`
|
||||
&&
|
||||
sender
|
||||
)
|
||||
) bot.emit('parsed_message', {
|
||||
sender: bot.players.find((e) => e.profile.name === message.text),
|
||||
contents: { text: command },
|
||||
type: "minecraft:chat",
|
||||
chatType: "command_spy",
|
||||
displayName: bot.players.find((e) => e.profile.name === message.text).displayName
|
||||
})
|
||||
} catch (e) {
|
||||
console.log(e.stack)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = command_spy;
|
||||
@@ -0,0 +1,7 @@
|
||||
class database {
|
||||
constructor (context) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = database
|
||||
@@ -9,12 +9,12 @@ class player_list {
|
||||
|
||||
bot.on("packet.player_info", async (packet) => {
|
||||
const actions = [];
|
||||
if (packet.action & 0b000001) actions.push(addPlayer);
|
||||
if (packet.action & 0b000010) actions.push(initializeChat);
|
||||
if (packet.action & 0b000100) actions.push(updateGamemode);
|
||||
if (packet.action & 0b001000) actions.push(updateListed);
|
||||
if (packet.action & 0b010000) actions.push(updateLatency);
|
||||
if (packet.action & 0b100000) actions.push(updateDisplayName);
|
||||
if (packet.action._value & 0b000001) actions.push(addPlayer);
|
||||
if (packet.action._value & 0b000010) actions.push(initializeChat);
|
||||
if (packet.action._value & 0b000100) actions.push(updateGamemode);
|
||||
if (packet.action._value & 0b001000) actions.push(updateListed);
|
||||
if (packet.action._value & 0b010000) actions.push(updateLatency);
|
||||
if (packet.action._value & 0b100000) actions.push(updateDisplayName);
|
||||
|
||||
for (const entry of packet.data) {
|
||||
for (const action of actions) {
|
||||
@@ -44,6 +44,7 @@ class player_list {
|
||||
});
|
||||
|
||||
function addPlayer(entry) {
|
||||
console.log
|
||||
bot.players = bot.players.filter((_entry) => _entry.uuid !== entry.uuid);
|
||||
bot.players.push({
|
||||
uuid: entry.uuid,
|
||||
@@ -59,7 +60,6 @@ class player_list {
|
||||
displayName: undefined,
|
||||
vanished: false,
|
||||
});
|
||||
// console.log(entry)
|
||||
}
|
||||
|
||||
function initializeChat(entry) {}
|
||||
@@ -90,17 +90,7 @@ class player_list {
|
||||
if (!target) return;
|
||||
|
||||
try {
|
||||
if (
|
||||
bot.options.version === "1.21" ||
|
||||
bot.options.version === "1.21.1"
|
||||
) {
|
||||
target.displayName = convertNbtComponentToJson(
|
||||
null,
|
||||
entry.displayName,
|
||||
);
|
||||
} else {
|
||||
target.displayName = JSON.parse(entry.displayName);
|
||||
}
|
||||
target.displayName = JSON.parse(entry.displayName);
|
||||
} catch {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ class registry {
|
||||
const bot = context.bot;
|
||||
bot.on("packet.login", (packet) => {
|
||||
bot.registry = createRegistry(bot._client.version);
|
||||
bot.registry.language = require("../data/language.json");
|
||||
// bot.registry.language = require("../data/language.json");
|
||||
bot.emit("registry_ready", bot.registry);
|
||||
});
|
||||
}
|
||||
|
||||
+53
-33
@@ -6,19 +6,37 @@ class selfcare {
|
||||
const bot = context.bot
|
||||
const config = context.config
|
||||
const options = context.options
|
||||
let messageSelfcare
|
||||
let loadMessageSelfcare
|
||||
|
||||
bot.selfcare = {
|
||||
permissionLevel: 2,
|
||||
entityId: undefined,
|
||||
gameMode: undefined,
|
||||
commandSpy: undefined
|
||||
commandSpy: undefined,
|
||||
prefix: undefined,
|
||||
vanished: undefined,
|
||||
mute: undefined,
|
||||
username: undefined,
|
||||
nickname: undefined,
|
||||
god: undefined,
|
||||
position_count: 0,
|
||||
|
||||
}
|
||||
|
||||
for (const file of fs.readdirSync(path.join(__dirname, '../selfcare/message'))) {
|
||||
let selfcare = [];
|
||||
|
||||
for (const file of fs.readdirSync(path.join(__dirname, '../selfcare/extras'))) {
|
||||
try {
|
||||
loadMessageSelfcare = require(path.join(__dirname, '../selfcare/message', file))
|
||||
const extrasSelfcare = require(path.join(__dirname, '../selfcare/extras', file))
|
||||
selfcare.push(extrasSelfcare)
|
||||
} catch (e) {
|
||||
console.error(e.stack)
|
||||
}
|
||||
}
|
||||
|
||||
for (const file of fs.readdirSync(path.join(__dirname, '../selfcare/essentials'))) {
|
||||
try {
|
||||
const essentialsSelfcare = require(path.join(__dirname, '../selfcare/essentials', file))
|
||||
selfcare.push(essentialsSelfcare)
|
||||
} catch (e) {
|
||||
console.error(e.stack)
|
||||
}
|
||||
@@ -27,50 +45,52 @@ class selfcare {
|
||||
for (const file of fs.readdirSync(path.join(__dirname, '../selfcare/entity'))) {
|
||||
try {
|
||||
const loadEntitySelfcare = require(path.join(__dirname, '../selfcare/entity', file))
|
||||
const entitySelfcare = new loadEntitySelfcare({ bot, config, options })
|
||||
|
||||
new loadEntitySelfcare({ bot, config, options })
|
||||
} catch (e) {
|
||||
console.error(e.stack)
|
||||
}
|
||||
} // how the fuck do i want to implement this...
|
||||
}
|
||||
|
||||
bot.on('message', (message) => {
|
||||
bot.on('system_chat', (message) => {
|
||||
const stringMessage = bot.getMessageAsPrismarine(message)?.toString()
|
||||
//new loadMessageSelfcare({ bot, options, config, stringMessage })
|
||||
|
||||
for (const file of selfcare) new file({ bot, config, options, stringMessage })
|
||||
|
||||
})
|
||||
let timer;
|
||||
bot.on('packet.login', (data) => {
|
||||
bot.selfcare.entityId = data.entityId;
|
||||
if (bot.options.version === "1.21" || bot.options.version === "1.21.1") {
|
||||
switch (data.worldState.gamemode) {
|
||||
case "survival":
|
||||
bot.selfcare.gameMode = 0;
|
||||
break;
|
||||
case "creative":
|
||||
gameMode = 1;
|
||||
break;
|
||||
case "adventure":
|
||||
bot.selfcare.gameMode = 2;
|
||||
break;
|
||||
case "spectator":
|
||||
bot.selfcare.gameMode = 3;
|
||||
break;
|
||||
default:
|
||||
bot.selfcare.gameMode = 0;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
bot.selfcare.gameMode = data.gameMode;
|
||||
}
|
||||
bot.selfcare.gameMode = data.gameMode;
|
||||
|
||||
timer = setInterval(() => {
|
||||
if (bot.selfcare.permissionLevel < 2) bot.chat.command('minecraft:op @s[type=player]')
|
||||
else if (bot.selfcare.gameMode !== 1) bot.chat.command('minecraft:gamemode creative')
|
||||
//else if (!bot.selfcare.commandSpy) bot.core.run(`commandspy ${bot.uuid} on`)
|
||||
if (bot.options.mode === "savageFriends") {
|
||||
|
||||
} else {
|
||||
if (!bot.selfcare.prefix) bot.chat.command(`extras:prefix &8[&bPrefix&8: &3${config.prefixes[0]}&8]`);
|
||||
else if (bot.selfcare.permissionLevel < 2) bot.chat.command('minecraft:op @s[type=player]')
|
||||
else if (bot.selfcare.username) bot.chat.command(`extras:username ${bot._client.username}`)
|
||||
else if (bot.selfcare.gameMode !== 1) bot.chat.command('minecraft:gamemode creative')
|
||||
else if (!bot.selfcare.commandSpy) bot.core.run(`commandspy ${bot.uuid} on`)
|
||||
else if (!bot.selfcare.vanished) bot.core.run(`essentials:vanish ${bot._client.username} on`)
|
||||
else if (!bot.selfcare.god) bot.core.run(`essentials:god ${bot._client.username} on`)
|
||||
else if (bot.selfcare.mute) bot.core.run(`essentials:mute ${bot._client.uuid}`)
|
||||
else if (bot.selfcare.nickname) bot.core.run(`essentials:nickname ${bot._client.username} off`)
|
||||
|
||||
}
|
||||
}, options.selfcareInterval)
|
||||
})
|
||||
|
||||
bot.on('end', () => {
|
||||
if (timer) clearInterval(timer)
|
||||
bot.selfcare.commandSpy = false
|
||||
bot.selfcare.prefix = false
|
||||
bot.selfcare.vanished = false
|
||||
bot.selfcare.mute = false
|
||||
bot.selfcare.username = false
|
||||
bot.selfcare.nickname = false
|
||||
bot.selfcare.god = false
|
||||
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
class icuSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot;
|
||||
const config = context.config
|
||||
const options = context.options
|
||||
|
||||
bot.on("packet.position", (packet, position) => {
|
||||
if (options.mode === "savageFriends" || options.mode === "creayun") return;
|
||||
bot.selfcare.position_count++
|
||||
setTimeout(() => {
|
||||
bot.selfcare.position_count--
|
||||
if (bot.selfcare.position_count > 4) {
|
||||
bot._client.end('anti icu')
|
||||
}
|
||||
}, 1000)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = icuSelfcare
|
||||
@@ -0,0 +1,13 @@
|
||||
class godSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot;
|
||||
const options = context.options;
|
||||
const stringMessage = context.stringMessage;
|
||||
|
||||
if (stringMessage === "God mode disabled.") bot.selfcare.god = false;
|
||||
else if (stringMessage === "God mode enabled.") bot.selfcare.god = true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = godSelfcare
|
||||
@@ -0,0 +1,13 @@
|
||||
class muteSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot;
|
||||
const options = context.options;
|
||||
const stringMessage = context.stringMessage;
|
||||
|
||||
if (stringMessage?.startsWith("You have been muted")) bot.selfcare.mute = true;
|
||||
else if (stringMessage?.startsWith("You have been unmuted")) bot.selfcare.mute = false;
|
||||
else if (stringMessage?.startsWith("Your voice has been silenced")) bot.selfcare.mute = true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = muteSelfcare
|
||||
@@ -0,0 +1,12 @@
|
||||
class nicknameSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot;
|
||||
const options = context.options;
|
||||
const stringMessage = context.stringMessage;
|
||||
|
||||
if (stringMessage === `You no longer have a nickname.`) bot.selfcare.nickname = false;
|
||||
else if (stringMessage?.startsWith('Your nickname is now ')) bot.selfcare.nickname = true;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = nicknameSelfcare
|
||||
@@ -0,0 +1,12 @@
|
||||
class vanishSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot;
|
||||
const options = context.options;
|
||||
const stringMessage = context.stringMessage;
|
||||
|
||||
if (stringMessage === `Vanish for ${bot._client.username}: enabled`) bot.selfcare.vanished = true;
|
||||
else if (stringMessage === `Vanish for ${bot._client.username}: disabled`) bot.selfcare.vanished = false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = vanishSelfcare
|
||||
@@ -2,15 +2,14 @@ class commandSpySelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot
|
||||
const stringMessage = context.stringMessage
|
||||
|
||||
if (stringMessage === "Successfully enabled CommandSpy")
|
||||
bot.selfcare.commandSpy = true;
|
||||
|
||||
if (stringMessage === "Successfully enabled CommandSpy") return bot.selfcare.commandSpy = true;
|
||||
else if (stringMessage === "Successfully enabled CommandSpy.")
|
||||
bot.selfcare.commandSpy = true;
|
||||
return bot.selfcare.commandSpy = true;
|
||||
else if (stringMessage === "Successfully disabled CommandSpy")
|
||||
bot.selfcare.commandSpy = false;
|
||||
return bot.selfcare.commandSpy = false;
|
||||
else if (stringMessage === "Successfully disabled CommandSpy.")
|
||||
bot.selfcare.commandSpy = false;
|
||||
return bot.selfcare.commandSpy = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
class prefixSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot
|
||||
const options = context.options
|
||||
const stringMessage = context.stringMessage
|
||||
const config = context.config
|
||||
|
||||
if (options.mode === "savageFriends") {
|
||||
|
||||
} else {
|
||||
if (stringMessage === `You now have the tag: &8[&bPrefix&8: &3${config.prefixes[0]}&8]` || stringMessage === "Something went wrong while saving the prefix. Please check console.") bot.selfcare.prefix = true;
|
||||
else if (stringMessage?.startsWith("You now have the tag: ") || stringMessage === "You no longer have a tag") bot.selfcare.prefix = false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = prefixSelfcare
|
||||
@@ -0,0 +1,17 @@
|
||||
class usernameSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot
|
||||
const options = context.options
|
||||
const stringMessage = context.stringMessage
|
||||
const config = context.config
|
||||
|
||||
if (stringMessage === `Successfully set your username to "${bot._client.username}"`) {
|
||||
bot.selfcare.username = false
|
||||
return
|
||||
}
|
||||
else if (stringMessage?.startsWith("Successfully set your username to ")) bot.selfcare.username = true
|
||||
else if (stringMessage === `You already have the username "${bot._client.username}"`) bot.selfcare.username = false
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = usernameSelfcare
|
||||
@@ -1,15 +0,0 @@
|
||||
class prefixSelfcare {
|
||||
constructor (context) {
|
||||
const bot = context.bot
|
||||
const options = context.options
|
||||
const stringMessage = context.stringMessage
|
||||
|
||||
if (options.mode === "savageFriends") {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = prefixSelfcare
|
||||
Reference in New Issue
Block a user