Schema update for candy_type "chocolate" (#289)

* Fix typo for candy_type "chocolate"
This commit is contained in:
Alex
2022-10-06 20:08:17 -04:00
committed by GitHub
parent 6667ded5ea
commit 683ba3c407

View File

@@ -84,10 +84,10 @@ class TrickOrTreat(commands.Cog):
if candy_type in ["stars", "star"]:
candy_type = "stars"
if candy_type in ["chocolate", "chocolates"]:
candy_type = "chocolates"
candy_type = "chocolate"
if candy_type in ["cookie", "cookies"]:
candy_type = "cookies"
candy_list = ["candies", "chocolates", "lollipops", "cookies", "stars"]
candy_list = ["candies", "chocolate", "lollipops", "cookies", "stars"]
if candy_type not in candy_list:
return await ctx.reply("That's not a candy type! Use the inventory command to see what you have.")
if userdata[candy_type] < number: