Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cogs/ctftime.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ async def current(self, ctx):
if ctf['start'] < unix_now and ctf['end'] > unix_now: # Check if the ctf is running
running = True
embed = discord.Embed(title=':red_circle: ' + ctf['name']+' IS LIVE', description=ctf['url'], color=15874645)
start = datetime.utcfromtimestamp(ctf['start']).strftime('%Y-%m-%d %H:%M:%S') + ' UTC'
end = datetime.utcfromtimestamp(ctf['end']).strftime('%Y-%m-%d %H:%M:%S') + ' UTC'
start = f"<t:{ctf['start']}>"
end = f"<t:{ctf['end']}>"
if ctf['img'] != '':
embed.set_thumbnail(url=ctf['img'])
else:
Expand Down