Added new logger

This commit is contained in:
2024-11-14 18:44:07 +01:00
parent c868edcae4
commit d938dd9d3e
16 changed files with 81 additions and 129 deletions

View File

@@ -1,4 +1,5 @@
import axios from "axios"
import { log } from "../src/utils/Logger.js"
const url = process.env.WATCHTOWERURL
const token = process.env.WATCHTOWERTOKEN
@@ -12,7 +13,7 @@ await axios.get(url, {
Authorization: `Bearer ${token}`
}
}).then(() => {
console.log("Illegitimate bot updated")
log("Illegitimate bot updated")
}).catch(err => {
console.error("Error updating bot", err)
})