Constants are the core numbers and ways we can easily define information in a readable format. Instead of always calling the blue team 1, the value, we instead can call it Team.Blue!
You don't need to use constants, but if anything changes in shell, they will be updated and your "magic numbers" might not be. Constants are super easy to understand and improve code readability, so we highly recommend them.
The names are exactly how you'd import them. If you see the name Team, you'd use:
import { Team } from 'yolkbot/constants';
ChallengeSubType: object - The different subtypes of challenges. Subtypes are a mess and I recommend you really don't use them. (read more)
ChallengeType: object - The different types of challenges read more
ChatFlag: object - The various "flags" that could be in a a chat message
ChiknWinnerDailyLimit: number - The number of times you can play Chikn winner before it "goes to sleep"CollectType: object - The different items on the ground
CoopState: object - The different stages of KoTC game
FirebaseKey: string - The firebase API key used to interact with game authorizationFramesBetweenSyncs: number - The number of times bot.update is called between server syncsGameAction: object - The different actions executed by a host
GameMode: object - The different game modes
GameOptionFlag: object - The different checkboxes game hosts control
GunEquipTime: number - The tick time it takes to equip a gun.GunList: array<Gun> - An array of all the guns in the game, ordered by the selector menu.IsBrowser: boolean - A quick and easy check for if the bot is running in the browser.ItemType: object - The different types of items in the game (hat, stamp, melee, etc)
Movement: object - The different ways to move. Critical for MovementDispatch.
PlayType: object - The different ways to play a game
ProxiesEnabled: boolean - If proxies are usable in the current environmentShellStreak: object - The different streak rewards in the game
SocialMedia: object - The different social media platforms CCs can have
SocialReward: object - The rewards claimable for clicking BWD's social media links on the homepage
StateBufferSize: number - the max size of the statebufferTeam: object - The two teams (blue/red)
URLRewards: array<string> - Rewards that are put at the end of a URL that users can claim.UserAgent: string - The user agent used for connecting to WebSockets and sending requestsSome of these, like Movement, are very important for the movement dispatch. Others, like GameOptionFlag, are relatively obscure and will likely never be needed by you.
Constants are the core numbers and ways we can easily define information in a readable format. Instead of always calling the blue team 1, the value, we instead can call it Team.Blue!
You don't need to use constants, but if anything changes in shell, they will be updated and your "magic numbers" might not be. Constants are super easy to understand and improve code readability, so we highly recommend them.
The names are exactly how you'd import them. If you see the name Team, you'd use:
import { Team } from 'yolkbot/constants';
ChallengeSubType: object - The different subtypes of challenges. Subtypes are a mess and I recommend you really don't use them. (read more)
ChallengeType: object - The different types of challenges read more
ChatFlag: object - The various "flags" that could be in a a chat message
ChiknWinnerDailyLimit: number - The number of times you can play Chikn winner before it "goes to sleep"CollectType: object - The different items on the ground
CoopState: object - The different stages of KoTC game
FirebaseKey: string - The firebase API key used to interact with game authorizationFramesBetweenSyncs: number - The number of times bot.update is called between server syncsGameAction: object - The different actions executed by a host
GameMode: object - The different game modes
GameOptionFlag: object - The different checkboxes game hosts control
GunEquipTime: number - The tick time it takes to equip a gun.GunList: array<Gun> - An array of all the guns in the game, ordered by the selector menu.IsBrowser: boolean - A quick and easy check for if the bot is running in the browser.ItemType: object - The different types of items in the game (hat, stamp, melee, etc)
Movement: object - The different ways to move. Critical for MovementDispatch.
PlayType: object - The different ways to play a game
ProxiesEnabled: boolean - If proxies are usable in the current environmentShellStreak: object - The different streak rewards in the game
SocialMedia: object - The different social media platforms CCs can have
SocialReward: object - The rewards claimable for clicking BWD's social media links on the homepage
StateBufferSize: number - the max size of the statebufferTeam: object - The two teams (blue/red)
URLRewards: array<string> - Rewards that are put at the end of a URL that users can claim.UserAgent: string - The user agent used for connecting to WebSockets and sending requestsSome of these, like Movement, are very important for the movement dispatch. Others, like GameOptionFlag, are relatively obscure and will likely never be needed by you.