Fixed shit not working...
This commit is contained in:
parent
5d4a3baef3
commit
005799b398
|
@ -10,7 +10,7 @@ const getIp = async () => await publicIp.v4({ onlyHttps: true })
|
|||
|
||||
const currentIp = await getIp()
|
||||
const cachedOldIp = fs.readFileSync("./ip.cache").toString()
|
||||
let oldIp = cachedOldIp ? oldIp : currentIp
|
||||
let oldIp = cachedOldIp ? cachedOldIp : currentIp
|
||||
|
||||
async function checkIp(sendMessage) {
|
||||
log("Checking for IP changes...")
|
||||
|
|
Loading…
Reference in New Issue
Block a user