Explorar el Código

replaced copy-pasted text with once defined variable

tenessy0570 hace 3 años
padre
commit
913a3df66b
Se han modificado 1 ficheros con 1 adiciones y 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):