This commit is contained in:
deathbybandaid 2019-06-05 12:33:25 -04:00
parent 538466d122
commit 4fb4e70105

View File

@ -181,7 +181,7 @@ class SpiceBot_AI():
for pronounitem in pronounsdict[botgendertype].keys():
aiml_response = aiml_response.replace("BOTPRONOUN" + pronounitem, pronounsdict[botgendertype][pronounitem])
triggergendertype = self.getPredicate("gender", trigger.nick)
if triggergendertype == "":
if not triggergendertype or triggergendertype == "":
triggergendertype = "point"
for pronounitem in pronounsdict[triggergendertype].keys():
aiml_response = aiml_response.replace("TRIGGERPRONOUN" + pronounitem, pronounsdict[triggergendertype][pronounitem])