Spaces:
Sleeping
Sleeping
Rifat Azad commited on
Commit ·
5d53788
1
Parent(s): d2289a7
update
Browse files- pydvpl_bot.py +3 -3
pydvpl_bot.py
CHANGED
|
@@ -174,7 +174,7 @@ async def on_command(ctx):
|
|
| 174 |
@bot.event
|
| 175 |
async def on_command_error(ctx, error):
|
| 176 |
if isinstance(error, commands.CommandNotFound):
|
| 177 |
-
await ctx.send("Sorry, I couldn't find that command. Use `>>help` to see the list of available commands.")
|
| 178 |
|
| 179 |
else:
|
| 180 |
print(f'An error occurred: {error}')
|
|
@@ -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">>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 |
|
|
@@ -276,7 +276,7 @@ async def help(ctx):
|
|
| 276 |
# Customize based on your commands
|
| 277 |
|
| 278 |
# Set the footer
|
| 279 |
-
embed.set_footer(text="Use
|
| 280 |
|
| 281 |
# Send the embed as an ephemeral message
|
| 282 |
await ctx.send(embed=embed, ephemeral=True)
|
|
|
|
| 174 |
@bot.event
|
| 175 |
async def on_command_error(ctx, error):
|
| 176 |
if isinstance(error, commands.CommandNotFound):
|
| 177 |
+
await ctx.send("Sorry, I couldn't find that command. Use `/help` or `>>help` to see the list of available commands.")
|
| 178 |
|
| 179 |
else:
|
| 180 |
print(f'An error occurred: {error}')
|
|
|
|
| 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 |
|
|
|
|
| 276 |
# Customize based on your commands
|
| 277 |
|
| 278 |
# Set the footer
|
| 279 |
+
embed.set_footer(text="Use `/help` or `>>help` <command> for more details on a specific command.")
|
| 280 |
|
| 281 |
# Send the embed as an ephemeral message
|
| 282 |
await ctx.send(embed=embed, ephemeral=True)
|