add generate eagler username to vm context

This commit is contained in:
ChomeNS 2022-08-15 20:17:18 +07:00
parent 1aefc00be5
commit 72e2d277c1

View file

@ -8,6 +8,7 @@ const mc = require('minecraft-protocol');
const crypto = require('crypto'); const crypto = require('crypto');
const colorConvert = require('color-convert'); const colorConvert = require('color-convert');
const chatMessage = require('prismarine-chat')('1.18.2'); const chatMessage = require('prismarine-chat')('1.18.2');
const generateEaglerUsername = require('./util/generateEaglerUsername')
const {EventEmitter} = require('events'); const {EventEmitter} = require('events');
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
@ -245,6 +246,7 @@ function main() {
if (typeof message!=='string') throw new SyntaxError('message must be a string'); if (typeof message!=='string') throw new SyntaxError('message must be a string');
bot.bruhifyText = message.substring(0, 1000); bot.bruhifyText = message.substring(0, 1000);
}, },
generateEaglerUsername: generateEaglerUsername,
}, },
// require: { // require: {
// mock: { // mock: {