0.0.5-alpha • Published 2 years ago
foguete-lavalink v0.0.5-alpha
Functions
Connect Nodes
connectNodes([{ host: 'example.com', secure: true, password: '123', port: undefined }], { shards: 1, botId: '1111111111111111' })
Observation: Just one node is supported for now.
Get Track
getTrack(ws (got from connectNodes), musicName)
Example:
let track = getTrack(ws, 'Rick roll')
Play Music
playMusic(ws (got from connectNodes), musicTrack (got from getTrach), guildId)
Example:
let track = getTrack(ws, 'Rick roll')
playMusic(ws, track, '1111111111111111111')
Get Lavalink Events
getEvents()
Example:
let ws = connectNodes([{ host: 'example.com', secure: true, password: '123', port: undefined }], { shards: 1, botId: '1111111111111111' })
let events = getEvents()
events.on('trackStartEvent', () => console.log('Track started'))
0.0.5-alpha
2 years ago
0.0.4-alpha
2 years ago
0.0.3-alpha
2 years ago
0.0.2-alpha
2 years ago
0.0.1-alpha
2 years ago