3.1.1 • Published 3 years ago

hyflayer v3.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Hyflayer

Version License: ISC CodeFactor

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.

3.1.1

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago