diff options
author | Florrie <towerofnix@gmail.com> | 2020-07-15 21:20:39 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-05-16 19:06:05 -0300 |
commit | afeda69313e0250d654986ba0203974c56b30670 (patch) | |
tree | 74ceab4ffce0f7c722374596ddeb7b6ca45d46d2 /index.js | |
parent | 1be05b974e5ff09fbab1cda89b2f4223cd97bedb (diff) |
basic command log implementation
Diffstat (limited to 'index.js')
-rwxr-xr-x | index.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/index.js b/index.js index 2c352cd..efee187 100755 --- a/index.js +++ b/index.js @@ -64,6 +64,7 @@ async function main() { 'player-options': {type: 'series'}, 'stress-test': {type: 'flag'}, 'socket-client': {type: 'value'}, + 'socket-name': {type: 'value'}, 'socket-server': {type: 'value'}, 'telnet-server': {type: 'flag'}, 'skip-config-file': {type: 'flag'}, @@ -200,6 +201,12 @@ async function main() { attachBackendToSocketClient(backend, socketClient, { getPlaylistSources: () => appElement.playlistSources }) + + let nickname = process.env.USER + if (options['socket-name']) { + nickname = options['socket-name'] + } + socketClient.setNickname(nickname) } if (options['stress-test']) { |