icytv-liq/liq/scripts/queue

16 lines
325 B
Plaintext
Raw Permalink Normal View History

2018-12-18 17:38:18 +00:00
#!/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')
}
2019-01-11 17:36:58 +00:00
client.end('quit\r\n')
2018-12-18 17:38:18 +00:00
})