Skip to content
Lukas edited this page Oct 15, 2024 · 5 revisions

Frame API

api.sgc.se/public_api/frame/generate - POST

With this route, you can generate a custom Gamerbot level frame.

Required JSON:

  • userid: string - Save name for frame. All frames get cashed under this name
  • frame_id: string - The frame you want to use
  • hex_color: string - The background colour for the frame
  • username: string - The username you want to be displayed
  • level: string - The level you want to be displayed
  • xp_percentage: number - the XP percentage you want it to display. range (0-100)

Optional JSON:

  • force: boolean - force it to generate, and not take it from the cache.

Example JSON body

{
    "userid": "249653220534779905",
    "frame_id": "0",
    "hex_color": "#ffffff",
    "username": "lukas",
    "level": "500",
    "xp_percentage": 50
}

Payload: The payload is going to be a PNG picture

api.sgc.se/public_api/get/config - POST

Returns the frame config. This will come with all frames available and their names.

Required JSON:

  • guildId : string - The guild you want the frame config for. SGC frames is under "516605157795037185"

Example JSON body

{
"guildId":"516605157795037185"
}

Payload

[
    ...,
    {
        "name": "default",
        "frameLink": "https://api.sgc.se/public_api/frame/get/516605157795037185/0",
        "path": "graphics/frames/BackrundsFrame0.png",
        "id": 0
    },
    ...,
]

Clone this wiki locally