Adding timestamp embed into the embed messages

pull/1/head
sgoudham 5 years ago
parent 71d3d44a5d
commit aec4fed37c

@ -1,4 +1,5 @@
import asyncio import asyncio
import datetime
import discord import discord
from decouple import config from decouple import config
@ -42,6 +43,8 @@ async def roles(ctx):
colour=discord.Colour(0x30e419), colour=discord.Colour(0x30e419),
description="------------------------------------------------") description="------------------------------------------------")
embed.timestamp = datetime.datetime.utcnow()
embed.set_image(url="https://media.discordapp.net/attachments/669812887564320769/717149671771996180/unknown.png") embed.set_image(url="https://media.discordapp.net/attachments/669812887564320769/717149671771996180/unknown.png")
embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/683490529862090814/715010931620446269/image1.jpg") embed.set_thumbnail(url="https://cdn.discordapp.com/attachments/683490529862090814/715010931620446269/image1.jpg")
embed.set_author(name="Hamothy", embed.set_author(name="Hamothy",

@ -1,4 +1,5 @@
import asyncio import asyncio
import datetime
import random import random
import discord import discord
@ -116,6 +117,7 @@ class Fun(commands.Cog):
colour=discord.Colour(int(random.choice(colours)))) colour=discord.Colour(int(random.choice(colours))))
embed.set_image(url=random.choice(kissing_array)) embed.set_image(url=random.choice(kissing_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar)) embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
embed.timestamp = datetime.datetime.utcnow()
await ctx.send(embed=embed) await ctx.send(embed=embed)

@ -26,12 +26,14 @@ class CustomHelp(commands.Cog):
embed.add_field( embed.add_field(
name="\u200b", name="\u200b",
value="```( ͡°ω ͡°) Waifu/Husbando Commands ( ͡°ω ͡°)```", value="```css" +
"\n ( ͡°ω ͡°) Waifu/Husbando Commands ( ͡°ω ͡°)" +
"```",
inline=False) inline=False)
embed.add_field( embed.add_field(
name="\u200b\u200b", name="\u200b\u200b",
value="**➳ ~ping**" + value="**➳ ~kakashi**" +
"\n Returns Pong! Along With The Latency in ms", "\n Allows for a randomly generated image of Hatake Kakashi",
inline=True) inline=True)
embed.add_field( embed.add_field(
name="\u200b", name="\u200b",
@ -45,7 +47,9 @@ class CustomHelp(commands.Cog):
inline=True) inline=True)
embed.add_field( embed.add_field(
name="\u200b", name="\u200b",
value="```( ͡°ω ͡°) Misc Commands ( ͡°ω ͡°)```", value="```css" +
"\n ( ͡°ω ͡°) Misc Commands ( ͡°ω ͡°)" +
"```",
inline=False) inline=False)
embed.add_field( embed.add_field(
name="\u200b\u200b", name="\u200b\u200b",

@ -1,4 +1,5 @@
import asyncio import asyncio
import datetime
import random import random
import discord import discord
@ -37,6 +38,7 @@ class Waifus(commands.Cog):
embed = discord.Embed(title="**Hatake Kakashi**", colour=discord.Colour(random.choice(colours))) embed = discord.Embed(title="**Hatake Kakashi**", colour=discord.Colour(random.choice(colours)))
embed.set_image(url=random.choice(kakashi_array)) embed.set_image(url=random.choice(kakashi_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar)) embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
embed.timestamp = datetime.datetime.utcnow()
await ctx.send(embed=embed) await ctx.send(embed=embed)
else: else:
@ -67,6 +69,7 @@ class Waifus(commands.Cog):
embed = discord.Embed(title="**Himiko Toga**", colour=discord.Colour(int(random.choice(colours)))) embed = discord.Embed(title="**Himiko Toga**", colour=discord.Colour(int(random.choice(colours))))
embed.set_image(url=random.choice(toga_array)) embed.set_image(url=random.choice(toga_array))
embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar)) embed.set_footer(text=f"Requested by {ctx.message.author}", icon_url='{}'.format(userAvatar))
embed.timestamp = datetime.datetime.utcnow()
await ctx.send(embed=embed) await ctx.send(embed=embed)
else: else:

Loading…
Cancel
Save