1.0.28 • Published 4 years ago
simpler-minecraft-bot v1.0.28
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
4 years ago
1.0.27
4 years ago
1.0.26
4 years ago
1.0.25
4 years ago
1.0.24
4 years ago
1.0.23
4 years ago
1.0.22
4 years ago
1.0.21
4 years ago
1.0.20
4 years ago
1.0.19
4 years ago
1.0.18
4 years ago
1.0.17
4 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.8
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.0
4 years ago