icytv-liq/liq/scripts/queue
2019-01-11 19:36:58 +02:00

16 lines
325 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict'
const net = require('net')
const path = require('path')
let client = net.connect('7004', '127.0.0.1')
client.pipe(process.stdout)
client.once('connect', function () {
if (process.argv[2]) {
client.write('queue.push smart:' + process.argv[2] + '\r\n')
}
client.end('quit\r\n')
})