Skip to content

Commit

Permalink
fix wrong comparison bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vaaski committed Jun 28, 2024
1 parent a45d7b2 commit d566894
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bot.on("message:text", async (ctx, next) => {
})

bot.on("message:text", async (ctx, next) => {
if (updater.updating === null) return await next()
if (updater.updating === false) return await next()

const maintenanceNotice = await ctx.replyWithHTML(
"Bot is currently under maintenance, it'll return shortly.",
Expand Down
2 changes: 1 addition & 1 deletion src/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export class Updater {
try {
const result = await updateYTDLP()

console.log("yt-dlp updated")
console.log(result.stdout)
console.log("yt-dlp updated")
} catch (error) {
if (error instanceof Error) {
console.error("yt-dlp update failed")
Expand Down

0 comments on commit d566894

Please sign in to comment.