matteo-the-prestige/onomancer.py
2020-12-19 19:08:09 -05:00

12 lines
304 B
Python

#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