sjsjd commited on
Commit
b3f2e29
1 Parent(s): 483fd7f

Update main.js

Browse files
Files changed (1) hide show
  1. main.js +7 -3
main.js CHANGED
@@ -111,15 +111,19 @@ async function upts() {
111
  console.log("- monitoring...[ UPTPAGE ]")
112
  } catch(e) {console.log(e)}
113
  }
114
- setInterval(upts,60000)
115
  async function haha()
116
  {
117
  const vid = await axios.get(`https://megu-4.haimothaihai.repl.co/anime-video`);
118
  const vidlink = vid.data.url;
119
  console.log("request: megu-4")
120
  }
121
- setInterval(haha, 60*1000*60*10);
122
- app.set('port', (process.env.PORT || 7860));
 
 
 
 
123
 
124
 
125
  var totaltime = (new Date().getTime() - starttime)/1000;
 
111
  console.log("- monitoring...[ UPTPAGE ]")
112
  } catch(e) {console.log(e)}
113
  }
114
+ //setInterval(upts,60000)
115
  async function haha()
116
  {
117
  const vid = await axios.get(`https://megu-4.haimothaihai.repl.co/anime-video`);
118
  const vidlink = vid.data.url;
119
  console.log("request: megu-4")
120
  }
121
+ //setInterval(haha, 60*1000*60*10);
122
+ const port = 7860;
123
+
124
+ app.listen(port, () => {
125
+ console.log(`[ MEGU] Listen at: ${port}`);
126
+ });
127
 
128
 
129
  var totaltime = (new Date().getTime() - starttime)/1000;