Trying to get errorFunction to work

pull/2/head
sgoudham 5 years ago
parent 1be066ec59
commit a17a56ea2d

@ -41,7 +41,7 @@ class Embeds(commands.Cog):
await ctx.send(embed=embed)
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -75,7 +75,7 @@ class Embeds(commands.Cog):
await ctx.send(embed=embed)
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -109,7 +109,7 @@ class Embeds(commands.Cog):
await ctx.send(embed=embed)
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -143,7 +143,7 @@ class Embeds(commands.Cog):
await ctx.send(embed=embed)
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -153,5 +153,6 @@ class Embeds(commands.Cog):
except FileNotFoundError as e:
print(e)
def setup(bot):
bot.add_cog(Embeds(bot))

@ -118,7 +118,7 @@ class Fun(commands.Cog):
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)

@ -42,7 +42,7 @@ class Waifus(commands.Cog):
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -75,7 +75,7 @@ class Waifus(commands.Cog):
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)
@ -107,7 +107,7 @@ class Waifus(commands.Cog):
else:
message = error_function()
message = await ctx.send(error_function())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(2.5)

Loading…
Cancel
Save