@@ -71,7 +71,7 @@ def __init__(self):
71
71
self ._api = None
72
72
self .metadata_loop = None
73
73
self .formatter = SafeFormatter ()
74
- self .loaded_cogs = [' cogs.modmail' , ' cogs.plugins' , ' cogs.utility' ]
74
+ self .loaded_cogs = [" cogs.modmail" , " cogs.plugins" , " cogs.utility" ]
75
75
76
76
self ._connected = asyncio .Event ()
77
77
self .start_time = datetime .utcnow ()
@@ -829,7 +829,7 @@ async def process_commands(self, message):
829
829
830
830
thread = await self .threads .find (channel = ctx .channel )
831
831
if thread is not None :
832
- if self .config .get (' reply_without_command' ):
832
+ if self .config .get (" reply_without_command" ):
833
833
await thread .reply (message )
834
834
else :
835
835
await self .api .append_log (message , type_ = "internal" )
@@ -857,7 +857,7 @@ async def _void(*_args, **_kwargs):
857
857
if thread :
858
858
await thread .channel .trigger_typing ()
859
859
else :
860
- if not self .config .get (' mod_typing' ):
860
+ if not self .config .get (" mod_typing" ):
861
861
return
862
862
863
863
thread = await self .threads .find (channel = channel )
@@ -895,7 +895,7 @@ async def on_raw_reaction_add(self, payload):
895
895
896
896
if isinstance (channel , discord .DMChannel ):
897
897
if str (reaction ) == str (close_emoji ): # closing thread
898
- if not self .config .get (' recipient_thread_close' ):
898
+ if not self .config .get (" recipient_thread_close" ):
899
899
return
900
900
thread = await self .threads .find (recipient = user )
901
901
ts = message .embeds [0 ].timestamp if message .embeds else None
@@ -953,8 +953,7 @@ async def on_member_remove(self, member):
953
953
thread = await self .threads .find (recipient = member )
954
954
if thread :
955
955
embed = discord .Embed (
956
- description = "The recipient has left the server." ,
957
- color = self .error_color ,
956
+ description = "The recipient has left the server." , color = self .error_color
958
957
)
959
958
await thread .channel .send (embed = embed )
960
959
@@ -1018,9 +1017,7 @@ async def on_command_error(self, context, exception):
1018
1017
elif isinstance (exception , commands .BadArgument ):
1019
1018
await context .trigger_typing ()
1020
1019
await context .send (
1021
- embed = discord .Embed (
1022
- color = self .error_color , description = str (exception )
1023
- )
1020
+ embed = discord .Embed (color = self .error_color , description = str (exception ))
1024
1021
)
1025
1022
elif isinstance (exception , commands .CommandNotFound ):
1026
1023
logger .warning ("CommandNotFound: %s" , exception )
0 commit comments