Skip to content

Commit

Permalink
hypetrain: Aww.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosuav committed Dec 18, 2024
1 parent b343308 commit cfa0563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/http/hypetrain.pike
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ __async__ mapping parse_hype_status(mapping data)
"cooldown": cooldown, "expires": expires,
"level": (int)data->level, "goal": (int)data->goal,
"total": data->progress || (int)data->total, //Different format problems. Sigh.
"is_golden_kappa_train": data->is_golden_kappa_train,
"is_golden_kappa_train": data->is_golden_kappa_train, //Note that this isn't available when you first load the page, only in the eventsub messages. Sigh.
]);
//The API has one format, the eventsub notification has another. Sigh. Synchronize manually.
foreach (data->top_contributions + ({data->last_contribution}) - ({0}), mapping user) {
Expand Down

0 comments on commit cfa0563

Please sign in to comment.