From 36323f7fcc016f2023afcecdbafcdbcc08ea744d Mon Sep 17 00:00:00 2001 From: Bobloy Date: Wed, 14 Mar 2018 15:52:27 -0400 Subject: [PATCH] loading gif --- chatter/chatter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chatter/chatter.py b/chatter/chatter.py index 1616c66..ea46f02 100644 --- a/chatter/chatter.py +++ b/chatter/chatter.py @@ -103,8 +103,16 @@ class Chatter: return await ctx.send("Gather successful! Training begins now\n(**This will take a long time, be patient**)") + embed=discord.Embed(title="Loading") + embed.set_image("http://www.loop.universaleverything.com/animations/1295.gif") + temp_message = await self.bot.say(embed=embed) future = await self.loop.run_in_executor(None, self._train, conversation) + try: + await temp_message.delete() + except: + pass + if future: await ctx.send("Training successful!") else: