blob: 630477bd4e70c8afdfab0af34f4071d9372175d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { client } from "../../client";
import { safeTags } from "../../encoding";
/**
* Handles updated music list
* @param {Array} args packet arguments
*/
export const handleFM = (args: string[]) => {
client.resetMusicList();
for (let i = 1; i < args.length - 1; i++) {
// Check when found the song for the first time
client.addTrack(safeTags(args[i]));
}
}
|