summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-12 08:34:35 +0100
committerMinteck <contact@minteck.org>2023-02-12 08:34:35 +0100
commit7efa4400ea7f8b852476d43b6e1e4765a600ca1a (patch)
tree79add881a440048e851c979abdf73210bedd1590
parent38a3b0ce3ce9dac3630c283589ed998f0b837de6 (diff)
downloadpluralconnect-7efa4400ea7f8b852476d43b6e1e4765a600ca1a.tar.gz
pluralconnect-7efa4400ea7f8b852476d43b6e1e4765a600ca1a.tar.bz2
pluralconnect-7efa4400ea7f8b852476d43b6e1e4765a600ca1a.zip
Updated api/pluralkit-integration.php (automated)
-rw-r--r--api/pluralkit-integration.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/api/pluralkit-integration.php b/api/pluralkit-integration.php
index b3badd7..a0368e4 100644
--- a/api/pluralkit-integration.php
+++ b/api/pluralkit-integration.php
@@ -36,10 +36,8 @@ if ($input['system_id'] === "7d9f543e-f742-40f6-9d07-86c3f2983124") {
$lastFronter = json_decode(@file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/last.json"), true) ?? "";
if ($input["type"] === "CREATE_SWITCH" || $input["type"] === "UPDATE_SWITCH" || $input["type"] === "DELETE_SWITCH") {
- sleep(1.5);
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json", file_get_contents("https://api.pluralkit.me/v2/systems/$input[system_id]/fronters"));
- sleep(1.5);
- file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json", file_get_contents("https://api.pluralkit.me/v2/systems/$input[system_id]/switches"));
+ file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$input[system_id]/fronters"));
+ file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/switches.json", file_get_contents("https://pluralkit.equestria.dev/v2/systems/$input[system_id]/switches"));
$fronters = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/$system/fronters.json"), true);
$currentFronter = $fronters["members"][0]["id"];
@@ -47,8 +45,6 @@ if ($input["type"] === "CREATE_SWITCH" || $input["type"] === "UPDATE_SWITCH" ||
$ntfy = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true)["ntfy"];
- file_put_contents("/mnt/ponytown-chat/tokens/" . $ponytown, $fronters["members"][0]["display_name"]);
-
if (count($fronters["members"]) > 0) {
foreach ($fronters["members"] as $member) {
if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/data/metadata/" . $member["id"] . ".json")) {