We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I add a pattern that checks for colours?
The text was updated successfully, but these errors were encountered:
bot.on('message', msg => console.log(msg.toMotd()))
bot.on('message', msg => msg.toMotd().match(/regex/g) && console.log(msg.toString()))
Sorry, something went wrong.
@plexigras can I make new 'chat' events that match against the motd-formatted raw message?
you can do bot.emit('chat', ...) or copy, modify and use
bot.emit('chat', ...)
mineflayer/lib/plugins/chat.js
Lines 38 to 46 in 52768da
No branches or pull requests
How can I add a pattern that checks for colours?
The text was updated successfully, but these errors were encountered: