Rifat Azad commited on
Commit
fbfca6e
·
1 Parent(s): 3cac37d
Files changed (1) hide show
  1. pydvpl_bot.py +15 -0
pydvpl_bot.py CHANGED
@@ -403,6 +403,7 @@ async def decompress(ctx, attachments: discord.Attachment):
403
  async def ping(ctx):
404
  latency = round(bot.latency * 1000) # latency in milliseconds
405
  await ctx.send(f"Pong! Bot latency is {latency}ms.")
 
406
  await ctx.send(f"The command `ping` was executed by - {ctx.author.mention}")
407
 
408
 
@@ -439,6 +440,8 @@ async def invite(ctx):
439
  except discord.Forbidden:
440
  await ctx.send(f"Failed to send the invite link to your DM. {ctx.author.mention} Please make sure your DMs are open.")
441
 
 
 
442
 
443
 
444
  # FUNCTION ------------------------------------------------------ SPLIT
@@ -473,6 +476,8 @@ async def feedback(ctx, category: str, *, message: str):
473
  json.dump(data, f, indent=4)
474
 
475
  await ctx.send(f"Thank you for your {category.lower()}. It has been recorded.")
 
 
476
 
477
 
478
 
@@ -498,6 +503,8 @@ async def uptime(ctx):
498
  uptime_message = f"{bot_mention} has been playing for - {hours} hours, {minutes} minutes, {seconds} seconds."
499
  await ctx.send(uptime_message)
500
 
 
 
501
 
502
  # FUNCTION ------------------------------------------------------ SPLIT
503
 
@@ -520,6 +527,8 @@ async def version(ctx):
520
  # Send the embed message
521
  await ctx.send(embed=embed)
522
 
 
 
523
 
524
  # FUNCTION ------------------------------------------------------ SPLIT
525
 
@@ -533,6 +542,8 @@ async def clock(ctx):
533
 
534
  await ctx.send(f"Current date and time: `{formatted_now}`")
535
 
 
 
536
 
537
  # FUNCTION ------------------------------------------------------ SPLIT
538
 
@@ -558,6 +569,8 @@ async def chat(ctx, model, *, message):
558
  response = bot.chat(message)
559
  await ctx.send(response)
560
 
 
 
561
 
562
  # FUNCTION ------------------------------------------------------ SPLIT
563
 
@@ -592,6 +605,8 @@ async def image(ctx, *, prompt: str):
592
  except Exception as e:
593
  await ctx.send(f"An error occurred while generating images: {e}")
594
 
 
 
595
 
596
  # UTILITY USER_CMD ------------------------------------------------------ END
597
 
 
403
  async def ping(ctx):
404
  latency = round(bot.latency * 1000) # latency in milliseconds
405
  await ctx.send(f"Pong! Bot latency is {latency}ms.")
406
+
407
  await ctx.send(f"The command `ping` was executed by - {ctx.author.mention}")
408
 
409
 
 
440
  except discord.Forbidden:
441
  await ctx.send(f"Failed to send the invite link to your DM. {ctx.author.mention} Please make sure your DMs are open.")
442
 
443
+ await ctx.send(f"The command `invite` was executed by - {ctx.author.mention}")
444
+
445
 
446
 
447
  # FUNCTION ------------------------------------------------------ SPLIT
 
476
  json.dump(data, f, indent=4)
477
 
478
  await ctx.send(f"Thank you for your {category.lower()}. It has been recorded.")
479
+
480
+ await ctx.send(f"The command `feedback` was executed by - {ctx.author.mention}")
481
 
482
 
483
 
 
503
  uptime_message = f"{bot_mention} has been playing for - {hours} hours, {minutes} minutes, {seconds} seconds."
504
  await ctx.send(uptime_message)
505
 
506
+ await ctx.send(f"The command `uptime` was executed by - {ctx.author.mention}")
507
+
508
 
509
  # FUNCTION ------------------------------------------------------ SPLIT
510
 
 
527
  # Send the embed message
528
  await ctx.send(embed=embed)
529
 
530
+ await ctx.send(f"The command `version` was executed by - {ctx.author.mention}")
531
+
532
 
533
  # FUNCTION ------------------------------------------------------ SPLIT
534
 
 
542
 
543
  await ctx.send(f"Current date and time: `{formatted_now}`")
544
 
545
+ await ctx.send(f"The command `clock` was executed by - {ctx.author.mention}")
546
+
547
 
548
  # FUNCTION ------------------------------------------------------ SPLIT
549
 
 
569
  response = bot.chat(message)
570
  await ctx.send(response)
571
 
572
+ await ctx.send(f"The command `chat` was executed by - {ctx.author.mention}")
573
+
574
 
575
  # FUNCTION ------------------------------------------------------ SPLIT
576
 
 
605
  except Exception as e:
606
  await ctx.send(f"An error occurred while generating images: {e}")
607
 
608
+ await ctx.send(f"The command `image` was executed by - {ctx.author.mention}")
609
+
610
 
611
  # UTILITY USER_CMD ------------------------------------------------------ END
612