This commit is contained in:
NoLogicAlan committed 2026-05-31 16:58:42 +03:00
1 parent ba479e4c04
commit 441eb4406e
7 files changed
+29 -24

No files matched your search

+4 -4
View File
@@ -1111,7 +1111,7 @@ export class GatewayHandler {
/**
* Rejoin a voice channel after an unexpected disconnect.
* Used by the $prefix247 auto mode to automatically reconnect.
* Used by the %247 auto mode to automatically reconnect.
*
* Includes deduplication (prevents concurrent rejoin for the same channel)
* and retry with exponential backoff for transient failures like track
@@ -1332,9 +1332,9 @@ export class GatewayHandler {
/**
* Rejoin all 24/7 channels after boot with staggered delays.
*
* Both $prefix247 auto and $prefix247 on channels are rejoined because:
* $prefix247 auto: always stays in voice (disconnect + reboot)
* $prefix247 on: only on reboot, not on disconnect
* Both %247 auto and %247 on channels are rejoined because:
* %247 auto: always stays in voice (disconnect + reboot)
* %247 on: only on reboot, not on disconnect
*
* Channels are rejoined one at a time with a delay between each to
* avoid overwhelming the LiveKit server with concurrent track publications.
+4 -4
View File
@@ -5,7 +5,7 @@
* - Auth flow (desktop API: get token → user authorizes → get session)
* - Now-playing notification (track.scrobble with timestamp=0)
* - Full scrobble after threshold (50% of track or 4 min, whichever is less)
* - Fetch loved / top / recent tracks for $prefixplay lastfm loved/top/recent
* - Fetch loved / top / recent tracks for %play lastfm loved/top/recent
* - Per-user session key storage in MySQL table `lastfm_users`
*
* Last.fm API docs: https:
@@ -496,7 +496,7 @@ export class LastFmManager {
}
/**
* Get track info (play count, tags, etc.) for the $prefixnp embed.
* Get track info (play count, tags, etc.) for the %np embed.
*/
async getTrackInfo(artist, track, userId = null) {
if (!this.enabled) return null;
@@ -571,7 +571,7 @@ export class LastFmManager {
/**
* Search Last.fm for a freeform track query and return the best match.
* Useful for `$prefixplay lastfm: kendrick lamar luther` where artist/title
* Useful for `%play lastfm: kendrick lamar luther` where artist/title
* boundaries are ambiguous.
*
* @param {string} query
@@ -1476,7 +1476,7 @@ export class LastFmManager {
}
/**
* Get the user's top albums (for $prefixlastfm play albums).
* Get the user's top albums (for %lastfm play albums).
* @param {string} userId
* @param {string} [period="overall"] - overall | 7day | 1month | 3month | 6month | 12month
* @param {number} [limit=20]
+3 -3
View File
@@ -415,9 +415,9 @@ export default class Player extends EventEmitter {
* Get the 24/7 mode for this player's channel.
* Returns "auto", "on", or "off".
*
* $prefix247 auto: bot stays in voice always (never leaves, auto-rejoins on disconnect + reboot)
* $prefix247 on: bot stays in voice always (never leaves due to inactivity, rejoins on reboot)
* $prefix247 off: bot leaves when inactive
* %247 auto: bot stays in voice always (never leaves, auto-rejoins on disconnect + reboot)
* %247 on: bot stays in voice always (never leaves due to inactivity, rejoins on reboot)
* %247 off: bot leaves when inactive
*/
_get247Mode() {
if (!this._guildId) return "off";