Commit cc9b512 1 parent 958eeb7 commit cc9b512 Copy full SHA for cc9b512
File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 3
3
import re
4
4
from datetime import datetime , timezone
5
5
from pathlib import Path
6
- from typing import override
6
+ from typing import Self , override
7
7
8
8
import discord
9
9
from discord import ActivityType , Permissions
@@ -63,6 +63,16 @@ async def on_ready(self):
63
63
logging .info ("nameless* is now operational!" )
64
64
nameless_config ["nameless" ]["start_time" ] = datetime .now (timezone .utc )
65
65
66
+ @override
67
+ async def on_command_error (
68
+ self , ctx : commands .Context [Self ], ex : commands .errors .CommandError
69
+ ):
70
+ await ctx .send (
71
+ "Something went wrong during command execution, "
72
+ + "please notify us on GitHub issue if needed."
73
+ )
74
+ logging .error ("Something went wrong." , exc_info = ex )
75
+
66
76
def start_bot (self , * , is_debug : bool = False ):
67
77
"""Start the bot."""
68
78
logging .info (
You can’t perform that action at this time.
0 commit comments