Update index.js

This commit is contained in:
m_c_player 2024-10-09 23:05:01 -04:00
parent 9cb4248a87
commit a3a2fd4b37

View file

@ -1,53 +1,53 @@
// declarations
const wiki = require("wikipedia");
const { request } = require("undici");
const core = require("./core");
const { parseFormatCodes } = require("./pcc");
const config = require("./conf");
const mc = require('minecraft-protocol');
const prefixes = ['radium:', 'r!', 'radium!', 'r/', 'radium/', '⁄€‹›fifl‡°·‚—±Œ„´‰ˇÁ¨ˆØ∏”’»ÅÍÎÏ˝ÓÔÒÚƸ˛Ç◊ı˜Â¯˘¿¡™£¢∞¶•ªº–≠œ∑´®†¥¨ˆøπ“‘«åß∂ƒ©˙∆˚¬…æΩ≈ç√∫˜µ≤≥÷'.split('')].flat();
const wiki = require("wikipedia");
const { request } = require("undici");
const core = require("./core");
const { parseFormatCodes } = require("./pcc");
const config = require("./conf");
const mc = require('minecraft-protocol');
const prefixes = ['radium:', 'r!', 'radium!', 'r/', 'radium/', '⁄€‹›fifl‡°·‚—±Œ„´‰ˇÁ¨ˆØ∏”’»ÅÍÎÏ˝ÓÔÒÚƸ˛Ç◊ı˜Â¯˘¿¡™£¢∞¶•ªº–≠œ∑´®†¥¨ˆøπ“‘«åß∂ƒ©˙∆˚¬…æΩ≈ç√∫˜µ≤≥÷'.split('')].flat();
// random name function
function random(length) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
let counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
};
function random(length) {
let result = '';
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
let counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
};
// bot creation
var bots = []
var client = mc.createClient
(
{
host: "chipmunk.land",
port: 25565,
username: "§§§§§§§§§§§§§§§§",
version: "1.20"
}
);
var bots = [];
var client = mc.createClient
(
{
host: "chipmunk.land",
port: 25565,
username: "§§§§§§§§§§§§§§§§",
version: "1.20"
}
);
// add core
client.on("login", async () => {
core.injectTo(client)
setInterval(() => {
client.cmdCore.refillCmdCore()
}, 60000);
client.chat(`/extras:prefix &c[&6Prefix: ${prefixes[0]}&c]`)
await sleep(150);
client.chat(`/essentials:nickname &6RadiumBot`)
await sleep(150);
client.chat(`/commandspy:commandspy on`)
});
client.on("login", async () => {
core.injectTo(client);
setInterval(() => {
client.cmdCore.refillCmdCore();
}, 60000);
client.chat(`/extras:prefix &c[&6Prefix: ${prefixes[0]}&c]`);
await sleep(150);
client.chat(`/essentials:nickname &6RadiumBot`);
await sleep(150);
client.chat(`/commandspy:commandspy on`);
});
// sleep function
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// chat logging
const registry = require('prismarine-registry')('1.16')