mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-01 22:55:40 -05:00
v1.3.5 build: 50, ported the bot from 1.21.1 to 1.21.8
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const net = require('net');
|
||||
const client = net.connect({ port: 25565, host: 'play.kaboom.pw', username: 'steve' }, () => {
|
||||
// 'connect' listener.
|
||||
console.log('connected to server!');
|
||||
client.write('world!\r\n');
|
||||
});
|
||||
/*client.on('data', (data) => {
|
||||
console.log(data.toString());
|
||||
client.end();
|
||||
});
|
||||
client.on('end', () => {
|
||||
console.log('disconnected from server');
|
||||
});*/
|
||||
|
||||
console.log(client)
|
||||
Generated
+145
-192
@@ -1,38 +1,37 @@
|
||||
{
|
||||
"name": "SkiBot",
|
||||
"version": "1.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"dependencies": {
|
||||
"discord.js": "^14.16.3",
|
||||
"discord.js": "^14.22.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"minecraft-data": "^3.84.0",
|
||||
"minecraft-protocol": "^1.51.0",
|
||||
"minecraft-data": "^3.98.0",
|
||||
"minecraft-protocol": "^1.62.0",
|
||||
"prismarine-chat": "^1.11.0",
|
||||
"prismarine-nbt": "^2.7.0",
|
||||
"prismarine-registry": "^1.11.0",
|
||||
"terminal-kit": "^3.1.1",
|
||||
"undici": "^7.2.0"
|
||||
"terminal-kit": "^3.1.2",
|
||||
"undici": "^7.16.0"
|
||||
}
|
||||
},
|
||||
"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"
|
||||
},
|
||||
@@ -55,32 +54,26 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/builders": {
|
||||
"version": "1.9.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.9.0.tgz",
|
||||
"integrity": "sha512-0zx8DePNVvQibh5ly5kCEei5wtPBIUbSoE9n+91Rlladz4tgtFbJ36PZMxxZrTEOQ7AHMZ/b0crT/0fCy6FTKg==",
|
||||
"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.5.0",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/util": "^1.1.1",
|
||||
"@sapphire/shapeshift": "^4.0.0",
|
||||
"discord-api-types": "0.37.97",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"fast-deep-equal": "^3.1.3",
|
||||
"ts-mixer": "^6.0.4",
|
||||
"tslib": "^2.6.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
"node": ">=16.11.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/discordjs/discord.js?sponsor"
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/builders/node_modules/discord-api-types": {
|
||||
"version": "0.37.97",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.97.tgz",
|
||||
"integrity": "sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@discordjs/collection": {
|
||||
"version": "1.5.3",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz",
|
||||
@@ -91,30 +84,24 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/formatters": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.5.0.tgz",
|
||||
"integrity": "sha512-98b3i+Y19RFq1Xke4NkVY46x8KjJQjldHUuEbCqMvp1F5Iq9HgnGpu91jOi/Ufazhty32eRsKnnzS8n4c+L93g==",
|
||||
"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.97"
|
||||
"discord-api-types": "^0.38.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
"node": ">=16.11.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/discordjs/discord.js?sponsor"
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/formatters/node_modules/discord-api-types": {
|
||||
"version": "0.37.97",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.97.tgz",
|
||||
"integrity": "sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@discordjs/rest": {
|
||||
"version": "2.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.4.0.tgz",
|
||||
"integrity": "sha512-Xb2irDqNcq+O8F0/k/NaDp7+t091p+acb51iA4bCKfIn+WFWd6HrNvcsSbMMxIR9NjcMZS6NReTKygqiQN+ntw==",
|
||||
"version": "2.6.0",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.6.0.tgz",
|
||||
"integrity": "sha512-RDYrhmpB7mTvmCKcpj+pc5k7POKszS4E2O9TYc+U+Y4iaCP+r910QdO43qmpOja8LRr1RJ0b3U+CqVsnPqzf4w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/collection": "^2.1.1",
|
||||
@@ -122,10 +109,10 @@
|
||||
"@sapphire/async-queue": "^1.5.3",
|
||||
"@sapphire/snowflake": "^3.5.3",
|
||||
"@vladfrangu/async_event_emitter": "^2.4.6",
|
||||
"discord-api-types": "0.37.97",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"magic-bytes.js": "^1.10.0",
|
||||
"tslib": "^2.6.3",
|
||||
"undici": "6.19.8"
|
||||
"undici": "6.21.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
@@ -146,16 +133,10 @@
|
||||
"url": "https://github.com/discordjs/discord.js?sponsor"
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/rest/node_modules/discord-api-types": {
|
||||
"version": "0.37.97",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.97.tgz",
|
||||
"integrity": "sha512-No1BXPcVkyVD4ZVmbNgDKaBoqgeQ+FJpzZ8wqHkfmBnTZig1FcH3iPPersiK1TUIAzgClh2IvOuVUYfcWLQAOA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"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"
|
||||
@@ -174,20 +155,20 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/ws": {
|
||||
"version": "1.1.1",
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.1.1.tgz",
|
||||
"integrity": "sha512-PZ+vLpxGCRtmr2RMkqh8Zp+BenUaJqlS6xhgWKEZcgC/vfHLEzpHtKkB0sl3nZWpwtcKk6YWy+pU3okL2I97FA==",
|
||||
"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.3.0",
|
||||
"@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.83",
|
||||
"discord-api-types": "^0.38.1",
|
||||
"tslib": "^2.6.2",
|
||||
"ws": "^8.16.0"
|
||||
"ws": "^8.17.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.11.0"
|
||||
@@ -208,12 +189,6 @@
|
||||
"url": "https://github.com/discordjs/discord.js?sponsor"
|
||||
}
|
||||
},
|
||||
"node_modules/@discordjs/ws/node_modules/discord-api-types": {
|
||||
"version": "0.37.83",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.83.tgz",
|
||||
"integrity": "sha512-urGGYeWtWNYMKnYlZnOnDHm8fVRffQs3U0SpE8RHeiuLKb/u92APS8HoQnPTFbnXmY1vVnXjXO4dOxcAn3J+DA==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@sapphire/async-queue": {
|
||||
"version": "1.5.5",
|
||||
"resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.5.tgz",
|
||||
@@ -248,12 +223,12 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "22.10.2",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.10.2.tgz",
|
||||
"integrity": "sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ==",
|
||||
"version": "24.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-24.3.1.tgz",
|
||||
"integrity": "sha512-3vXmQDXy+woz+gnrTvuvNrPzekOi+Ds0ReMxw0LzBiK3a+1k0kQn9f2NWk+lgD4rJehFUmYy2gMhJ2ZI+7YP9g==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"undici-types": "~6.20.0"
|
||||
"undici-types": "~7.10.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node-rsa": {
|
||||
@@ -266,19 +241,18 @@
|
||||
}
|
||||
},
|
||||
"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/ws": {
|
||||
"version": "8.5.13",
|
||||
"resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.13.tgz",
|
||||
"integrity": "sha512-osM/gWBTPKgHV8XkTunnegTRIsvF6owmf5w+JtAfOw472dptdm0dlGv4xCt6GwQRcC2XVOvvRE/0bAoQcL2QkA==",
|
||||
"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": "*"
|
||||
@@ -449,9 +423,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"
|
||||
@@ -472,29 +446,33 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/discord-api-types": {
|
||||
"version": "0.37.100",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.100.tgz",
|
||||
"integrity": "sha512-a8zvUI0GYYwDtScfRd/TtaNBDTXwP5DiDVX7K5OmE+DRT57gBqKnwtOC5Ol8z0mRW8KQfETIgiB8U0YZ9NXiCA==",
|
||||
"license": "MIT"
|
||||
"version": "0.38.24",
|
||||
"resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.38.24.tgz",
|
||||
"integrity": "sha512-P7/DkcFIiIoaBogStnhhcGRX7KR+gIFp0SpmwsZUIM0bgDkYMEUx+8l+t3quYc/KSgg92wvE9w/4mabO57EMug==",
|
||||
"license": "MIT",
|
||||
"workspaces": [
|
||||
"scripts/actions/documentation"
|
||||
]
|
||||
},
|
||||
"node_modules/discord.js": {
|
||||
"version": "14.16.3",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.16.3.tgz",
|
||||
"integrity": "sha512-EPCWE9OkA9DnFFNrO7Kl1WHHDYFXu3CNVFJg63bfU7hVtjZGyhShwZtSBImINQRWxWP2tgo2XI+QhdXx28r0aA==",
|
||||
"version": "14.22.1",
|
||||
"resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.22.1.tgz",
|
||||
"integrity": "sha512-3k+Kisd/v570Jr68A1kNs7qVhNehDwDJAPe4DZ2Syt+/zobf9zEcuYFvsfIaAOgCa0BiHMfOOKQY4eYINl0z7w==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^1.9.0",
|
||||
"@discordjs/builders": "^1.11.2",
|
||||
"@discordjs/collection": "1.5.3",
|
||||
"@discordjs/formatters": "^0.5.0",
|
||||
"@discordjs/rest": "^2.4.0",
|
||||
"@discordjs/formatters": "^0.6.1",
|
||||
"@discordjs/rest": "^2.6.0",
|
||||
"@discordjs/util": "^1.1.1",
|
||||
"@discordjs/ws": "1.1.1",
|
||||
"@discordjs/ws": "^1.2.3",
|
||||
"@sapphire/snowflake": "3.5.3",
|
||||
"discord-api-types": "0.37.100",
|
||||
"discord-api-types": "^0.38.16",
|
||||
"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"
|
||||
@@ -504,9 +482,9 @@
|
||||
}
|
||||
},
|
||||
"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"
|
||||
@@ -558,9 +536,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",
|
||||
@@ -609,15 +587,6 @@
|
||||
"integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/jose": {
|
||||
"version": "4.15.9",
|
||||
"resolved": "https://registry.npmjs.org/jose/-/jose-4.15.9.tgz",
|
||||
"integrity": "sha512-1vUQX+IdDMVPj4k8kOxgUqlcK518yluMuGZwqlr44FS1ppZB/5GWh4rZG89erpOBOJjU/OBsnCVFfapsRz6nEA==",
|
||||
"license": "MIT",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/panva"
|
||||
}
|
||||
},
|
||||
"node_modules/jpeg-js": {
|
||||
"version": "0.4.4",
|
||||
"resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz",
|
||||
@@ -665,12 +634,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"
|
||||
}
|
||||
@@ -700,12 +669,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==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/lodash.includes": {
|
||||
"version": "4.3.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz",
|
||||
@@ -773,15 +736,15 @@
|
||||
"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/minecraft-data": {
|
||||
"version": "3.84.0",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.84.0.tgz",
|
||||
"integrity": "sha512-UbHHsFHP3jxt3YcmTfng8sB6oaNkahowxN37iK0+l4CFHOx8ZF+0yxTDLl2N+wzmUCYccBXBFN8PNt36uzLt0g==",
|
||||
"version": "3.98.0",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-data/-/minecraft-data-3.98.0.tgz",
|
||||
"integrity": "sha512-JAPqJ/TZoxMUlAPPdWUh1v5wdqvYGFSZ4rW9bUtmaKBkGpomDSjw4V02ocBqbxKJvcTtmc5nM/LfN9/0DDqHrQ==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-folder-path": {
|
||||
@@ -791,9 +754,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/minecraft-protocol": {
|
||||
"version": "1.51.0",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.51.0.tgz",
|
||||
"integrity": "sha512-ACvquP6fI8TdPXfPNNGTTi9v12WW6LS4k2KmmUBSmNncM0KnUwywqTT6YQIfCff6dUMd9DZB1oaNZfEDto+QQw==",
|
||||
"version": "1.62.0",
|
||||
"resolved": "https://registry.npmjs.org/minecraft-protocol/-/minecraft-protocol-1.62.0.tgz",
|
||||
"integrity": "sha512-+Rm7DdwgDiiq5ASXLNixs6TA7tsNn8zJAlhmOh0ccfuMYnlr/5+FliKacf87ZO6MPs5p/mJitIAwONbfqiX2+A==",
|
||||
"license": "BSD-3-Clause",
|
||||
"dependencies": {
|
||||
"@types/node-rsa": "^1.1.4",
|
||||
@@ -802,7 +765,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",
|
||||
@@ -818,7 +780,7 @@
|
||||
"yggdrasil": "^1.4.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=14"
|
||||
"node": ">=22"
|
||||
}
|
||||
},
|
||||
"node_modules/mojangson": {
|
||||
@@ -946,16 +908,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prismarine-auth": {
|
||||
"version": "2.5.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-auth/-/prismarine-auth-2.5.0.tgz",
|
||||
"integrity": "sha512-CRv/pL6d/T+4cdjWS223PXG+ygHbz40Kef04L59SLMT+axNdAQro23eZZhgiIIu6u7rlvJcZYlIY93gFNtKxXA==",
|
||||
"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",
|
||||
"@xboxreplay/xboxlive-auth": "^3.3.3",
|
||||
"debug": "^4.3.3",
|
||||
"jose": "^4.1.4",
|
||||
"node-fetch": "^2.6.1",
|
||||
"smart-buffer": "^4.1.0",
|
||||
"uuid-1345": "^1.0.2"
|
||||
}
|
||||
@@ -971,9 +931,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/prismarine-block": {
|
||||
"version": "1.21.0",
|
||||
"resolved": "https://registry.npmjs.org/prismarine-block/-/prismarine-block-1.21.0.tgz",
|
||||
"integrity": "sha512-Um7zRIMHKbtpHYq+bSibc+LgFPqhHCnJgy5DeUYGG1VPLptrHjgAwvzb9bztzpzz4auziZIX+325CCWSDjIv+Q==",
|
||||
"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",
|
||||
@@ -996,9 +956,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",
|
||||
@@ -1045,12 +1005,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"
|
||||
@@ -1100,9 +1059,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/readable-stream": {
|
||||
"version": "4.5.2",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz",
|
||||
"integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==",
|
||||
"version": "4.7.0",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.7.0.tgz",
|
||||
"integrity": "sha512-oIGGmcpTLwPga8Bn6/Z75SVaH1z5dUut2ibSyAMVhmUggWpmDn2dapB0n7f8nwaSiRtepAsfJyfXIO5DCVAODg==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"abort-controller": "^3.0.0",
|
||||
@@ -1125,15 +1084,29 @@
|
||||
}
|
||||
},
|
||||
"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/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"
|
||||
@@ -1149,9 +1122,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/seventh": {
|
||||
"version": "0.9.2",
|
||||
"resolved": "https://registry.npmjs.org/seventh/-/seventh-0.9.2.tgz",
|
||||
"integrity": "sha512-C+dnbBXIEycnrN6/CpFt/Rt8ccMzAX3wbwJU61RTfC8lYPMzSkKkAVWnUEMTZDHdvtlrTupZeCUK4G+uP4TmRQ==",
|
||||
"version": "0.9.4",
|
||||
"resolved": "https://registry.npmjs.org/seventh/-/seventh-0.9.4.tgz",
|
||||
"integrity": "sha512-O85mosi4sOfxG+slvqy0j7zLuFD4ylUgEMt7Pvt9Q/wnwNwG/6MNnHKzV9JkAoPoPM26t/DLFn17p7o7u5kIBA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"setimmediate": "^1.0.5"
|
||||
@@ -1179,39 +1152,19 @@
|
||||
"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/string-kit": {
|
||||
"version": "0.18.3",
|
||||
"resolved": "https://registry.npmjs.org/string-kit/-/string-kit-0.18.3.tgz",
|
||||
"integrity": "sha512-G8cBS7wxxHhwQrKU0Y8SjZJRtCzZ61bMmMCO1bWm6N6y2obT0koGK8uWYloMOaVPPr8zk7Ic995uEd4Jw504AQ==",
|
||||
"version": "0.19.3",
|
||||
"resolved": "https://registry.npmjs.org/string-kit/-/string-kit-0.19.3.tgz",
|
||||
"integrity": "sha512-94p913R6+Ea6656A39bqJeHgt64HM9RSq36oc0F8N8Mz76g5+cLaqEwkouqguEDrJ4rhVQpS+tKz214FdtMoqA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=14.15.0"
|
||||
}
|
||||
},
|
||||
"node_modules/terminal-kit": {
|
||||
"version": "3.1.1",
|
||||
"resolved": "https://registry.npmjs.org/terminal-kit/-/terminal-kit-3.1.1.tgz",
|
||||
"integrity": "sha512-R+R47zBQ14Ax2NZCLeuVl2GwonDwQN4iAsjQZICW8gMzaV+VIJMvL4qhUQtzDOhENADyNPQvY1Vz5G0bHHkLEA==",
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/terminal-kit/-/terminal-kit-3.1.2.tgz",
|
||||
"integrity": "sha512-ro2FyU4A+NwA74DLTYTnoCFYuFpgV1aM07IS6MPrJeajoI2hwF44EdUqjoTmKEl6srYDWtbVkc/b1C16iUnxFQ==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@cronvel/get-pixels": "^3.4.1",
|
||||
@@ -1220,7 +1173,7 @@
|
||||
"ndarray": "^1.0.19",
|
||||
"nextgen-events": "^1.5.3",
|
||||
"seventh": "^0.9.2",
|
||||
"string-kit": "^0.18.1",
|
||||
"string-kit": "^0.19.0",
|
||||
"tree-kit": "^0.8.7"
|
||||
},
|
||||
"engines": {
|
||||
@@ -1234,9 +1187,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/tree-kit": {
|
||||
"version": "0.8.7",
|
||||
"resolved": "https://registry.npmjs.org/tree-kit/-/tree-kit-0.8.7.tgz",
|
||||
"integrity": "sha512-BA/cp8KBvbBDkunxIuoBqzz3pYHL7J8QdzbKohK09urOpHFYqEe/xWGKkECEQG+LvfREd1GNqH3643GYFX8wSQ==",
|
||||
"version": "0.8.8",
|
||||
"resolved": "https://registry.npmjs.org/tree-kit/-/tree-kit-0.8.8.tgz",
|
||||
"integrity": "sha512-L7zwpXp0/Nha6mljVcVOnhhxuCkFRWmt26wza3TKnyMBewid4F2vyiVdcSsw41ZoG1Wj+3lM48Er9lhttbxfLA==",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=16.13.0"
|
||||
@@ -1255,18 +1208,18 @@
|
||||
"license": "0BSD"
|
||||
},
|
||||
"node_modules/undici": {
|
||||
"version": "7.2.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.2.0.tgz",
|
||||
"integrity": "sha512-klt+0S55GBViA9nsq48/NSCo4YX5mjydjypxD7UmHh/brMu8h/Mhd/F7qAeoH2NOO8SDTk6kjnTFc4WpzmfYpQ==",
|
||||
"version": "7.16.0",
|
||||
"resolved": "https://registry.npmjs.org/undici/-/undici-7.16.0.tgz",
|
||||
"integrity": "sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==",
|
||||
"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/uniq": {
|
||||
@@ -1319,9 +1272,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"
|
||||
|
||||
+5
-5
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"discord.js": "^14.16.3",
|
||||
"discord.js": "^14.22.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"minecraft-data": "^3.84.0",
|
||||
"minecraft-protocol": "^1.51.0",
|
||||
"minecraft-data": "^3.98.0",
|
||||
"minecraft-protocol": "^1.62.0",
|
||||
"prismarine-chat": "^1.11.0",
|
||||
"prismarine-nbt": "^2.7.0",
|
||||
"prismarine-registry": "^1.11.0",
|
||||
"terminal-kit": "^3.1.1",
|
||||
"undici": "^7.2.0"
|
||||
"terminal-kit": "^3.1.2",
|
||||
"undici": "^7.16.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
const mc = require('minecraft-protocol')
|
||||
|
||||
const client = mc.createClient({
|
||||
host: "kaboom.pw",
|
||||
username: "among",
|
||||
version: "1.20.2"
|
||||
})
|
||||
|
||||
client.on('login', (data) => {
|
||||
// console.log(client.write)
|
||||
setInterval(() => {
|
||||
client.write('set_creative_slot', {
|
||||
slot: 1,
|
||||
item: {
|
||||
|
||||
present: true,
|
||||
itemId: 1,
|
||||
itemCount: 64
|
||||
}
|
||||
})
|
||||
}, 30)
|
||||
})
|
||||
+1
-1
@@ -63,7 +63,7 @@ function createBot(context) {
|
||||
});
|
||||
|
||||
process.on("uncaughtException", (e) => {
|
||||
// console?.warn(e.stack)
|
||||
console?.warn(e.stack)
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
//const CommandError = require('../util/command_error');
|
||||
|
||||
module.exports = {
|
||||
data: {
|
||||
name: "cloop",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
const { request } = require('undici');
|
||||
const { execSync } = require('child_process');
|
||||
const { buildstring } = require('../data/info.json');
|
||||
|
||||
module.exports = {
|
||||
data: {
|
||||
name: "info",
|
||||
@@ -34,11 +36,11 @@ module.exports = {
|
||||
with: [
|
||||
{ text: "Ski", color: "aqua" },
|
||||
{ text: "Bot", color: "blue" },
|
||||
{ text: `${require('../../package-lock.json').version}`, color: "blue" },
|
||||
{ text: `${buildstring.version}`, color: "blue" },
|
||||
{ text: "Build", color: "dark_blue" },
|
||||
{ text: `${execSync('git rev-list --count --all').toString().replaceAll('\n','')}`, color: "blue" },
|
||||
{ text: `${buildstring.build}`, color: "blue" },
|
||||
{ text: "Commit", color: "dark_blue" },
|
||||
{ text: `${execSync("git rev-parse HEAD").toString().substring(0, 10)}`, color: "blue" },
|
||||
{ text: `${execSync("git rev-parse HEAD").toString().substring(0, 10).replaceAll('\n', '')}`, color: "blue" },
|
||||
{ text: "FNF", color: "dark_blue" },
|
||||
{ text: "Boyfriend", color: "dark_aqua" },
|
||||
{ text: "Bot", color: "blue" },
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"buildstring": {
|
||||
"version": "1.3.5",
|
||||
"build": "50"
|
||||
}
|
||||
}
|
||||
+66
-209
@@ -1,4 +1,28 @@
|
||||
const convertNbtComponentToJson = require('../util/nbt_parser')
|
||||
/*
|
||||
please note that the code here for 1.21.8
|
||||
was ported from the FNFBoyfriendBot Reignite 1.21.8 port
|
||||
and had SkiBot's console format added to it
|
||||
*/
|
||||
|
||||
function parse (chatTypes, type, sender, target, message) {
|
||||
const chatType = chatTypes[type]
|
||||
const parsed = convertNbtComponentToJson(null, chatType.value.value.chat)
|
||||
const json = { translate: parsed.translation_key, with: [] }
|
||||
|
||||
for (const parameter of parsed.parameters) {
|
||||
|
||||
switch (parameter) {
|
||||
case "sender": json.with.push(sender)
|
||||
break;
|
||||
case "target": json.with.push(target)
|
||||
case "content": json.with.push(message)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return json
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
data: {
|
||||
@@ -11,232 +35,65 @@ module.exports = {
|
||||
const bot = context.bot;
|
||||
const config = context.config;
|
||||
|
||||
bot.on('packet.player_chat', (data) => {
|
||||
const unsigned = convertNbtComponentToJson(null, data.unsignedChatContent)
|
||||
try {
|
||||
switch (data.type.registryIndex) {
|
||||
case 4:
|
||||
bot.emit('playerChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Player Chat', color: 'dark_purple' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: data.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "commands.message.display.outgoing",
|
||||
with: [
|
||||
data.networkName.insertion,
|
||||
data.plainMessage
|
||||
],
|
||||
color: "gray",
|
||||
italic: true
|
||||
}
|
||||
])
|
||||
break
|
||||
case 3:
|
||||
bot.emit('playerChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Player Chat', color: 'dark_purple' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: data.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "commands.message.display.incoming",
|
||||
with: [
|
||||
data.networkName.insertion,
|
||||
data.plainMessage
|
||||
],
|
||||
color: "gray",
|
||||
italic: true
|
||||
}
|
||||
])
|
||||
break
|
||||
case 5:
|
||||
bot.emit('playerChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Player Chat', color: 'dark_purple' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: data.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
unsigned
|
||||
])
|
||||
break;
|
||||
case 6:
|
||||
bot.emit('playerChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Player Chat', color: 'dark_purple' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: data.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "chat.type.announcement",
|
||||
with: [
|
||||
data.networkName.insertion,
|
||||
data.plainMessage
|
||||
]
|
||||
}
|
||||
]);
|
||||
break;
|
||||
default:
|
||||
console.warn('invalid chat type');
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e.stack);
|
||||
}
|
||||
bot.on('packet.registry_data', (packet) => {
|
||||
if (packet.id !== 'minecraft:chat_type') return // taken from FNFBoyfriendBot Reignite 1.21.8 port
|
||||
chatTypes = packet.entries
|
||||
})
|
||||
|
||||
bot.on('packet.player_chat', (packet) => {
|
||||
const unsigned = convertNbtComponentToJson(null, packet.unsignedChatContent);
|
||||
bot.emit('message', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Player Chat', color: 'dark_purple' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.chatType, color: 'gold' },
|
||||
],
|
||||
},
|
||||
unsigned
|
||||
])
|
||||
});
|
||||
|
||||
bot.on('packet.profileless_chat', (packet) => {
|
||||
const message = convertNbtComponentToJson(null, packet.message)
|
||||
const sender = convertNbtComponentToJson(null, packet.name)
|
||||
try {
|
||||
switch (packet.type.registryIndex) {
|
||||
case 2:
|
||||
bot?.emit('profilelessChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "chat.type.emote",
|
||||
with: [
|
||||
sender,
|
||||
message
|
||||
]
|
||||
}
|
||||
])
|
||||
break
|
||||
case 3:
|
||||
bot.emit('profilelessChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "commands.message.display.incoming",
|
||||
with: [
|
||||
sender,
|
||||
message
|
||||
],
|
||||
color: "gray",
|
||||
italic: true
|
||||
}
|
||||
])
|
||||
break
|
||||
case 4:
|
||||
bot.emit('profilelessChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: "commands.message.display.outgoing",
|
||||
with: [
|
||||
sender,
|
||||
message
|
||||
],
|
||||
color: "gray",
|
||||
italic: true
|
||||
}
|
||||
])
|
||||
break
|
||||
case 5:
|
||||
bot.emit('profilelessChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
message
|
||||
])
|
||||
break
|
||||
case 6:
|
||||
bot.emit('profilelessChat', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.registryIndex, color: 'gold' },
|
||||
],
|
||||
},
|
||||
{ translate: 'chat.type.announcement',
|
||||
with: [
|
||||
sender,
|
||||
message
|
||||
]
|
||||
}
|
||||
])
|
||||
break
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e.stack)
|
||||
}
|
||||
const sender = convertNbtComponentToJson(null, packet.name);
|
||||
const message = convertNbtComponentToJson(null, packet.message);
|
||||
const target = convertNbtComponentToJson(null, packet.target)
|
||||
const type = packet.type.chatType;
|
||||
const parsed = parse(chatTypes, type, sender, target, message)
|
||||
|
||||
bot.emit('message', [
|
||||
{
|
||||
translate: "[%s %s %s%s %s] ",
|
||||
color: "dark_gray",
|
||||
with: [
|
||||
{ text: 'Profileless Chat', color: 'dark_aqua' },
|
||||
{ text: '|' },
|
||||
{ text: 'Packet Type', color: "aqua" },
|
||||
{ text: ':' },
|
||||
{ text: packet.type.chatType, color: 'gold' },
|
||||
],
|
||||
},
|
||||
parsed
|
||||
])
|
||||
});
|
||||
|
||||
bot.on('packet.system_chat', packet => {
|
||||
try {
|
||||
// console.log(packet)
|
||||
const message = convertNbtComponentToJson(null, packet.content)
|
||||
|
||||
if (message.translate === 'advMode.setCommand.success') return // Ignores command set message
|
||||
|
||||
if (message.translate === 'multiplayer.message_not_delivered') return;
|
||||
|
||||
// bot.emit('system_chat', { message, actionbar: packet.isActionBar })
|
||||
|
||||
if (packet.isActionBar) {
|
||||
return
|
||||
}
|
||||
|
||||
bot.emit('systemChat', [
|
||||
bot.emit('message', [
|
||||
{
|
||||
translate: "[%s] ",
|
||||
color: "dark_gray",
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = {
|
||||
const { start, end } = bot.core.area
|
||||
|
||||
if (!pos) return
|
||||
const 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} repeating_command_block{CustomName:'${JSON.stringify(config.core.name)}'}`
|
||||
const 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} repeating_command_block{CustomName:${JSON.stringify(config.core.name)}}`
|
||||
bot.chat(`${command}`)
|
||||
},
|
||||
|
||||
|
||||
@@ -58,17 +58,5 @@ module.exports = {
|
||||
refreshLine(`${fromNotch("§8[§4error§8]§r")?.toAnsi()} ${fromNotch(error)?.toAnsi(require('../data/language.json'))}`)
|
||||
}
|
||||
}
|
||||
|
||||
/* bot.on('playerChat', (message) => {
|
||||
bot.console.log(message);
|
||||
});
|
||||
|
||||
bot.on('profilelessChat', (message) => {
|
||||
bot.console.log(message);
|
||||
});
|
||||
|
||||
bot.on('systemChat', (message) => {
|
||||
bot.console.log(message);
|
||||
});*/
|
||||
}
|
||||
}
|
||||
|
||||
+3
-21
@@ -7,28 +7,10 @@ module.exports = {
|
||||
},
|
||||
inject (context) {
|
||||
const bot = context.bot;
|
||||
bot.on('playerChat', (message) => {
|
||||
bot.console.log(message);
|
||||
//console.log(message);
|
||||
});
|
||||
|
||||
bot.on('profilelessChat', (message) => {
|
||||
bot.console.log(message);
|
||||
// console.log(message);
|
||||
});
|
||||
|
||||
bot.on('systemChat', (message) => {
|
||||
bot.console.log(message);
|
||||
// console.log(JSON.stringify(message));
|
||||
});
|
||||
|
||||
bot.on('actionBar', (message) => {
|
||||
// console.log(message);
|
||||
});
|
||||
|
||||
/* bot.on('titleBar', (message) => {
|
||||
console.log(message);
|
||||
});*/
|
||||
bot.on('message', (message) => {
|
||||
bot.console.log(message)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+8
-11
@@ -21,8 +21,7 @@ module.exports = {
|
||||
let vanish = false;
|
||||
let nick = false;
|
||||
let username = false;
|
||||
|
||||
|
||||
|
||||
bot.on("system_chat_selfcare", (message) => {
|
||||
try {
|
||||
const parsedMessage = fromNotch(message)?.toMotd();
|
||||
@@ -61,16 +60,14 @@ module.exports = {
|
||||
permission = data.entityStatus - 24
|
||||
});
|
||||
|
||||
bot.on('packet.game_state_change', (data) => {
|
||||
if (data.reason !== 3) return; // Reason 3 = Change Game Mode
|
||||
// if (data.reason !== 4) return;
|
||||
gameMode = data.gameMode;
|
||||
bot.on('packet.game_state_change', (packet) => {
|
||||
if (packet.reason === 3 || packet.reason === "change_game_mode") {
|
||||
gameMode = packet.gameMode;
|
||||
} if (packet.reason === 4 || packet.reason === "win_game") {
|
||||
bot._client.write('client_command', { action: 0 })
|
||||
}
|
||||
});
|
||||
|
||||
bot.on('packet.game_state_change', (data) => {
|
||||
if (data.reason !== 4) return;
|
||||
clientLock = data.gameMode;
|
||||
})
|
||||
|
||||
/* bot.on("packet.position", (packet, position) => {
|
||||
if (!config.selfcare.icu || bot.server.mode === "savageFriends") return;
|
||||
@@ -125,7 +122,7 @@ module.exports = {
|
||||
|
||||
else if (gameMode !== 4) bot._client.write("client_command", { actionId: 0 });
|
||||
}
|
||||
}, 300);
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
bot.on('end', () => {
|
||||
|
||||
+56
-41
@@ -1,44 +1,59 @@
|
||||
const BOOLEAN_TYPES = ['interpret', 'bold', 'italic', 'underlined', 'strikethrough', 'obfuscated']
|
||||
function convertNbtComponentToJson (key, tag) {
|
||||
let chatTypes
|
||||
if (!tag) {
|
||||
return null
|
||||
} else if (tag.type === 'compound') {
|
||||
const object = {}
|
||||
const BOOLEAN_TYPES = [
|
||||
"interpret",
|
||||
"bold",
|
||||
"italic",
|
||||
"underlined",
|
||||
"strikethrough",
|
||||
"obfuscated",
|
||||
"float"
|
||||
];
|
||||
function convertNbtComponentToJson(key, tag) {
|
||||
let chatTypes;
|
||||
if (!tag) {
|
||||
return null;
|
||||
} else if (tag.type === "compound") {
|
||||
const object = {};
|
||||
|
||||
for (const key of Object.keys(tag.value)) {
|
||||
object[key === '' ? 'text' : key] = convertNbtComponentToJson(key, tag.value[key])
|
||||
}
|
||||
|
||||
return object
|
||||
} else if (tag.type === 'list') {
|
||||
const array = []
|
||||
|
||||
for (const item of tag.value.value) {
|
||||
array.push(convertNbtComponentToJson(null, { type: tag.value.type, value: item }))
|
||||
}
|
||||
|
||||
return array
|
||||
} else if (tag.type === 'byte') {
|
||||
if (key && BOOLEAN_TYPES.includes(key)) return tag.value !== 0
|
||||
|
||||
return tag.value
|
||||
} else if (tag.type === 'int') {
|
||||
return tag.value
|
||||
} else if (tag.type === 'string') {
|
||||
return tag.value
|
||||
} else if (tag.type === 'intArray') {
|
||||
const array = []
|
||||
|
||||
for (const value of tag.value) {
|
||||
array.push(value)
|
||||
}
|
||||
|
||||
return array
|
||||
} else {
|
||||
console.log('Failed to parse NBT component type ' + tag.type)
|
||||
|
||||
return { text: '' }
|
||||
for (const key of Object.keys(tag.value)) {
|
||||
object[key === "" ? "text" : key] = convertNbtComponentToJson(
|
||||
key,
|
||||
tag.value[key],
|
||||
);
|
||||
}
|
||||
|
||||
return object;
|
||||
} else if (tag.type === "list") {
|
||||
const array = [];
|
||||
|
||||
for (const item of tag.value.value) {
|
||||
array.push(
|
||||
convertNbtComponentToJson(null, { type: tag.value.type, value: item }),
|
||||
);
|
||||
}
|
||||
|
||||
return array;
|
||||
} else if (tag.type === "byte") {
|
||||
if (key && BOOLEAN_TYPES.includes(key)) return tag.value !== 0;
|
||||
|
||||
return tag.value;
|
||||
} else if (tag.type === "int") {
|
||||
return tag.value;
|
||||
} else if (tag.type === "string") {
|
||||
return tag.value;
|
||||
} else if (tag.type === "float") {
|
||||
return tag.value
|
||||
} else if (tag.type === "intArray") {
|
||||
const array = [];
|
||||
|
||||
for (const value of tag.value) {
|
||||
array.push(value);
|
||||
}
|
||||
|
||||
return array;
|
||||
} else {
|
||||
console.log("Failed to parse NBT component type " + tag.type);
|
||||
|
||||
return { text: "" };
|
||||
}
|
||||
module.exports = convertNbtComponentToJson
|
||||
}
|
||||
module.exports = convertNbtComponentToJson;
|
||||
|
||||
Reference in New Issue
Block a user