Explorar o código

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

tarfeef101 %!s(int64=4) %!d(string=hai) anos
pai
achega
19d2bd4715
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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.");
       }