Class Manager

Underhood class for selfbotting.

Constructors

Properties

cacheDuration: number = ...

Duration (in milliseconds) for caching data. Defaults to 10 minutes.

requester: Requester = ...

Instance of the Requester class for making API requests.

Accessors

  • get userTokens(): string[]
  • Retrieves the list of user tokens.

    Returns string[]

Methods

  • Adds a user token to the manager.

    Parameters

    • token: string

      The user token to add.

    Returns Manager

    The current instance of the Manager for method chaining.

  • Retrieves information about a specific token.

    Parameters

    • token: string

      The user token to retrieve information for.

    Returns Promise<ITokenInfo>

    A promise that resolves to the token information as a JSON object.

    An error if the fetch fails.

  • Retrieves a random user token from the list of stored tokens.

    Returns string

    A randomly selected user token.

  • Validates all stored user tokens.

    Returns Promise<[boolean, string, string][]>

    A promise that resolves to an array of validation results for each token. Each result is a tuple containing:

    • A boolean indicating whether the token is valid.
    • The token itself.
    • A message about the token's validity.
  • Validates a single user token.

    Parameters

    • token: string

      The user token to validate.

    Returns Promise<boolean>

    A promise that resolves to a boolean indicating whether the token is valid.