File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,21 @@ module.exports = {
8
8
name : "ready" ,
9
9
once : true ,
10
10
execute ( client ) {
11
- const timer = setInterval ( function ( ) {
12
- // Reading data from the file
13
- fs . readFile ( "./data/createvc.json" , "utf-8" , ( err , jsonString ) => {
14
- if ( err ) {
15
- console . log ( "Error reading file from disk:" , err ) ;
16
- return ;
17
- } else {
18
- deleteExistentChannels ( client , jsonString ) ;
19
- }
20
- } ) ;
21
- // Write back to the file
22
- } , 60 * 60 * 1000 ) ;
11
+ const timer = setInterval (
12
+ function ( ) {
13
+ // Reading data from the file
14
+ fs . readFile ( "./data/createvc.json" , "utf-8" , ( err , jsonString ) => {
15
+ if ( err ) {
16
+ console . log ( "Error reading file from disk:" , err ) ;
17
+ return ;
18
+ } else {
19
+ deleteExistentChannels ( client , jsonString ) ;
20
+ }
21
+ } ) ;
22
+ // Write back to the file
23
+ } ,
24
+ 60 * 60 * 1000 ,
25
+ ) ;
23
26
} ,
24
27
} ;
25
28
You can’t perform that action at this time.
0 commit comments