blob: 4ac4ae4e9c6964faa7583581e55cee48c7f22c8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { client } from "../../client";
import { addTrack } from "../../client/addTrack";
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
addTrack(args[i]);
}
}
|