diff --git a/.gitignore b/.gitignore index 34558be..14f0fc0 100644 --- a/.gitignore +++ b/.gitignore @@ -340,4 +340,5 @@ ASALocalRun/ healthchecksdb # Personal config file, contains bot token -config.json \ No newline at end of file +config.json +ids \ No newline at end of file diff --git a/config.json b/config.json index ba6fb04..22eb80b 100644 --- a/config.json +++ b/config.json @@ -1,6 +1,11 @@ { - "token": "Nzg5OTU2MTY2Nzk2NTc0NzQw.X95mAg.gQBAAQZMy5-a70fVtT50YiYO4oc", - "owners": [ - 102691114762371072 - ] + "token": "Nzg5OTU2MTY2Nzk2NTc0NzQw.X95mAg.gQBAAQZMy5-a70fVtT50YiYO4oc", + "owners": [ + 102691114762371072 + ], + "prefix": [ + "m;", + "m!" + ], + "soulscream channel id": 790005613110493276 } \ No newline at end of file diff --git a/database.py b/database.py index 0b5ee80..54e92f6 100644 --- a/database.py +++ b/database.py @@ -1,8 +1,3 @@ #handles the database interactions import sqlite3 as sql - - - - - diff --git a/onomancer.py b/onomancer.py index 9928b34..67f212d 100644 --- a/onomancer.py +++ b/onomancer.py @@ -2,11 +2,16 @@ import requests import json +import database as db + onomancer_url = "https://onomancer.sibr.dev/api/" name_stats_hook = "generateStats/" def get_stats(username): + #check database for cached name first + + #yell at onomancer response = requests.get(onomancer_url + name_stats_hook + username) if response.status_code == 200: - return response.json \ No newline at end of file + return response.json() \ No newline at end of file diff --git a/the-prestige.pyproj b/the-prestige.pyproj index c1849e3..20153e4 100644 --- a/the-prestige.pyproj +++ b/the-prestige.pyproj @@ -41,6 +41,10 @@ X86 + + + +