Skip to content

Commit

Permalink
feat: footer & timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
Okaneeee committed Oct 20, 2024
1 parent df42630 commit 5f321f9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/commands/Trigger.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import discord
from discord.ext import commands
from utils.fetcher import multiFetch
from datetime import datetime

class Trigger(commands.Cog):
def __init__(self, bot : commands.Bot) -> None:
Expand Down Expand Up @@ -28,7 +29,8 @@ async def trigger(self, ctx, code : str):
resultEmbed: discord.Embed = discord.Embed(
title="Results",
description=f"Used the code `{code}` on all registered IDs",
colour=discord.Colour.from_rgb(57, 186, 128)
colour=discord.Colour.from_rgb(57, 186, 128),
timestamp=datetime.now()
)

resultEmbed.add_field(name="Success", value=f"for {resp} accounts", inline=False)
Expand All @@ -38,7 +40,10 @@ async def trigger(self, ctx, code : str):
title, val = error.split(" ", 1)
resultEmbed.add_field(name=title, value=val, inline=False)

resultEmbed.set_footer(text="Contact the developer for more information")
resultEmbed.set_footer(
text="Invoked by " + ctx.author.name,
icon_url=ctx.author.avatar
)

await ctx.respond(embed=resultEmbed, ephemeral=True, delete_after=7)

Expand Down

0 comments on commit 5f321f9

Please sign in to comment.