Cleanup in resources

This commit is contained in:
Nikolaj Danger
2020-03-24 15:49:31 +01:00
parent 780e32fcc6
commit b2a47ce11a
16 changed files with 23 additions and 25 deletions

View File

@ -25,7 +25,7 @@ def monsterFunc(content):
logging.info("Monster doesn't exist in database\n")
return("I don't know that monster...","","","","","")
else:
data = json.load(open('funcs/lookup/monsters.json', encoding = "utf8"))
data = json.load(open('resources/monsters.json', encoding = "utf8"))
for monster in data:
if str(command) == monster["name"]:
print("Found it!")
@ -117,7 +117,7 @@ def spellFunc(content):
command = gf.cap(content.lower().replace("!spell ",""))
print("Looking up "+command)
logging.info("Looking up "+command)
data = json.load(open('funcs/lookup/spells.json', encoding = "utf8"))
data = json.load(open('resources/spells.json', encoding = "utf8"))
if str(command) in data:
print("Returning spell information")
logging.info("Returning spell information")

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff