Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mineflayer = require('mineflayer');
- var bot = mineflayer.createBot({
- host: "play.kaboom.pw",
- port: 23950,
- version: 1.12,
- keepAlive: true,
- username: "BotNumberTwo",
- checkTimeoutInterval: 15*1000,
- chatLengthLimit: 100
- });
- //chat
- bot.on('message', function(message) {
- msg = message.toString();
- console.log(msg);
- });
- //to login and register
- bot.on('login', function() {
- console.log("Bot activated!");
- bot.chat("/register 36433643 36433643");
- bot.chat("/login 36433643");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement