Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something inconvenient (생각나는 개선사항들) #14

Open
iSwanGit opened this issue May 27, 2021 · 2 comments
Open

Something inconvenient (생각나는 개선사항들) #14

iSwanGit opened this issue May 27, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@iSwanGit
Copy link
Owner

iSwanGit commented May 27, 2021

랜덤재생: 한번 섞냐, 매번 섞냐?

  • 구현된 랜덤 알고리즘 특성상 완벽한 셔플을 돌리기 쉽지 않음
  • 들었던 곡이 여러번 또나오는 현상이 발생
  • 랜덤 재생시 이전에 들었던 곡을 기억하는 옵션을 추가해 똑같은 곡이 또나오는 것을 방지
    (선택가능, 옵션이 켜지는 시점에서 기억)
  • 다음 리스트가 없으면 전체 리스트 한번 섞어서 받아온 다음에 하나씩 shift하는 것도 괜찮을듯
  • 곡이 추가되면 그거 먼저 재생한다음 끝나면 다시 랜덤

셔플

  • 이미 있는 대기열 안에서 섞기

일시정지

  • dispatcher 에 있는 기능

최근재생

  • 3~5개 길이 정도의 리스트맵?
@iSwanGit iSwanGit added the enhancement New feature or request label May 27, 2021
@iSwanGit
Copy link
Owner Author

셔플 및 일시정지 기능은 092fc16 에서 구현완료.

참고: discord.js 스펙이 변경되어 dispatcher 대신 audioPlayer를 사용합니다.

@iSwanGit
Copy link
Owner Author

iSwanGit commented Jan 13, 2022

최근 재생 - 54c94d3
(DB 쿼리가 아니라 로컬 변수로 구현해서 봇 인스턴스가 재시작되면 사라짐)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant