API Tools
yolkbot provides a few API-related functions.
[async] loginAnonymously
This lets you login anonymously. It returns a response from the auth
services command.
This returns information about the newly created anonymous account.
Note that Firebase, the database provider of the game, ratelimits anon accounts created every hour.
[async] loginWithCredentials
This lets you login with a specified email and password.
This returns information about the account.
[async] loginWithRefreshToken
This lets you login using a Firebase refresh token
You can learn about obtaining those by looking at the loginWithRefreshToken
docs for the Bot.
This returns information about the account.
[async] createAccount
This allows you to create an account.
It returns the same thing as “loginWithCredentials”.
[async] queryServices
This lets you directly query the services
socket.
This is mostly used internally, but allows you to do things like play Chikn Winner.
Additional Arguments
Each of these take two extra arguments at the end in the following order:
- proxy (string): A socks4 or socks5 proxy to use for the request.
- instance (string): The instance of Shell Shockers to use, default
shellshock.io
.