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):
277
277
activity_type = self .config .get ('activity_type' , - 1 )
278
278
message = self .config .get ('activity_message' , '' )
279
279
280
- normalized_message = ''
281
280
try :
282
281
activity_type = ActivityType (activity_type )
283
282
except ValueError :
284
283
activity_type = - 1
285
284
286
285
if activity_type >= 0 and message :
286
+ normalized_message = message .strip ()
287
287
if activity_type == ActivityType .listening :
288
288
if message .lower ().startswith ('to ' ):
289
289
# Must be listening to...
290
290
normalized_message = message [3 :].strip ()
291
- else :
292
- normalized_message = message . strip ()
291
+ else :
292
+ normalized_message = ''
293
293
294
294
if normalized_message :
295
295
if activity_type == ActivityType .streaming :
You can’t perform that action at this time.
0 commit comments