Fix hosting problems

This commit is contained in:
Divam 2023-09-04 17:07:23 +03:00
parent 8c93ef6eba
commit c0be334efd

View File

@ -2,12 +2,6 @@ const { Telegraf } = require('telegraf');
require('dotenv').config();
const cron = require('node-cron');
// Pinging my site
cron.schedule('*/10 * * * *', () => {
console.log('Pinging server');
fetch('https://aynt.onrender.com/');
});
let bot;
if (process.env.LOCAL_SERVER) {
bot = new Telegraf(process.env.BOT_TOKEN, { telegram: { apiRoot: process.env.LOCAL_SERVER } });