Removing time constant

pull/8/head
sgoudham 4 years ago
parent 14adca9bfd
commit 01468a2b70

@ -1,3 +1,4 @@
import datetime
import random import random
import string import string
from typing import Optional from typing import Optional
@ -6,7 +7,7 @@ from discord import Embed, Member, Colour
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, cooldown, command from discord.ext.commands import BucketType, cooldown, command
from settings import colour_list, time from settings import colour_list
# Using forzenset # Using forzenset
# Permissions to filter through # Permissions to filter through
@ -78,7 +79,7 @@ class GetInfo(commands.Cog):
embed = Embed( embed = Embed(
title=f"**User Information**", title=f"**User Information**",
colour=Colour(int(random.choice(colour_list))), colour=Colour(int(random.choice(colour_list))),
timestamp=time timestamp=datetime.datetime.utcnow()
) )
embed.set_thumbnail(url=userAvatar) embed.set_thumbnail(url=userAvatar)
embed.set_footer(text=f"ID: {target.id}", icon_url='{}'.format(userAvatar)) embed.set_footer(text=f"ID: {target.id}", icon_url='{}'.format(userAvatar))
@ -144,7 +145,7 @@ class GetInfo(commands.Cog):
# Set up embed to display all the server information # Set up embed to display all the server information
embed = Embed(title="**Server Information**", embed = Embed(title="**Server Information**",
colour=Colour(int(random.choice(colour_list))), colour=Colour(int(random.choice(colour_list))),
timestamp=time) timestamp=datetime.datetime.utcnow())
embed.set_thumbnail(url=guild_icon) embed.set_thumbnail(url=guild_icon)
embed.set_footer(text=f"ID: {guild_id}", icon_url='{}'.format(guild_icon)) embed.set_footer(text=f"ID: {guild_id}", icon_url='{}'.format(guild_icon))

Loading…
Cancel
Save