Rifat Azad commited on
Commit
3ec0c8c
·
1 Parent(s): 03c17c6

update 1.3.4

Browse files
Files changed (1) hide show
  1. pydvpl_bot.py +17 -1
pydvpl_bot.py CHANGED
@@ -35,7 +35,7 @@ load_dotenv()
35
  # DEFINES ------------------------------------------------------ START
36
 
37
 
38
- BOT_VERSION = '1.3.3'
39
 
40
  AUTHORIZED_USER_ID = os.getenv('AUTHORIZED_ID')
41
 
@@ -533,6 +533,22 @@ async def feedback(ctx, category: str, *, message: str):
533
 
534
  await ctx.reply(f"Thank you for your {category.lower()}. It has been recorded.")
535
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  #await ctx.reply(f"The command `feedback` was executed by - {ctx.author.mention}")
537
 
538
 
 
35
  # DEFINES ------------------------------------------------------ START
36
 
37
 
38
+ BOT_VERSION = '1.3.4'
39
 
40
  AUTHORIZED_USER_ID = os.getenv('AUTHORIZED_ID')
41
 
 
533
 
534
  await ctx.reply(f"Thank you for your {category.lower()}. It has been recorded.")
535
 
536
+ # Create an Embed object for the feedback data
537
+ embed = discord.Embed(title=f"New {category.lower()} feedback", color=discord.Color.yellow())
538
+ embed.add_field(name="Author ID", value=feedback_data["author_id"], inline=False)
539
+ embed.add_field(name="Author Name", value=feedback_data["author_name"], inline=False)
540
+ embed.add_field(name="Timestamp", value=feedback_data["timestamp"], inline=False)
541
+ embed.add_field(name="Message", value=feedback_data["message"], inline=False)
542
+
543
+ # Send the embed to the specified channel
544
+ feedback_channel_id = 1225913942564540616
545
+ feedback_channel = ctx.guild.get_channel(feedback_channel_id)
546
+ if feedback_channel:
547
+ await feedback_channel.send(embed=embed)
548
+ else:
549
+ print("Feedback channel not found.")
550
+
551
+
552
  #await ctx.reply(f"The command `feedback` was executed by - {ctx.author.mention}")
553
 
554