Remove copy-pasted code for the embed in the /decide fucntion
This commit is contained in:
parent
1860c932e9
commit
d0ee55314c
13
app/bot.py
13
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):
|
||||
|
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user