mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-12-02 23:25:39 -05:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
const createRegistry = require("prismarine-registry");
|
|
|
|
class registry {
|
|
constructor(context) {
|
|
const bot = context.bot;
|
|
bot.on("packet.login", (packet) => {
|
|
bot.registry = createRegistry(bot._client.version);
|
|
bot.registry.language = require("../data/language.json");
|
|
bot.emit("registry_ready", bot.registry);
|
|
});
|
|
}
|
|
}
|
|
module.exports = registry;
|