Intents are a way to enable specific features that are disabled by default for 1 of 2 reasons:
Here's a list:
Intents.BOT_STATS - has the bot fetch its own stats
Intents.CHALLENGES - has the bot fetch its own challenges
Intents.PATHING - enables pathfinding logicIntents.PING - enables pinging logicIntents.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.Intents.PLAYER_HEALTH - enables player health tracking
player[x].hp will be occasionally updated without this, but it won't include health regenerationIntents.PACKET_HOOK - enables the packet hookIntents.LOG_PACKETS - enables logging of all packets to the console
Intents.SKIP_LOGIN - disables the login process and authenticates with an empty session ID
Intents.DEBUG_BUFFER - helps you debug buffer issues (mostly for package developer use only)Intents.NO_AFK_KICK - sends keepAlive packets to prevent the bot from being AFK kicked
Intents.LOAD_MAP - fetches and loads the map data
player.inKotcZone, bot.game.map.raw, the mapLoad hook, and various other thingsIntents.NO_REGION_CHECK - disables checking regions against the region list (custom servers >>)Intents.RENEW_SESSION - automatically renews bot sessions
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:
import { Intents } from 'yolkbot/enums';
const bot = new Bot({
intents: [
Intents.PING,
Intents.NO_AFK_KICK,
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 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:
Intents.BOT_STATS - has the bot fetch its own stats
Intents.CHALLENGES - has the bot fetch its own challenges
Intents.PATHING - enables pathfinding logicIntents.PING - enables pinging logicIntents.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.Intents.PLAYER_HEALTH - enables player health tracking
player[x].hp will be occasionally updated without this, but it won't include health regenerationIntents.PACKET_HOOK - enables the packet hookIntents.LOG_PACKETS - enables logging of all packets to the console
Intents.SKIP_LOGIN - disables the login process and authenticates with an empty session ID
Intents.DEBUG_BUFFER - helps you debug buffer issues (mostly for package developer use only)Intents.NO_AFK_KICK - sends keepAlive packets to prevent the bot from being AFK kicked
Intents.LOAD_MAP - fetches and loads the map data
player.inKotcZone, bot.game.map.raw, the mapLoad hook, and various other thingsIntents.NO_REGION_CHECK - disables checking regions against the region list (custom servers >>)Intents.RENEW_SESSION - automatically renews bot sessions
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:
import { Intents } from 'yolkbot/enums';
const bot = new Bot({
intents: [
Intents.PING,
Intents.NO_AFK_KICK,
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 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.