add more stuff to sandbox

This commit is contained in:
Chayapak 2023-07-02 11:51:22 +07:00
parent 47dbf89b46
commit 7e58344c8d
2 changed files with 10 additions and 1 deletions

View file

@ -4,6 +4,9 @@ const util = require('util')
const { stylize } = require('./colors')
const randomstring = require('randomstring')
const ChatMessage = require('prismarine-chat')('1.20.1')
const mc = require('minecraft-protocol')
const moment = require('moment-timezone')
const crypto = require('crypto')
const BRIDGE_PREFIX = 'function:'
@ -28,7 +31,10 @@ io.on('connection', (socket) => {
socket.emit(BRIDGE_PREFIX + 'core', command)
},
randomstring,
ChatMessage
ChatMessage,
mc,
moment,
crypto
}
})
}

View file

@ -10,6 +10,9 @@
"author": "",
"license": "ISC",
"dependencies": {
"minecraft-protocol": "^1.43.1",
"moment": "^2.29.4",
"moment-timezone": "^0.5.43",
"prismarine-chat": "^1.8.0",
"randomstring": "^1.3.0",
"socket.io": "^4.7.1",