@@ -9,7 +9,7 @@ export default async function ready() {
99
1010 await sleep ( 5000 ) ; // Give some time for the client to stabilize
1111
12- const hotReloadPath = path . resolve ( __dirname , "../../../.temp/hotreload " ) ;
12+ const hotReloadPath = path . resolve ( __dirname , "../../../.temp/restart " ) ;
1313 if ( fs . existsSync ( hotReloadPath ) ) {
1414 try {
1515 const tempData = JSON . parse ( fs . readFileSync ( hotReloadPath , "utf-8" ) ) ;
@@ -24,18 +24,18 @@ export default async function ready() {
2424 }
2525
2626 if ( chatId ) {
27- await client . sendMessage ( chatId , "Hot reload done. " ) ;
27+ await client . sendMessage ( chatId , "Done " ) ;
2828 return ;
2929 }
30- log . error ( "Hot Reload " , "Could not resolve chat ID for message." ) ;
30+ log . error ( "restart " , "Could not resolve chat ID for message." ) ;
3131 } catch ( err ) {
32- log . error ( "Hot Reload " , err ) ;
32+ log . error ( "restart " , err ) ;
3333 } finally {
3434 fs . unlink ( hotReloadPath , ( err ) => {
3535 if ( err ) {
36- log . error ( "Hot Reload " , "Failed to delete hot reload file:" , err ) ;
36+ log . error ( "restart " , "Failed to delete restart file:" , err ) ;
3737 } else {
38- log . info ( "Hot Reload " , "Hot reload file deleted successfully." ) ;
38+ log . info ( "restart " , "Restart file deleted successfully." ) ;
3939 }
4040 } ) ;
4141 }
0 commit comments