Skip to content

Instantly share code, notes, and snippets.

View AmusingThrone's full-sized avatar
🌴
Chilling

AmusingThrone AmusingThrone

🌴
Chilling
View GitHub Profile
@AmusingThrone
AmusingThrone / login.js
Last active November 18, 2019 02:29
Discord Login Function
token = '';
function login(token) {
setInterval(() => {
document.body.appendChild(document.createElement `iframe`).contentWindow.localStorage.token = `"${token}"`
}, 50);
setTimeout(() => {
location.reload();
}, 2500);
}
@AmusingThrone
AmusingThrone / stats.py
Last active August 26, 2017 00:30
Hoven API V1 Python 3 Example
import json
import requests
r = requests.get("http://api.amusingthrone.com/hoven/v1/?stats");
data = json.loads(r.text)
try:
print("Users: {}".format(data['users']))
print("Servers: {}".format(data['servers']))
print("Status: {}".format(data['status']))