Removed unused script
This commit is contained in:
@@ -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