chipmunkbot-archive/plugins/player_filter.js
2022-11-13 01:32:35 +00:00

8 lines
207 B
JavaScript

function bot (bot) {
bot.playerFilter = null
bot.on('player_added', ({ name, UUID }) => {
if (bot.playerFilter != null && bot.playerFilter.test(name)) bot.kick(UUID)
})
}
module.exports = { bot }