f8ufufufu

This commit is contained in:
Slipstream 2025-04-28 22:28:22 -06:00
parent d91dc08298
commit 4f431d0640
Signed by: slipstream
GPG Key ID: 13E498CE010AC6FD

View File

@ -689,7 +689,7 @@ async def remove_timeout(cog: commands.Cog, user_id: str, reason: Optional[str]
except discord.HTTPException as e: print(f"API error remove timeout {user_id}: {e}"); return {"error": f"API error remove timeout {user_id}: {e}"}
except Exception as e: print(f"Unexpected error remove timeout {user_id}: {e}"); traceback.print_exc(); return {"error": f"Unexpected error remove timeout {user_id}: {str(e)}"}
async def calculate(cog: commands.Cog, expression: str) -> Dict[str, Any]:
def calculate(cog: commands.Cog, expression: str) -> Dict[str, Any]:
"""
Evaluates a mathematical expression using the asteval library. Supports common math functions.