Ver Fonte

played isn't added to til a song ends, so should use a stricly < sign to determine if we have a prev track

tarfeef101 há 4 anos atrás
pai
commit
19d2bd4715
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/viki.js

+ 1 - 1
src/viki.js

@@ -402,7 +402,7 @@ client.on('message', async msg =>
 
     // returns the last song played before the current one
     case 'previous':
-      if (played.length <= 1)
+      if (played.length < 1)
       {
         msg.channel.send("No previous song.");
       }