10 lines
218 B
JavaScript
10 lines
218 B
JavaScript
|
const fetch = require('node-fetch');
|
||
|
const { Hapi } = require('../config.json');
|
||
|
|
||
|
module.exports = async function () {
|
||
|
if (Hapi) {
|
||
|
var res = await fetch(Hapi);
|
||
|
return res.status === 200;
|
||
|
} else
|
||
|
return false;
|
||
|
};
|