modified: Dockerfile
modified: app.py modified: bot.py
This commit is contained in:
4
bot.py
4
bot.py
@@ -648,7 +648,7 @@ async def leave(ctx):
|
||||
|
||||
@client.hybrid_command()
|
||||
async def toggle_feature(ctx, feature: str, state: str):
|
||||
"""Allows admin to enable or disable features based on user permissions."""
|
||||
"""Allows admin to enable or disable features."""
|
||||
user_id = ctx.author.id
|
||||
user_data = load_user_data(user_id)
|
||||
user_perms = user_data["permission"]
|
||||
@@ -687,7 +687,7 @@ if not os.path.exists(CACHE_DIR):
|
||||
|
||||
@client.hybrid_command()
|
||||
async def addnotes(ctx, type: str, *, source: str):
|
||||
"""Fügt eine Notiz hinzu, die später abgefragt werden kann."""
|
||||
"""Adds a note that can be consulted later."""
|
||||
await ctx.defer() # Signalisiert, dass die Bearbeitung des Befehls begonnen hat
|
||||
|
||||
user_id = ctx.author.id
|
||||
|
||||
Reference in New Issue
Block a user