yolkbot
    Preparing search index...

    Class ChiknWinner

    A chikn winner instance behind an Account

    Index

    Constructors

    Methods

    • Attempts to pull from chikn winner

      Parameters

      • doPrematureCooldownCheck: boolean = true

        Whether to run the premature cooldown check based on the last check's cooldown time. Set this to false to ignore the cooldown time from the last check, and just attempt to play (unstable)

      Returns Promise<
          | ErrorEnum<FirebaseError | QueryServicesError | ChicknWinnerError>
          | { eggsGiven: number; itemIds: number[]; ok: true; rewardTier: number },
      >

      An object containing the reward if successful, or an error if there was a failure

    Properties

    account: Account

    The related Account instance

    atLimit: boolean = false

    Whether the account has hit its pull limit

    canPlayAgain: number = 0

    The timestamp at which the account can play again

    pulls: number = 0

    The number of pulls today