-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: implement first rough mvp #1
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked mainly at the @discordjs/voice
-specific code but that looks good to me so far 🚀
try { | ||
await entersState(this.voiceConnection, VoiceConnectionStatus.Ready, 20_000); | ||
} catch { | ||
if (this.voiceConnection.state.status !== VoiceConnectionStatus.Destroyed) { | ||
this.voiceConnection.destroy(); | ||
} | ||
} finally { | ||
this.readyLock = false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to remember to change this at some point, because at the moment it prevents a 5 rejoin attempt limit and replaces it with a 20 second hard cap.
There's a few issues with this. While an interesting concept, Just my take. |
This comment has been minimized.
This comment has been minimized.
f3e3a86
to
5c92a14
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This plus @amishshah's review 19 days ago.
const clientId = req.params.clientId; | ||
const guildId = req.params.guildId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not something like this?
const clientId = req.params.clientId; | |
const guildId = req.params.guildId; | |
const { clientId, guildId } = req.params; |
// @ts-ignore | ||
const { entries } = await youtubedl(`ytsearch10:${search}`, { dumpSingleJson: '' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is it ignored? What's the 10
in the search? Is it not possible to search in SoundCloud as well like Lavalink does?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The types are wrong/don't support
dumpSingleJson
. n
refers to the number of results wanted.- Probably could, but I wanted to avoid the user doing
ytsearchN
themselves, so there needs to be a nicer way to handle this then.
No description provided.