Removed unused script
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
"db:studio": "drizzle-kit studio",
|
||||
"db:start": "docker compose -f dev-db.yml up -d",
|
||||
"db:stop": "docker compose -f dev-db.yml down",
|
||||
"bot:update": "tsx scripts/update-bot.ts",
|
||||
"push:prod": "tsx scripts/deploy-commands.ts",
|
||||
"push:dev": "tsx scripts/dev-deploy.ts",
|
||||
"delete:dev": "tsx scripts/delete-commands.ts"
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import axios from "axios"
|
||||
import { log } from "../src/utils/Logger.js"
|
||||
|
||||
const url = process.env.WATCHTOWERURL
|
||||
const token = process.env.WATCHTOWERTOKEN
|
||||
|
||||
if (!url || !token) {
|
||||
throw new Error("Missing WATCHTOWERURL or WATCHTOWERTOKEN")
|
||||
}
|
||||
|
||||
await axios.get(url, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`
|
||||
}
|
||||
}).then(() => {
|
||||
log("Illegitimate bot updated", "info")
|
||||
}).catch(err => {
|
||||
console.error("Error updating bot", err)
|
||||
})
|
||||
Reference in New Issue
Block a user