Giter Site home page Giter Site logo

Comments (6)

noahcoolboy avatar noahcoolboy commented on June 25, 2024

Hello again
The pastebin which I provided is an example of what you can find in the Challenge.data object
Meaning that, the string_table is accessible using Challenge.data.string_table
If you would like the instruction string, you can use

challenge.data.string_table[`${challenge.data.game_data.gameType}.instructions-${challenge.data.game_data.game_variant}`]

from funcaptcha.

sv-du avatar sv-du commented on June 25, 2024

That's the thing, when I tried to access it, I got the following error
Property 'string_table' does not exist on type 'ChallengeData'

from funcaptcha.

noahcoolboy avatar noahcoolboy commented on June 25, 2024

Ah, are you using TypeScript by any chance? I only partially implemented the data object into the ChallengeData interface which may cause this error. I believe you can tell typescript to ignore the next line using // @ts-ignore
I will add it eventually.

from funcaptcha.

sv-du avatar sv-du commented on June 25, 2024

Yea I'm using Typescript, and I thought doing // @ts-ignore does that for the whole file, no?

from funcaptcha.

noahcoolboy avatar noahcoolboy commented on June 25, 2024

// @ts-ignore only ignores the next line, while // @ts-nocheck does it for the whole file
At least that's what I think

from funcaptcha.

noahcoolboy avatar noahcoolboy commented on June 25, 2024

The properties have been added
As a bonus, there is now an instruction accessor in the Challenge class which will directly give you the instruction string

from funcaptcha.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.