File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -13,19 +13,16 @@ process.setMaxListeners(0);
1313
1414
1515// Global Vars
16- var packageJson = { } ;
17- fs . readFile ( './package.json' , function ( data ) {
18- return packageJson = data ;
19- } ) ;
20- const waldyBotVersion = packageJson [ "version" ] ;
16+ var packageJson = JSON . parse ( fs . readFileSync ( './package.json' , 'utf8' ) ) ;
17+ var waldyBotVersion = packageJson [ "version" ] ;
2118const authToken = globalVarsObjs . authenticationObject . authToken ; // WaldyBot
2219const authTokenBeta = globalVarsObjs . authenticationObject . authTokenBeta ; // WaldyBot Beta
2320
2421
2522// Startup
2623client . on ( 'ready' , ( ) => {
27- console . log ( 'Ready....' ) ;
28- console . log ( waldyBotVersion ) ;
24+ console . log ( 'v' + waldyBotVersion ) ;
25+ console . log ( 'Ready....' ) ;
2926}
3027) ;
3128
You can’t perform that action at this time.
0 commit comments