diff options
| author | 2019-05-11 19:52:35 +0100 | |
|---|---|---|
| committer | 2019-05-11 19:52:35 +0100 | |
| commit | 7fb510b12d671be074b94ece0e456b5f114d288b (patch) | |
| tree | 06595b36a56a8d73c9eb40da7dbcadbd6a504084 /bot/seasons | |
| parent | Update bot/seasons/halloween/8ball.py (diff) | |
Removed embed, condensed code.
Diffstat (limited to 'bot/seasons')
| -rw-r--r-- | bot/seasons/halloween/8ball.py | 12 | 
1 files changed, 3 insertions, 9 deletions
diff --git a/bot/seasons/halloween/8ball.py b/bot/seasons/halloween/8ball.py index 40463bb7..cdd37a5a 100644 --- a/bot/seasons/halloween/8ball.py +++ b/bot/seasons/halloween/8ball.py @@ -23,16 +23,10 @@ class SpookyEightBall(commands.Cog):      async def spookyeightball(self, ctx, *, question: str):          """Responds with a random response to a question."""          choice = random.choice(responses['responses']) -        if len(choice) == 1: -            await ctx.send(choice[0]) -        else: -            emb = discord.Embed(colour=0x00f2ff) -            emb.add_field(name=f'Question from {ctx.author.name}', value=question) -            emb.add_field(name='Answer', value=choice[0]) -            msg = await ctx.send(embed=emb) +        msg = await ctx.send(choice[0]) +        if len(choice) > 1:              await asyncio.sleep(random.randint(2, 5)) -            emb.set_field_at(1, name='Answer', value=f'{choice[0]} \n {choice[1]}') -            await msg.edit(embed=emb) +            await msg.edit(content=f"{choice[0]} \n{choice[1]}")  def setup(bot):  |