Spaces:
Sleeping
Sleeping
Rifat Azad commited on
Commit ·
331f6bf
1
Parent(s): f76cef6
update
Browse files- pydvpl_bot.py +3 -2
pydvpl_bot.py
CHANGED
|
@@ -206,7 +206,7 @@ async def update_playing_time_activity():
|
|
| 206 |
minutes, seconds = divmod(uptime_seconds, 60)
|
| 207 |
hours, minutes = divmod(minutes, 60)
|
| 208 |
|
| 209 |
-
playing_time_activity = f"
|
| 210 |
await bot.change_presence(activity=discord.Game(name=playing_time_activity))
|
| 211 |
|
| 212 |
|
|
@@ -268,6 +268,7 @@ async def help(ctx):
|
|
| 268 |
embed = discord.Embed(title="Command List", description="Here's a list of available commands:", color=discord.Color.yellow())
|
| 269 |
|
| 270 |
# Add commands to the embed with descriptions
|
|
|
|
| 271 |
embed.add_field(name="Dvpl Commands:", value="`compress` - Compresses files.\n`decompress` - Decompresses files.", inline=False)
|
| 272 |
embed.add_field(name="User Utility Commands:", value="`ping` - Checks the bot's latency.\n`invite` - Get the bot's invite link.\n`uptime` - Displays the bot's uptime.", inline=False)
|
| 273 |
embed.add_field(name="Admin Utility Commands:", value="`stats` - Displays bot statistics.\n`list` - Lists server members.\n`say` - Make the bot say something.\n`announce` - Announces a message to a channel.\n`activity` - Sets bot activity status.\n`online` - Sets bot status to online.\n`dnd` - Sets bot status to Do Not Disturb.\n`offline` - Sets bot status to offline.\n`clean` - Cleans up bot's messages.", inline=False)
|
|
@@ -276,7 +277,7 @@ async def help(ctx):
|
|
| 276 |
# Customize based on your commands
|
| 277 |
|
| 278 |
# Set the footer
|
| 279 |
-
embed.set_footer(
|
| 280 |
|
| 281 |
# Send the embed as an ephemeral message
|
| 282 |
await ctx.send(embed=embed, ephemeral=True)
|
|
|
|
| 206 |
minutes, seconds = divmod(uptime_seconds, 60)
|
| 207 |
hours, minutes = divmod(minutes, 60)
|
| 208 |
|
| 209 |
+
playing_time_activity = f"/help or >>help for commands list | online for {hours}h {minutes}m" #seconds {seconds}s
|
| 210 |
await bot.change_presence(activity=discord.Game(name=playing_time_activity))
|
| 211 |
|
| 212 |
|
|
|
|
| 268 |
embed = discord.Embed(title="Command List", description="Here's a list of available commands:", color=discord.Color.yellow())
|
| 269 |
|
| 270 |
# Add commands to the embed with descriptions
|
| 271 |
+
embed.add_field(name="PyDVPL Prefix:", value="`/` - Discord's slash command init.\n`>>` - PyDVPL default prefix.")
|
| 272 |
embed.add_field(name="Dvpl Commands:", value="`compress` - Compresses files.\n`decompress` - Decompresses files.", inline=False)
|
| 273 |
embed.add_field(name="User Utility Commands:", value="`ping` - Checks the bot's latency.\n`invite` - Get the bot's invite link.\n`uptime` - Displays the bot's uptime.", inline=False)
|
| 274 |
embed.add_field(name="Admin Utility Commands:", value="`stats` - Displays bot statistics.\n`list` - Lists server members.\n`say` - Make the bot say something.\n`announce` - Announces a message to a channel.\n`activity` - Sets bot activity status.\n`online` - Sets bot status to online.\n`dnd` - Sets bot status to Do Not Disturb.\n`offline` - Sets bot status to offline.\n`clean` - Cleans up bot's messages.", inline=False)
|
|
|
|
| 277 |
# Customize based on your commands
|
| 278 |
|
| 279 |
# Set the footer
|
| 280 |
+
# embed.set_footer(value="Use /help or >>help <command> for more details on a specific command.")
|
| 281 |
|
| 282 |
# Send the embed as an ephemeral message
|
| 283 |
await ctx.send(embed=embed, ephemeral=True)
|