From 795d143988608c77a838beadd84d64a2543b5ec4 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Thu, 16 Jul 2020 00:33:46 +0100 Subject: [PATCH] Removing time constant --- main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0bbb4ea6..bd579174 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,5 @@ import asyncio +import datetime import discord import mariadb @@ -8,7 +9,7 @@ from discord.ext import commands import db import settings -from settings import blank_space, enso_embedmod_colours, time, enso_guild_ID, enso_newpeople_ID +from settings import blank_space, enso_embedmod_colours, enso_guild_ID, enso_newpeople_ID # Getting the Bot token from Environment Variables API_TOKEN = config('DISCORD_TOKEN') @@ -183,7 +184,7 @@ async def on_member_join(member): # Set up embed for the #newpeople channel embed = Embed(title="\n**Welcome To Ensō!**", colour=enso_embedmod_colours, - timestamp=time) + timestamp=datetime.datetime.utcnow()) embed.set_thumbnail(url=server_icon) embed.set_image(url=welcome_gif)