Skip to content

Commit

Permalink
don't send autosync error if bot is archived
Browse files Browse the repository at this point in the history
  • Loading branch information
advaith1 committed Apr 7, 2021
1 parent caa26e3 commit 3339f71
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 82 deletions.
144 changes: 72 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
"datadog-metrics": "^0.9.3",
"debug": "~2.6.9",
"del-i18n": "github:discordextremelist/i18n",
"discord-api-types": "^0.12.1",
"discord.js": "^12.5.1",
"discord-api-types": "^0.13.3",
"discord.js": "^12.5.3",
"ejs": "^3.1.6",
"express": "~4.17.1",
"express-device": "^0.4.2",
"express-sitemap": "^1.8.0",
"html-entities": "^1.4.0",
"http-errors": "~1.6.3",
"i18n": "^0.8.6",
"ioredis": "^4.24.2",
"ioredis": "^4.25.0",
"markdown-it": "^10.0.0",
"moment": "^2.29.1",
"mongodb": "~3.5.11",
Expand All @@ -37,7 +37,7 @@
"passport-discord": "^0.1.4",
"passport-oauth2-refresh": "^2.0.1",
"request": "^2.88.2",
"sanitize-html": "^2.3.2",
"sanitize-html": "^2.3.3",
"typescript": "^4.2.3",
"typescript-transpile-only": "0.0.4"
},
Expand All @@ -47,19 +47,19 @@
"@types/color": "^3.0.1",
"@types/cookie-parser": "^1.4.2",
"@types/cookie-session": "^2.0.42",
"@types/datadog-metrics": "^0.6.0",
"@types/datadog-metrics": "^0.6.1",
"@types/ejs": "^3.0.6",
"@types/express": "^4.17.11",
"@types/http-errors": "^1.8.0",
"@types/i18n": "^0.8.8",
"@types/ioredis": "^4.22.0",
"@types/mongodb": "^3.6.9",
"@types/ioredis": "^4.22.2",
"@types/mongodb": "^3.6.12",
"@types/morgan": "^1.9.2",
"@types/node": "^14.14.34",
"@types/node": "^14.14.37",
"@types/passport": "^1.0.6",
"@types/passport-discord": "^0.1.3",
"@types/passport-oauth2-refresh": "^1.1.1",
"@types/sanitize-html": "^1.27.1",
"@types/sanitize-html": "^1.27.2",
"bulma": "^0.8.2",
"bulma-extensions": "^6.2.7",
"ejs-lint": "^1.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Routes/autosync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ router.get('/bots', async (req, res) => {

if (app.bot_public === false) throw 'Bot is not public'
} catch (e) {
discord.channels.alerts.send(`${settings.emoji.warn} failed to autosync bot **${botExists.name}** \`(${id})\`: ${e}\n<${settings.website.url}/bots/${id}>`)
if (!botExists.status.archived) discord.channels.alerts.send(`${settings.emoji.warn} failed to autosync bot **${botExists.name}** \`(${id})\`: ${e}\n<${settings.website.url}/bots/${id}>`)
}

await global.redis?.hset("autosync", "nextBot", getNext(ids, id))
Expand Down

0 comments on commit 3339f71

Please sign in to comment.