瀏覽代碼

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