Explorar o código

replaced copy-pasted text with once defined variable

tenessy0570 %!s(int64=3) %!d(string=hai) anos
pai
achega
913a3df66b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      utils.py

+ 1 - 1
utils.py

@@ -30,7 +30,7 @@ def _get_song_name_from_message(message):
     parsed_msg = message.content.split(' ')
     if len(parsed_msg) == 1:
         raise NameError("Song name can't be empty!")
-    return ''.join(message.content.split(' ')[1:])
+    return ''.join(parsed_msg[1:])
 
 
 def _get_movie_id(videos_search):