Removing time constant

pull/8/head
sgoudham 4 years ago
parent 69daaca5d3
commit 500bfdf4f2

@ -1,4 +1,5 @@
import asyncio import asyncio
import datetime
import random import random
import string import string
@ -9,7 +10,7 @@ from discord.ext.commands import BucketType, cooldown, command
import settings import settings
from cogs.anime.interactive import error_function from cogs.anime.interactive import error_function
from settings import colour_list, time from settings import colour_list
# Set up the cog # Set up the cog
@ -75,7 +76,7 @@ class Doggo(commands.Cog):
doggo_embed = Embed( doggo_embed = Embed(
title=f"**It's a {lowercase_breed.capitalize()} Doggo!!** ", title=f"**It's a {lowercase_breed.capitalize()} Doggo!!** ",
colour=Colour(random.choice(colour_list)), colour=Colour(random.choice(colour_list)),
timestamp=time) timestamp=datetime.datetime.utcnow())
doggo_embed.set_image(url=image_link) doggo_embed.set_image(url=image_link)
doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar)) doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))
@ -102,7 +103,7 @@ class Doggo(commands.Cog):
doggo_embed = Embed( doggo_embed = Embed(
title=f"**Doggo!** ", title=f"**Doggo!** ",
colour=Colour(random.choice(colour_list)), colour=Colour(random.choice(colour_list)),
timestamp=time) timestamp=datetime.datetime.utcnow())
doggo_embed.set_image(url=image_link) doggo_embed.set_image(url=image_link)
doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar)) doggo_embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))

@ -1,10 +1,11 @@
import datetime
import random import random
from discord import Member, Colour, Embed from discord import Member, Colour, Embed
from discord.ext import commands from discord.ext import commands
from discord.ext.commands import BucketType, cooldown, command, has_any_role, is_owner 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 # Set up the cog
@ -147,7 +148,7 @@ class Fun(commands.Cog):
embed = Embed( embed = Embed(
title=f"**A cute picture of Digby!**", title=f"**A cute picture of Digby!**",
colour=Colour(int(random.choice(colour_list))), colour=Colour(int(random.choice(colour_list))),
timestamp=time) timestamp=datetime.datetime.utcnow())
embed.set_image(url=random.choice(digby_array)) embed.set_image(url=random.choice(digby_array))
embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar)) embed.set_footer(text=f"Requested by {member}", icon_url='{}'.format(userAvatar))

Loading…
Cancel
Save