Schema update for candy_type "chocolate" (#289)
* Fix typo for candy_type "chocolate"
This commit is contained in:
@@ -84,10 +84,10 @@ class TrickOrTreat(commands.Cog):
|
|||||||
if candy_type in ["stars", "star"]:
|
if candy_type in ["stars", "star"]:
|
||||||
candy_type = "stars"
|
candy_type = "stars"
|
||||||
if candy_type in ["chocolate", "chocolates"]:
|
if candy_type in ["chocolate", "chocolates"]:
|
||||||
candy_type = "chocolates"
|
candy_type = "chocolate"
|
||||||
if candy_type in ["cookie", "cookies"]:
|
if candy_type in ["cookie", "cookies"]:
|
||||||
candy_type = "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:
|
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.")
|
return await ctx.reply("That's not a candy type! Use the inventory command to see what you have.")
|
||||||
if userdata[candy_type] < number:
|
if userdata[candy_type] < number:
|
||||||
|
|||||||
Reference in New Issue
Block a user