diff --git a/cogs/fun/doggo.py b/cogs/fun/doggo.py index a6093ca7..39052ecb 100644 --- a/cogs/fun/doggo.py +++ b/cogs/fun/doggo.py @@ -1,4 +1,5 @@ import asyncio +import datetime import random import string @@ -9,7 +10,7 @@ from discord.ext.commands import BucketType, cooldown, command import settings from cogs.anime.interactive import error_function -from settings import colour_list, time +from settings import colour_list # Set up the cog @@ -75,7 +76,7 @@ class Doggo(commands.Cog): doggo_embed = Embed( title=f"**It's a {lowercase_breed.capitalize()} Doggo!!** ", colour=Colour(random.choice(colour_list)), - timestamp=time) + timestamp=datetime.datetime.utcnow()) doggo_embed.set_image(url=image_link) doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar)) @@ -102,7 +103,7 @@ class Doggo(commands.Cog): doggo_embed = Embed( title=f"**Doggo!** ", colour=Colour(random.choice(colour_list)), - timestamp=time) + timestamp=datetime.datetime.utcnow()) doggo_embed.set_image(url=image_link) doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar)) diff --git a/cogs/fun/fun.py b/cogs/fun/fun.py index 1282f7d4..4cecd83c 100644 --- a/cogs/fun/fun.py +++ b/cogs/fun/fun.py @@ -1,10 +1,11 @@ +import datetime import random from discord import Member, Colour, Embed from discord.ext import commands from discord.ext.commands import BucketType, cooldown, command, has_any_role, is_owner -from settings import time, colour_list +from settings import colour_list # Set up the cog @@ -147,7 +148,7 @@ class Fun(commands.Cog): embed = Embed( title=f"**A cute picture of Digby!**", colour=Colour(int(random.choice(colour_list))), - timestamp=time) + timestamp=datetime.datetime.utcnow()) embed.set_image(url=random.choice(digby_array)) embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))