Adding commentary

Imported Settings for datetime and colourlist
pull/8/head
sgoudham 5 years ago
parent 472dd0780e
commit 7b128cccde

@ -1,4 +1,3 @@
import datetime
import random import random
import string import string
from typing import Optional from typing import Optional
@ -7,7 +6,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
import settings from settings import colour_list, time
# Permissions to filter through # Permissions to filter through
Perms = frozenset( Perms = frozenset(
@ -81,8 +80,8 @@ class GetInfo(commands.Cog):
# Set up the embed to display everything about the user # Set up the embed to display everything about the user
embed = Embed( embed = Embed(
title=f"**User Information**", title=f"**User Information**",
colour=Colour(int(random.choice(settings.colour_list))), colour=Colour(int(random.choice(colour_list))),
timestamp=datetime.datetime.utcnow() timestamp=time
) )
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))
@ -124,8 +123,8 @@ 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(settings.colour_list))), colour=Colour(int(random.choice(colour_list))),
timestamp=datetime.datetime.utcnow()) timestamp=time)
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