From 683ba3c407409d1cd940c0bf75755576fa7436cd Mon Sep 17 00:00:00 2001 From: Alex <58824393+vertyco@users.noreply.github.com> Date: Thu, 6 Oct 2022 20:08:17 -0400 Subject: [PATCH] Schema update for candy_type "chocolate" (#289) * Fix typo for candy_type "chocolate" --- trickortreat/trickortreat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trickortreat/trickortreat.py b/trickortreat/trickortreat.py index b443406..219eac2 100644 --- a/trickortreat/trickortreat.py +++ b/trickortreat/trickortreat.py @@ -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: