Added new logger
This commit is contained in:
@@ -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)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user