matteo-the-prestige/onomancer.py

12 lines
304 B
Python
Raw Normal View History

2020-12-20 00:08:09 +00:00
#interfaces with onomancer
import requests
import json
onomancer_url = "https://onomancer.sibr.dev/api/"
name_stats_hook = "generateStats/"
def get_stats(username):
response = requests.get(onomancer_url + name_stats_hook + username)
if response.status_code == 200:
return response.json