Compare commits
2 Commits
331e0e10a7
...
00cdad3145
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
00cdad3145 | ||
|
|
778778c622 |
4
main.py
4
main.py
@ -139,7 +139,7 @@ async def hello_command(ctx: commands.Context, name: str = "World") -> None:
|
||||
"""Say hello to someone."""
|
||||
await ctx.send(f"Hello, {name}!")
|
||||
|
||||
@bot.command(name="help", description="List all available commands.")
|
||||
@bot.command(name="list-commands", description="List all available commands.")
|
||||
async def help_command(ctx: commands.Context) -> None:
|
||||
"""List all available commands."""
|
||||
# Get all registered commands (both prefix and slash)
|
||||
@ -205,7 +205,7 @@ async def on_message(message: discord.Message) -> None:
|
||||
if message.author == bot.user:
|
||||
return
|
||||
|
||||
# Check if the message is in a guild (server)
|
||||
# Ignore messages in DMs
|
||||
if message.guild is None:
|
||||
return
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user