Skip to content

Commit

Permalink
disable schedule that checks channel for updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ejnshtein committed Sep 1, 2024
1 parent 9207330 commit e7639c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ import '@src/handle-callback-query'
import '@src/commands'

import { botClient } from './tg-api'
import { scheduleJob } from 'node-schedule'
// import { scheduleJob } from 'node-schedule'

import { checkVideos, init } from '@src/check-videos'
// import { checkVideos, init } from '@src/check-videos'

// eslint-disable-next-line no-void,prettier/prettier
void async function main(): Promise<void> {
console.log(await botClient.api.getMe())

await Promise.all([
init(),
botClient.api.setMyCommands([
{
command: 'uploadlastep',
Expand All @@ -24,7 +23,7 @@ void async function main(): Promise<void> {
])
])

scheduleJob('*/10 * * * *', () => checkVideos())
// scheduleJob('*/10 * * * *', () => checkVideos())

// shut down server
async function shutdown() {
Expand Down

0 comments on commit e7639c5

Please sign in to comment.