- Split the gigantic mess that web.rs was into seperate files - Split the app into two clear functions: web and bot - Add privacy policy - Add privacy - Make the site respect GDPR and Discord ToS - Add basic API - Add timezone detection and automatic time changes
12 lines
344 B
JavaScript
12 lines
344 B
JavaScript
(() => {
|
|
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
if (!timezone) return;
|
|
fetch("/timezone", {
|
|
method: "POST",
|
|
headers: {"Content-Type": "application/json"},
|
|
body: JSON.stringify({timezone}),
|
|
}).then(response => {
|
|
if (response.ok) window.location.reload();
|
|
});
|
|
})();
|