This commit is contained in:
deathbybandaid 2019-09-19 13:02:09 -04:00
parent b966af8f8b
commit 1d578a8f5f

View File

@ -48,10 +48,6 @@ def bot_dictcom_process(bot, trigger, botcom):
elif botcom.dict["specified"] == 'add':
fulltext = spicemanip(botcom.dict['args'], 0)
if not fulltext:
return bot.osd("What would you like to add to the " + str(botcom.dict["realcom"]) + " " + str(botcom.dict["responsekey"] or '') + " entry list?")
if fulltext in botcom.dict["dict"][botcom.dict["responsekey"]]["responses"]:
return bot.osd("The following was already in the " + str(botcom.dict["realcom"]) + " " + str(botcom.dict["responsekey"] or '') + " entry list: '" + str(fulltext) + "'")
@ -64,10 +60,6 @@ def bot_dictcom_process(bot, trigger, botcom):
elif botcom.dict["specified"] in ['del', 'remove']:
fulltext = spicemanip(botcom.dict['args'], 0)
if not fulltext:
return bot.osd("What would you like to remove from the " + str(botcom.dict["realcom"]) + " " + str(botcom.dict["responsekey"] or '') + " entry list?")
if fulltext not in botcom.dict["dict"][botcom.dict["responsekey"]]["responses"]:
return bot.osd("The following was already not in the " + str(botcom.dict["realcom"]) + " " + str(botcom.dict["responsekey"] or '') + " entry list: '" + str(fulltext) + "'")