11"use strict" ;
22
3- import App from "./src/ structures/App" ;
3+ import App from "./structures/App" ;
44import colors from "colors" ;
55import os from "os" ;
66import readline from "readline" ;
@@ -15,7 +15,7 @@ process.on("unhandledRejection", (reason: any, p: any) => {
1515
1616process . on ( "uncaughtException" , ( err : Error , origin : string ) => {
1717 console . log (
18- "\n\n\n\n\n\n=== uncaught Exception ===" . toUpperCase ( ) . yellow . dim ,
18+ "\n\n\n\n\n\n=== uncaught Exception ===" . toUpperCase ( ) . yellow . dim
1919 ) ;
2020 console . log ( "Exception: " , err . stack ? err . stack : err ) ;
2121 console . log ( "=== uncaught Exception ===\n\n\n\n\n" . toUpperCase ( ) . yellow . dim ) ;
@@ -41,17 +41,17 @@ process.on(
4141 "multipleResolves" ,
4242 ( type : string , promise : Promise < any > , reason : any ) => {
4343 // Do something for multipleResolves event
44- } ,
44+ }
4545) ;
4646
4747function getIPv4Addresses ( ) : string | undefined {
4848 const networkInterfaces = os . networkInterfaces ( ) ;
4949 let ipv4Address : string | undefined ;
5050
5151 Object . keys ( networkInterfaces ) . forEach ( ( interfaceName ) => {
52- const interfaceInfo = networkInterfaces [ interfaceName ] ;
52+ const interfaceInfo : any = networkInterfaces [ interfaceName ] ;
5353
54- interfaceInfo . forEach ( ( info ) => {
54+ interfaceInfo . forEach ( ( info : any ) => {
5555 if ( info . family === "IPv4" && info . internal === false ) {
5656 ipv4Address = info . address ;
5757 }
@@ -80,8 +80,8 @@ new Promise<void>((resolve) => {
8080 value === "All"
8181 ? `${ value } `
8282 : `${ value } :${ client . config . website . port } `
83- } `,
84- ) ,
83+ } `
84+ )
8585 ) ;
8686 } ) ;
8787 console . log ( colors . yellow . bold ( `Or just press enter to go with env ips \n` ) ) ;
@@ -103,7 +103,7 @@ new Promise<void>((resolve) => {
103103 }
104104 }
105105
106- const allips = client . config . website . links . map ( ( val ) => {
106+ const allips = client . config . website . links . map ( ( val : any ) => {
107107 return ( val = `${ val } :${ client . config . website . port } ` ) ;
108108 } ) ;
109109
0 commit comments