Intents are a way to enable specific features that are disabled by default for 1 of 2 reasons:
Here's a list:
Bot.Intents.BOT_STATS - has the bot fetch its own stats
Bot.Intents.CHALLENGES - has the bot fetch its own challenges
Bot.Intents.PATHING - enables pathfinding logicBot.Intents.PING - enables pinging logicBot.Intents.COSMETIC_DATA - enables fetching of cosmetic data
bot.players[x].character will not have items but rather item IDs.bot.players[x].character.hat is usually an item ID. Enabling this makes it an item object.Bot.Intents.PLAYER_HEALTH - enables player health tracking
player[x].hp will be occasionally updated without this, but it won't include health regenerationBot.Intents.PACKET_HOOK - enables the packet hookBot.Intents.LOG_PACKETS - enables logging of all packets to the console
Bot.Intents.NO_LOGIN - disables the login process and authenticates with an empty session ID
Bot.Intents.DEBUG_BUFFER - helps you debug buffer issues (mostly for package developer use only)Bot.Intents.NO_AFK_KICK - sends keepAlive packets to prevent the bot from being AFK kicked
Bot.Intents.LOAD_MAP - fetches and loads the map data
player.inKotcZone, bot.game.map.raw, the mapLoad hook, and various other thingsBot.Intents.NO_REGION_CHECK - disables checking regions against the region list (custom servers >>)Bot.Intents.NO_EXIT_ON_ERROR - disables the bot quitting the program when it runs into a critical error
Bot.Intents.RENEW_SESSION - automatically renews bot sessions
Bot.Intents.VIP_HIDE_BADGE - hides the VIP badge ingame if the bot is logged into a VIP accountYou can enable any intent by passing them in the intents array:
const bot = new Bot({
intents: [
Bot.Intents.PING,
Bot.Intents.NO_AFK_KICK,
Bot.Intents.LOAD_MAP
]
});
You should NEVER blindly specify all intents! Many times, you will not need to do whatever the intent does. For example, if you're not processing item data, you should not enable Bot.Intents.COSMETIC_DATA. Enabling intents that you do not need will cause your bot to use more resources than it needs to, which can lead to performance issues.
Intents are a way to enable specific features that are disabled by default for 1 of 2 reasons:
Here's a list:
Bot.Intents.BOT_STATS - has the bot fetch its own stats
Bot.Intents.CHALLENGES - has the bot fetch its own challenges
Bot.Intents.PATHING - enables pathfinding logicBot.Intents.PING - enables pinging logicBot.Intents.COSMETIC_DATA - enables fetching of cosmetic data
bot.players[x].character will not have items but rather item IDs.bot.players[x].character.hat is usually an item ID. Enabling this makes it an item object.Bot.Intents.PLAYER_HEALTH - enables player health tracking
player[x].hp will be occasionally updated without this, but it won't include health regenerationBot.Intents.PACKET_HOOK - enables the packet hookBot.Intents.LOG_PACKETS - enables logging of all packets to the console
Bot.Intents.NO_LOGIN - disables the login process and authenticates with an empty session ID
Bot.Intents.DEBUG_BUFFER - helps you debug buffer issues (mostly for package developer use only)Bot.Intents.NO_AFK_KICK - sends keepAlive packets to prevent the bot from being AFK kicked
Bot.Intents.LOAD_MAP - fetches and loads the map data
player.inKotcZone, bot.game.map.raw, the mapLoad hook, and various other thingsBot.Intents.NO_REGION_CHECK - disables checking regions against the region list (custom servers >>)Bot.Intents.NO_EXIT_ON_ERROR - disables the bot quitting the program when it runs into a critical error
Bot.Intents.RENEW_SESSION - automatically renews bot sessions
Bot.Intents.VIP_HIDE_BADGE - hides the VIP badge ingame if the bot is logged into a VIP accountYou can enable any intent by passing them in the intents array:
const bot = new Bot({
intents: [
Bot.Intents.PING,
Bot.Intents.NO_AFK_KICK,
Bot.Intents.LOAD_MAP
]
});
You should NEVER blindly specify all intents! Many times, you will not need to do whatever the intent does. For example, if you're not processing item data, you should not enable Bot.Intents.COSMETIC_DATA. Enabling intents that you do not need will cause your bot to use more resources than it needs to, which can lead to performance issues.