Skip to content

Commit

Permalink
footer, general improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Nov 28, 2023
1 parent a72d727 commit c752336
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cogs/inquiry.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from nextcord import slash_command
from nextcord.ext.commands import Bot, Cog
from datetime import datetime
import nextcord
import json


with open("config.json", "r") as config_file:
config = json.load(config_file)
REQUEST_CHANNEL: int = config["request_channel"]
Expand Down Expand Up @@ -100,8 +102,9 @@ async def callback(self, inter: nextcord.Interaction) -> None:
em.set_author(icon_url=inter.user.avatar, name=inter.user.name)
em.add_field(name="**CONTACT REQUEST ACCEPTED**", value="", inline=False)
em.add_field(name="**reason**", value=self.details.value, inline=False)
# TODO: add extra to footer
em.set_footer(text=f"{inter.user.id}")
current_date = datetime.now().strftime("%m/%d/%Y")
current_time = datetime.now().strftime("%-I:%M %p")
em.set_footer(text=f"{inter.user.id}{current_date}{current_time}")

await new_channel.send(
content=f"<@{inter.user.id}> <@{MARLOW_ID}> <@{ADVERTISING_ROLE}>",
Expand Down Expand Up @@ -134,8 +137,9 @@ async def callback(self, interaction: nextcord.Interaction) -> None:
em = nextcord.Embed()
em.set_author(icon_url=interaction.user.avatar, name=interaction.user.name)
em.add_field(name="**reason**", value=self.details.value)
# TODO: add extra to footer
em.set_footer(text=f"{interaction.user.id}")
current_date = datetime.now().strftime("%m/%d/%Y")
current_time = datetime.now().strftime("%-I:%M %p")
em.set_footer(text=f"{inter.user.id}{current_date}{current_time}")

await target_channel.send(embed=em, view=RequestView())

Expand Down

0 comments on commit c752336

Please sign in to comment.