modified: Dockerfile

modified:   app.py
	modified:   bot.py
This commit is contained in:
SimolZimol
2024-09-06 10:26:46 +02:00
parent a59f6eefdf
commit 13c7fec864
3 changed files with 97 additions and 3 deletions

4
bot.py
View File

@@ -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