forked from Supositware/Haha-Yes
10 lines
No EOL
218 B
JavaScript
10 lines
No EOL
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;
|
|
}; |