-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-- New Theme -- More Userfirendly UI -- Maybe The Control Feature -- Addons you have a addons folder where you can put all your addons in -- more user costumizaition users can cosumize there theme by there own -- Mobile Bug Fixes
- Loading branch information
Showing
41 changed files
with
2,145 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
module.exports.load = async function (app, db) { | ||
app.get("/users/id/get/tfcid/:dcid", async (req, res) => { | ||
try { | ||
const dcid = req.params.dcid; | ||
if (!dcid) { | ||
return res.json({ "success": false, "message": "MISSINGUSER" }); | ||
} | ||
|
||
let tfcid = await db.get("tfcid-" + dcid); | ||
|
||
if (!tfcid) { | ||
// Wenn tfcid nicht vorhanden ist, generiere eine zufällige Zahl zwischen 1 und 100 | ||
tfcid = Math.floor(Math.random() * 100) + 1; | ||
|
||
// Speichere die generierte tfcid in der Datenbank | ||
await db.set("tfcid-" + dcid, tfcid); | ||
} | ||
|
||
res.json({ "success": true, "message": "", "id": tfcid }); | ||
} catch (error) { | ||
console.error('Fehler beim Ändern von DCId zu tfcid', error); | ||
res.json({ "success": false, "message": "Ein Fehler ist aufgetreten." }); | ||
} | ||
}); | ||
} |
Oops, something went wrong.