Storing some links within variables

pull/2/head
sgoudham 4 years ago
parent 5f13ba6e02
commit 986320abf2

@ -50,19 +50,20 @@ async def on_member_join(member):
# Set the channel id to "general" # Set the channel id to "general"
general = client.get_channel(663651584399507481) general = client.get_channel(663651584399507481)
# Set the enso server icon and the welcoming gif
server_icon = "https://media.discordapp.net/attachments/683490529862090814/715010931620446269/image1.jpg?width=658&height=658"
welcome_gif = "https://cdn.discordapp.com/attachments/714671068941647933/717144047252275270/f4d7de6463d3ada02058a094fd6917ac.gif"
# Surround with try/except to catch any exceptions that may occur # Surround with try/except to catch any exceptions that may occur
try: try:
# Set up embed for the #newpeople channel # Set up embed for the #newpeople channel
embed = discord.Embed(title="\n**Welcome To Ensō!**", embed = discord.Embed(title="\n**Welcome To Ensō!**",
colour=discord.Colour(0x30e419)) colour=discord.Colour(0x30e419),
timestamp=datetime.datetime.utcnow())
embed.timestamp = datetime.datetime.utcnow()
embed.set_thumbnail(url="https://media.discordapp.net/attachments/683490529862090814/715010931620446269" embed.set_thumbnail(url=server_icon)
"/image1.jpg?width=658&height=658") embed.set_image(url=welcome_gif)
embed.set_image(
url="https://cdn.discordapp.com/attachments/714671068941647933/717144047252275270/f4d7de6463d3ada02058a094fd6917ac.gif")
embed.add_field( embed.add_field(
name="\u200b", name="\u200b",
value=f"Hello {member.mention}! We hope you enjoy your stay in this server! ", value=f"Hello {member.mention}! We hope you enjoy your stay in this server! ",

Loading…
Cancel
Save