Added the caledar function

This commit is contained in:
ION606
2022-08-12 10:29:57 -07:00
parent 02f953ea01
commit 55bf78346b
9 changed files with 1533 additions and 15 deletions
+9
View File
@@ -58,6 +58,15 @@
window.onload = () => {
const guilds = JSON.parse(JSON.parse(window.localStorage.getItem('guilds')));
if (!guilds) {
alert("Please log in to continue");
if (window.location.href.indexOf('localhost') != -1) {
window.location = 'https://discord.com/api/oauth2/authorize?client_id=926551095352901632&redirect_uri=http%3A%2F%2Flocalhost%3A53134%2F&response_type=token&scope=identify%20guilds';
} else {
window.location = 'https://discord.com/api/oauth2/authorize?client_id=944046902415093760&redirect_uri=http%3A%2F%2Fwww.selmerbot.com%2F&response_type=token&scope=identify%20guilds';
}
}
var wrapper = document.getElementById('wrapper');
var row = document.createElement("servers_row");