From 6022e46f016b66ee1538bd2e2855b92fd0a5f3c3 Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 20 Mar 2020 00:21:41 +0100 Subject: [PATCH] channel --- README.md | 2 +- record.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80cca0a..581d815 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ yarn or npm i ``` # Run ``` -node record.js +node record.js ``` # Example ``` diff --git a/record.js b/record.js index 260a23a..13eb3b4 100644 --- a/record.js +++ b/record.js @@ -12,7 +12,7 @@ mumble.connect(process.argv[2] || 'mastodon.madrid', options, (error, connection console.log('Connected') connection.authenticate(process.argv[3] || 'record') connection.on('initialized', () => { - chan = connection.channelByName('Root') + chan = connection.channelByName(process.argv[4] || 'Root') chan.join() }) const encoder = new lame.Encoder({