@@ -2,14 +2,15 @@ import ObsSwitcher from "./components/ObsSwitcher";
2
2
import Chat from "./components/Chat" ;
3
3
import NodeMediaServer from "./components/NodeMediaServer" ;
4
4
import config from "../config" ;
5
+ import { version } from "../package.json" ;
5
6
6
7
console . log ( `
7
8
███╗ ██╗ ██████╗ █████╗ ██╗ ██████╗ ███████╗
8
9
████╗ ██║██╔═══██╗██╔══██╗██║ ██╔══██╗██╔════╝
9
10
██╔██╗ ██║██║ ██║███████║██║ ██████╔╝███████╗
10
11
██║╚██╗██║██║ ██║██╔══██║██║ ██╔══██╗╚════██║
11
12
██║ ╚████║╚██████╔╝██║ ██║███████╗██████╔╝███████║
12
- ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝ v${ process . env . npm_package_version }
13
+ ╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝ v${ version }
13
14
` ) ;
14
15
15
16
const obs = new ObsSwitcher (
@@ -22,7 +23,12 @@ const obs = new ObsSwitcher(
22
23
) ;
23
24
24
25
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
+ ) ;
26
32
}
27
33
28
- const nodeMediaServer = new NodeMediaServer ( config . nodeMediaServer , obs ) ;
34
+ const nodeMediaServer = new NodeMediaServer ( config . nodeMediaServer , obs ) ;
0 commit comments