📝 Commenting and formatting

This commit is contained in:
NikolajDanger
2020-07-29 10:38:37 +02:00
parent 94c6289cc1
commit ef434ecee8
12 changed files with 260 additions and 220 deletions

View File

@ -15,12 +15,11 @@ saves = ["strength_save","dexterity_save","constitution_save","intelligence_save
abilities = ["acrobatics","animal_handling","arcana","athletics","deception","history","insight","intimidation","investigation","medicine","nature","perception","performance","persuasion","religion","sleight_of_hand","stealth","survival"]
# Looks up a monster
def monsterFunc(content):
command = cap(content.lower().replace("!monster ",""))
def monsterFunc(command):
logThis("Looking up "+command)
# 1-letter monsters don't exist
if len(content.lower().split()) < 2:
if len(command) < 2:
logThis("Monster doesn't exist in database")
return("I don't know that monster...","","","","","")
else:
@ -122,8 +121,7 @@ def monsterFunc(content):
return("I don't know that monster...","","","","","")
# Looks up a spell
def spellFunc(content):
command = cap(content.lower().replace("!spell ",""))
def spellFunc(command):
logThis("Looking up "+command)
# Opens "spells.json"