소스 검색

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.");
       }