hyflayer
v3.1.1
Published
A mineflayer plugin to handle chat on the Hypixel server.
Downloads
3
Maintainers
Readme
Hyflayer
A mineflayer plugin to handle chat on the Hypixel server.
Install
npm i hyflayer
# or
yarn add hyflayer
Usage
const mineflayer = require('mineflayer')
const hyflayer = require('hyflayer')
/** @type {import('hyflayer').HyflayerBot} */
const bot = mineflayer.createBot({...})
bot.loadPlugin(hyflayer)
Example
const mineflayer = require('mineflayer')
const hyflayer = require('hyflayer')
/** @type {import('hyflayer').HyflayerBot} */
const bot = mineflayer.createBot()
bot.loadPlugin(hyflayer)
bot.on('partyChatMessage', (message, { username, hypixelRank }) => {
console.log(hypixelRank ?? '[No Rank]', username + ':', message)
})
bot.on('spawn', () => {
bot.sendToGuild('Hi!')
})
Roadmap
- [ ] Add better testing, possibly with something like Jest
- [ ] Add support for DM messages
- [ ] Add a delay between sending split messages to stop
You are sending commands too quickly, please slow down.
License
Copyright © 2021 Lily Smart.
This project is ISC licensed.