Skip to content

Commit

Permalink
[ErrorHandler] add example
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Oct 30, 2023
1 parent fae50bd commit 482c078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion errorhandler/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ async def _error_handler_set(self, ctx: commands.Context, *, code: str):
"""
Set the string to evaluate, use a python code block.
Environment variables:
**Environment variables:**
cf - redbot.core.utils.chat_formatting module
ctx - context of invokation
error - the error that was raised
discord - discord.py library
**Examples:**
- https://sourceb.in/Xalopv0AhZ
"""
body: str = cleanup_code(code)
await self.config.message.set(body)
Expand Down

0 comments on commit 482c078

Please sign in to comment.