Fixed shit not working...

This commit is contained in:
BurnyLlama 2022-06-01 12:39:51 +02:00
parent 5d4a3baef3
commit 005799b398

View File

@ -10,7 +10,7 @@ const getIp = async () => await publicIp.v4({ onlyHttps: true })
const currentIp = await getIp() const currentIp = await getIp()
const cachedOldIp = fs.readFileSync("./ip.cache").toString() const cachedOldIp = fs.readFileSync("./ip.cache").toString()
let oldIp = cachedOldIp ? oldIp : currentIp let oldIp = cachedOldIp ? cachedOldIp : currentIp
async function checkIp(sendMessage) { async function checkIp(sendMessage) {
log("Checking for IP changes...") log("Checking for IP changes...")