Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mineflayer = require('mineflayer');
- var bot = mineflayer.createBot({
- host: "localhost", // optional
- port: 25565, // optional
- username: "email@example.com", // email and password are required only for
- password: "12345678", // online-mode=true servers
- version: false // false corresponds to auto version detection (that's the default), put for example "1.8.8" if you need a specific version
- });
- var noncuboydcount = 0
- bot.on('chat', function(username, message) {
- noncuboydcount = noncuboydcount + 1
- if(message.includes('cuboyd')) {
- bot.chat('thanks ididot we went ' + noncuboydcount + 'messages without saying his name')
- noncuboydcount = 0
- }
- });
- bot.on('error', err => console.log(err))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement