Remove copy-pasted code for the embed in the /decide fucntion
This commit is contained in:
parent
ea012dadee
commit
008204755e
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")
|
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):
|
||||||
|
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user