Added a message telling the user that Enso-chan has dm'ed them

pull/2/head
sgoudham 5 years ago
parent bc731585c8
commit e3de0ef0ae

@ -1,3 +1,4 @@
import asyncio
import datetime import datetime
import discord import discord
@ -146,6 +147,14 @@ class CustomHelp(commands.Cog):
inline=True) inline=True)
await author.send(embed=embed) await author.send(embed=embed)
message = await ctx.send(helpDm())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(10)
# Delete the message
await message.delete()
except Exception as e: except Exception as e:
print(e) print(e)
@ -252,6 +261,13 @@ class CustomHelp(commands.Cog):
inline=False) inline=False)
await ctx.send(embed=embed) await ctx.send(embed=embed)
message = await ctx.send(helpDm())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(10)
# Delete the message
await message.delete()
except Exception as e: except Exception as e:
print(e) print(e)
@ -289,9 +305,23 @@ class CustomHelp(commands.Cog):
inline=False) inline=False)
await author.send(embed=embed) await author.send(embed=embed)
message = await ctx.send(helpDm())
# Let the user read the message for 2.5 seconds
await asyncio.sleep(10)
# Delete the message
await message.delete()
except Exception as e: except Exception as e:
print(e) print(e)
def helpDm():
hamothyID = '<@&715412394968350756>'
return f"I've just pinged your dms UwU! <a:huh:676195228872474643> <a:huh:676195228872474643>" \
f"\nPlease ping my owner {hamothyID} for any issues/questions you have!"
def setup(bot): def setup(bot):
bot.add_cog(CustomHelp(bot)) bot.add_cog(CustomHelp(bot))

Loading…
Cancel
Save