Переглянути джерело

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

tarfeef101 4 роки тому
батько
коміт
19d2bd4715
1 змінених файлів з 1 додано та 1 видалено
  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.");
       }