Giter VIP home page Giter VIP logo

Comments (10)

tentamens avatar tentamens commented on September 2, 2024

I will be displaying the content returned so it is customizable as well as having different variations of "popups"
Right now I have reward, penalty, info, legal, and update. You don't have to worry much about these, but you will have to return me a number corresponding to the type of popup.

Now for the actually content it will be rendering, I will need the header, body, and reward, these will all be in the form of text. And once I finish making all these widgets I will write prompts for you

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

For Rewards, all we have right now are the leaderboard so
For placing (top ten, top twenty, 1st, 2nd, 3rd) in the (daily, weekly) leaderboard you have been awarded
For uploading an incorrect image, you have deducted
obviously we can add more at any time without any changes to the front-end, so it doesn't really madder that much what they are now

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

Also we can use this endpoint for changing numbers of the frontend like multipliers or leaderboard rewards. So add support for that aswell

from ctwapi.

Ekwav avatar Ekwav commented on September 2, 2024

What format should the response have?
Also, wouldn't you want a list of recent exp changes? Like just requesting the latest one may miss one

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

The response could just be an array of dictionaries, each dictionary being a "notifier"
The type of if notifier would be a string reward, penalty, info, legal, and update. Header String, Body string, Reward String
For changes in frontend numbers like rewards you can put a bool and data this is all I have for now
dailyBonusesList = [1.25, 2, 4];
leaderboardBaseRewardsList = [1000, 3000];
leaderboardTopThree = [
[3000, 2000, 1000],
[6000, 3000, 2000]
];

from ctwapi.

Ekwav avatar Ekwav commented on September 2, 2024

I didn't get your message.
How about this:

[
  {
    "description":"Finished at #1 on the daily leaderbaord",
    "reference":"2024-07-08",
    "type":"leaderbaord",
    "timestamp": "2024-07-08T0:04:10.329Z",
    "effect":4000
  },
  {
    "description":"Image does not contain a window",
    "reference":"b0d070d6-702b-4242-ab29-f5410b2a2c92",
    "type":"image_check",
    "timestamp": "2024-07-07T23:54:20.032Z",
    "effect":-400
  }
]

The type defines what source the change came from.
Reference is an unique id for the change (boardname for leaderbaord, image id for images) changes based on type.
The effect is by how much the exp changed.
The description is text that can be displayed to the user.
The timestamp states when the change happened. (mostly for ordering)

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

Yeah, that works

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

Also for testing can you make it always return all of them

from ctwapi.

tentamens avatar tentamens commented on September 2, 2024

Also for testing can you make it always return all of them

This

from ctwapi.

Ekwav avatar Ekwav commented on September 2, 2024

It does return you all of them. All in the last 30 days (that is how long they are stored)

from ctwapi.

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.