File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -277,19 +277,19 @@ async def on_ready(self):
277277 activity_type = self .config .get ('activity_type' , - 1 )
278278 message = self .config .get ('activity_message' , '' )
279279
280- normalized_message = ''
281280 try :
282281 activity_type = ActivityType (activity_type )
283282 except ValueError :
284283 activity_type = - 1
285284
286285 if activity_type >= 0 and message :
286+ normalized_message = message .strip ()
287287 if activity_type == ActivityType .listening :
288288 if message .lower ().startswith ('to ' ):
289289 # Must be listening to...
290290 normalized_message = message [3 :].strip ()
291- else :
292- normalized_message = message . strip ()
291+ else :
292+ normalized_message = ''
293293
294294 if normalized_message :
295295 if activity_type == ActivityType .streaming :
You can’t perform that action at this time.
0 commit comments