From 00379f6840aa3f6fd6aa116ee3032dffdf3a016d Mon Sep 17 00:00:00 2001 From: sgoudham Date: Tue, 16 Jun 2020 02:11:44 +0100 Subject: [PATCH] Fixing code? --- cogs/HelpCommands.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) diff --git a/cogs/HelpCommands.py b/cogs/HelpCommands.py index 8a22226c..b7a02b7c 100644 --- a/cogs/HelpCommands.py +++ b/cogs/HelpCommands.py @@ -3,8 +3,6 @@ import datetime import discord from discord.ext import commands -from EnsoBot import client - class CustomHelp(commands.Cog): def __init__(self, bot): @@ -275,42 +273,6 @@ class CustomHelp(commands.Cog): except Exception as e: print(e) - # Bot ~roles command allows for an embed message about roles - @commands.Cog.listener() - async def on_member_join(self, member): - channel = client.get_channel(669771571337887765) - - try: - embed = discord.Embed(title="```Welcome To Ensō!```", - colour=discord.Colour(0x30e419)) - - embed.timestamp = datetime.datetime.utcnow() - - embed.set_thumbnail(url="https://media.discordapp.net/attachments/683490529862090814/715010931620446269" - "/image1.jpg?width=658&height=658") - embed.set_image( - url="https://cdn.discordapp.com/attachments/714671068941647933/717144047252275270/f4d7de6463d3ada02058a094fd6917ac.gif") - embed.set_author(name="Hamothy", icon_url="https://cdn.discordapp.com/attachments/689525645734182916" - "/718510466640642099/Rias_Gremory.png") - embed.set_footer(text=f"Hamothy#5619", - icon_url="https://media.discordapp.net/attachments/689525645734182916/718510466640642099/Rias_Gremory.png") - embed.add_field( - name="\u200b", - value=f"Hello {member.mention}! We hope you enjoy your stay in this server! ", - inline=False) - embed.add_field( - name="\u200b", - value=f"Be sure to check out our <#669815048658747392> channel to read the rules and <#683490529862090814> channel to get caught up with any changes! ", - inline=False) - embed.add_field( - name="\u200b", - value=f"Last but not least, feel free to go into <#669775971297132556> to introduce yourself!", - inline=False) - - await channel.send(embed=embed) - except Exception as e: - print(e) - def setup(bot): bot.add_cog(CustomHelp(bot))