Skip to content

Commit

Permalink
Added Wolverines Health Org to revive providers (#796)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachwozn authored Jun 14, 2024
1 parent 3a73e39 commit 872a798
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions extension/pages/settings/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ <h2>
<option value="hela">HeLa</option>
<option value="shadow_healers">Shadow Healers</option>
<option value="wtf">WTF</option>
<option value="who">WHO</option>
</select>
<label class="note" for="global-reviveProvider">Revives always cost $1m or 1 Xanax.</label>
</div>
Expand Down
2 changes: 2 additions & 0 deletions extension/pages/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ async function setupPreferences(requireCleanup) {
else if (provider === "hela") origin = FETCH_PLATFORMS.hela;
else if (provider === "shadow_healers") origin = FETCH_PLATFORMS.shadow_healers;
else if (provider === "wtf") origin = FETCH_PLATFORMS.wtf;
else if (provider === "who") origin = FETCH_PLATFORMS.who;

if (!origin) return;

Expand Down Expand Up @@ -1271,6 +1272,7 @@ async function setupPreferences(requireCleanup) {
else if (reviveProvider === "hela") origin = FETCH_PLATFORMS.hela;
else if (reviveProvider === "shadow_healers") origin = FETCH_PLATFORMS.shadow_healers;
else if (reviveProvider === "wtf") origin = FETCH_PLATFORMS.wtf;
else if (reviveProvider === "who") origin = FETCH_PLATFORMS.who;

if (origin) origins.push(origin);
}
Expand Down
4 changes: 2 additions & 2 deletions extension/scripts/features/revive-request/ttReviveRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@
button.removeAttribute("disabled");
console.log("TT - Failed to request a revive with Imperium!", response);
}
} else if (provider === "hela" || provider === "shadow_healers") {
const providers = { hela: "HeLa", shadow_healers: "Shadow Healers" };
} else if (provider === "hela" || provider === "shadow_healers" || provider === "who") {
const providers = { hela: "HeLa", shadow_healers: "Shadow Healers", who: "The Wolverines" };
const response = await fetchData(provider, {
section: "request",
method: "POST",
Expand Down
6 changes: 6 additions & 0 deletions extension/scripts/global/functions/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const FETCH_PLATFORMS = {
imperium: "https://inq.mavri.dev/",
hela: "https://api.no1irishstig.co.uk/",
shadow_healers: "https://api.no1irishstig.co.uk/",
who: "https://api.no1irishstig.co.uk/",
prometheus: "https://prombot.co.uk:8443/",
lzpt: "https://api.lzpt.io/",
wtf: "https://what-the-f.de/",
Expand Down Expand Up @@ -124,6 +125,11 @@ async function fetchData(location, options = {}) {
case "shadow_healers":
url = FETCH_PLATFORMS.shadow_healers;

path = options.section;
break;
case "who":
url = FETCH_PLATFORMS.who;

path = options.section;
break;
case "prometheus":
Expand Down

0 comments on commit 872a798

Please sign in to comment.