1.0.28 • Published 3 years ago

simpler-minecraft-bot v1.0.28

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

Simpler mineflyer bot

api references

Bot(options)

options : Object

properties:

  • name(required): name of the bot
  • password: password for the bot login (not needed on cracked servers)
  • host(required): hostname or ip of server
  • port: server port
  • onspawn: callback function that runs when bot spawns
  • onmessage: callback function that runs when anyone messages in global chat
  • onend: callback function that runs when bot leaves the server

example:

first install simpler-minecraft-bot by

npm i simpler-minecraft-bot
const Bot = require('simpler-minecraft-bot')

const mybot = Bot({
    name: 'rbot',
    host: 'abc.aternos.me',
    port: '25555',
    onspawn: () => console.log('bot has spawned')
    onmessage: (username, message) => console.log(username+" messaged: "+message)
    onend: (reason) => console.log('bot left server due to:'+reason)
})
1.0.28

3 years ago

1.0.27

3 years ago

1.0.26

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.0

3 years ago