diff --git a/app/bot.py b/app/bot.py index a56c10d2..d0af243a 100755 --- a/app/bot.py +++ b/app/bot.py @@ -64,19 +64,6 @@ async def he_just_like_me(ctx): await ctx.reply("https://imgur.com/V3k729v") -# @bot.listen("on_message") -# async def did_you_mean(ctx): -# if ctx.author.id != core_utils.my_id: -# message = ctx.content -# command = ctx.content.split()[0][1:] - -# command_map = {"ask": "wolfram"} -# if message.startswith("!"): -# if command in command_map.keys(): -# command = command_map[command] -# await ctx.reply("Did you mean /%s?" % command) - - # @bot.listen("on_message") # harass jason with shitposts # async def make_a_change(ctx): diff --git a/app/cogs/cheeky_functions.py b/app/cogs/cheeky_functions.py index 04b97801..da4989f8 100755 --- a/app/cogs/cheeky_functions.py +++ b/app/cogs/cheeky_functions.py @@ -26,21 +26,16 @@ class Cheeky(commands.Cog): choices = question.split(" or ") if len(choices) > 1: - embed = discord.Embed( - description=random.choice(choices), - color=discord.Color.green(), - type="rich", - ) - embed.set_author(name="You asked me: %s" % question) - await ctx.respond(embed=embed) + description = random.choice(choices) else: - embed = discord.Embed( - description=random.choice(["yes", "no"]), - color=discord.Color.green(), - type="rich", - ) - embed.set_author(name="You asked me: %s" % question) - await ctx.respond(embed=embed) + description = random.choice(["Yes", "No"]) + embed = discord.Embed( + description=description, + color=discord.Color.green(), + type="rich", + ) + embed.set_author(name="You asked me: %s" % question) + await ctx.respond(embed=embed) @commands.command(name="coom", pass_context=True) async def coom(self, ctx: commands.Context, id=None):