Remove copy-pasted code for the embed in the /decide fucntion

This commit is contained in:
Luke Robles 2023-03-23 14:13:44 -07:00
parent ea012dadee
commit 008204755e
2 changed files with 9 additions and 27 deletions

View File

@ -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):

View File

@ -26,16 +26,11 @@ 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:
description = random.choice(["Yes", "No"])
embed = discord.Embed(
description=random.choice(["yes", "no"]),
description=description,
color=discord.Color.green(),
type="rich",
)