Spaces:
Sleeping
Sleeping
Rifat Azad commited on
Commit ·
0d9b3bf
1
Parent(s): b4d2f05
update11
Browse files- pydvpl_bot.py +11 -11
pydvpl_bot.py
CHANGED
|
@@ -331,7 +331,7 @@ async def help(ctx):
|
|
| 331 |
# Send the embed as an ephemeral message
|
| 332 |
await ctx.reply(embed=embed, ephemeral=True)
|
| 333 |
|
| 334 |
-
await ctx.reply(f"The command `help` was executed by - {ctx.author.mention}")
|
| 335 |
|
| 336 |
|
| 337 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -343,7 +343,7 @@ async def compress(ctx , attachments: discord.Attachment):
|
|
| 343 |
|
| 344 |
if not attachments:
|
| 345 |
await ctx.reply("No file attached.")
|
| 346 |
-
await ctx.reply(f"The command `compress` was executed by - {ctx.author.mention}")
|
| 347 |
|
| 348 |
return
|
| 349 |
|
|
@@ -381,7 +381,7 @@ async def decompress(ctx, attachments: discord.Attachment):
|
|
| 381 |
|
| 382 |
if not attachments:
|
| 383 |
await ctx.reply("No file attached.")
|
| 384 |
-
await ctx.reply(f"The command `decompress` was executed by - {ctx.author.mention}")
|
| 385 |
|
| 386 |
return
|
| 387 |
|
|
@@ -424,7 +424,7 @@ async def ping(ctx):
|
|
| 424 |
|
| 425 |
await msg.edit(content=f"🏓 Pong! Client latency is {client_latency:.2f}ms. - Shared latency is {shared_latency}ms.")
|
| 426 |
|
| 427 |
-
await ctx.reply(f"The command `ping` was executed by - {ctx.author.mention}")
|
| 428 |
|
| 429 |
|
| 430 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -496,7 +496,7 @@ async def invite(ctx):
|
|
| 496 |
except discord.Forbidden:
|
| 497 |
await ctx.reply(f"Failed to send the invite link to your DM. {ctx.author.mention} Please make sure your DMs are open.")
|
| 498 |
|
| 499 |
-
await ctx.reply(f"The command `invite` was executed by - {ctx.author.mention}")
|
| 500 |
|
| 501 |
|
| 502 |
|
|
@@ -533,7 +533,7 @@ 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 |
|
| 539 |
|
|
@@ -559,7 +559,7 @@ async def uptime(ctx):
|
|
| 559 |
uptime_message = f"{bot_mention} has been playing for - {hours} hours, {minutes} minutes, {seconds} seconds."
|
| 560 |
await ctx.reply(uptime_message)
|
| 561 |
|
| 562 |
-
await ctx.reply(f"The command `uptime` was executed by - {ctx.author.mention}")
|
| 563 |
|
| 564 |
|
| 565 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -583,7 +583,7 @@ async def version(ctx):
|
|
| 583 |
# Send the embed message
|
| 584 |
await ctx.reply(embed=embed)
|
| 585 |
|
| 586 |
-
await ctx.reply(f"The command `version` was executed by - {ctx.author.mention}")
|
| 587 |
|
| 588 |
|
| 589 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -598,7 +598,7 @@ async def clock(ctx):
|
|
| 598 |
|
| 599 |
await ctx.reply(f"Current date and time: `{formatted_now}`")
|
| 600 |
|
| 601 |
-
await ctx.reply(f"The command `clock` was executed by - {ctx.author.mention}")
|
| 602 |
|
| 603 |
|
| 604 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -627,7 +627,7 @@ async def chat(ctx, model, *, message):
|
|
| 627 |
response = bot.chat(message)
|
| 628 |
await msg.edit(content=response)
|
| 629 |
|
| 630 |
-
await ctx.reply(f"The command `chat` was executed by - {ctx.author.mention}")
|
| 631 |
|
| 632 |
|
| 633 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
@@ -666,7 +666,7 @@ async def image(ctx, *, prompt: str):
|
|
| 666 |
print(f"An error occurred while generating images: {e}")
|
| 667 |
await ctx.reply("An error occurred while generating images. Please try again later.")
|
| 668 |
|
| 669 |
-
await ctx.reply(f"The command `image` was executed by - {ctx.author.mention}")
|
| 670 |
|
| 671 |
|
| 672 |
|
|
|
|
| 331 |
# Send the embed as an ephemeral message
|
| 332 |
await ctx.reply(embed=embed, ephemeral=True)
|
| 333 |
|
| 334 |
+
#await ctx.reply(f"The command `help` was executed by - {ctx.author.mention}")
|
| 335 |
|
| 336 |
|
| 337 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 343 |
|
| 344 |
if not attachments:
|
| 345 |
await ctx.reply("No file attached.")
|
| 346 |
+
#await ctx.reply(f"The command `compress` was executed by - {ctx.author.mention}")
|
| 347 |
|
| 348 |
return
|
| 349 |
|
|
|
|
| 381 |
|
| 382 |
if not attachments:
|
| 383 |
await ctx.reply("No file attached.")
|
| 384 |
+
#await ctx.reply(f"The command `decompress` was executed by - {ctx.author.mention}")
|
| 385 |
|
| 386 |
return
|
| 387 |
|
|
|
|
| 424 |
|
| 425 |
await msg.edit(content=f"🏓 Pong! Client latency is {client_latency:.2f}ms. - Shared latency is {shared_latency}ms.")
|
| 426 |
|
| 427 |
+
#await ctx.reply(f"The command `ping` was executed by - {ctx.author.mention}")
|
| 428 |
|
| 429 |
|
| 430 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 496 |
except discord.Forbidden:
|
| 497 |
await ctx.reply(f"Failed to send the invite link to your DM. {ctx.author.mention} Please make sure your DMs are open.")
|
| 498 |
|
| 499 |
+
#await ctx.reply(f"The command `invite` was executed by - {ctx.author.mention}")
|
| 500 |
|
| 501 |
|
| 502 |
|
|
|
|
| 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 |
|
| 539 |
|
|
|
|
| 559 |
uptime_message = f"{bot_mention} has been playing for - {hours} hours, {minutes} minutes, {seconds} seconds."
|
| 560 |
await ctx.reply(uptime_message)
|
| 561 |
|
| 562 |
+
#await ctx.reply(f"The command `uptime` was executed by - {ctx.author.mention}")
|
| 563 |
|
| 564 |
|
| 565 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 583 |
# Send the embed message
|
| 584 |
await ctx.reply(embed=embed)
|
| 585 |
|
| 586 |
+
#await ctx.reply(f"The command `version` was executed by - {ctx.author.mention}")
|
| 587 |
|
| 588 |
|
| 589 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 598 |
|
| 599 |
await ctx.reply(f"Current date and time: `{formatted_now}`")
|
| 600 |
|
| 601 |
+
#await ctx.reply(f"The command `clock` was executed by - {ctx.author.mention}")
|
| 602 |
|
| 603 |
|
| 604 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 627 |
response = bot.chat(message)
|
| 628 |
await msg.edit(content=response)
|
| 629 |
|
| 630 |
+
#await ctx.reply(f"The command `chat` was executed by - {ctx.author.mention}")
|
| 631 |
|
| 632 |
|
| 633 |
# FUNCTION ------------------------------------------------------ SPLIT
|
|
|
|
| 666 |
print(f"An error occurred while generating images: {e}")
|
| 667 |
await ctx.reply("An error occurred while generating images. Please try again later.")
|
| 668 |
|
| 669 |
+
#await ctx.reply(f"The command `image` was executed by - {ctx.author.mention}")
|
| 670 |
|
| 671 |
|
| 672 |
|