Skip to content

Commit 95b951e

Browse files
committed
Remove env variable
1 parent 2aaad0c commit 95b951e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

lib/app.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/app.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ import ObsSwitcher from "./components/ObsSwitcher";
22
import Chat from "./components/Chat";
33
import NodeMediaServer from "./components/NodeMediaServer";
44
import config from "../config";
5+
import { version } from "../package.json";
56

67
console.log(`
78
███╗ ██╗ ██████╗ █████╗ ██╗ ██████╗ ███████╗
89
████╗ ██║██╔═══██╗██╔══██╗██║ ██╔══██╗██╔════╝
910
██╔██╗ ██║██║ ██║███████║██║ ██████╔╝███████╗
1011
██║╚██╗██║██║ ██║██╔══██║██║ ██╔══██╗╚════██║
1112
██║ ╚████║╚██████╔╝██║ ██║███████╗██████╔╝███████║
12-
╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝ v${process.env.npm_package_version}
13+
╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝ v${version}
1314
`);
1415

1516
const obs = new ObsSwitcher(
@@ -22,7 +23,12 @@ const obs = new ObsSwitcher(
2223
);
2324

2425
if (config.twitchChat.enable) {
25-
const chat = new Chat(config.twitchChat.botUsername, config.twitchChat.oauth, config.twitchChat.channel, obs);
26+
const chat = new Chat(
27+
config.twitchChat.botUsername,
28+
config.twitchChat.oauth,
29+
config.twitchChat.channel,
30+
obs
31+
);
2632
}
2733

28-
const nodeMediaServer = new NodeMediaServer(config.nodeMediaServer, obs);
34+
const nodeMediaServer = new NodeMediaServer(config.nodeMediaServer, obs);

0 commit comments

Comments
 (0)