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") 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") # @bot.listen("on_message")
# harass jason with shitposts # harass jason with shitposts
# async def make_a_change(ctx): # async def make_a_change(ctx):

View File

@ -26,21 +26,16 @@ class Cheeky(commands.Cog):
choices = question.split(" or ") choices = question.split(" or ")
if len(choices) > 1: if len(choices) > 1:
embed = discord.Embed( description = random.choice(choices)
description=random.choice(choices),
color=discord.Color.green(),
type="rich",
)
embed.set_author(name="You asked me: %s" % question)
await ctx.respond(embed=embed)
else: else:
embed = discord.Embed( description = random.choice(["Yes", "No"])
description=random.choice(["yes", "no"]), embed = discord.Embed(
color=discord.Color.green(), description=description,
type="rich", color=discord.Color.green(),
) type="rich",
embed.set_author(name="You asked me: %s" % question) )
await ctx.respond(embed=embed) embed.set_author(name="You asked me: %s" % question)
await ctx.respond(embed=embed)
@commands.command(name="coom", pass_context=True) @commands.command(name="coom", pass_context=True)
async def coom(self, ctx: commands.Context, id=None): async def coom(self, ctx: commands.Context, id=None):