async function loop() {
        const time = new Date();
        let today = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
        let { LastBump, NextBump } = require("./time.json")
        //SEEING IF WE NEED TO BUMP
        if(NextBump <= today){
            BumpChannel.send("!d bump")
            let NextBump = (`${time.getHours()+2}:${time.getMinutes() + 2}:${time.getSeconds()}`)
            let DataForJson = {
                "LastBump": today,
                "NextBump": NextBump
            }
            const JsonData = JSON.stringify(DataForJson)
            fs.writeFileSync("./time.json", JsonData)
            timetillbump = 122 * 60
        }
        else{
            //HERE WE SEE HOW MUCH TIME WE NEED TO WAIT UNTILL WE CAN BUMP AGAIN
            //NextBump TO SECONDS
            var p = NextBump.split(':'),
                    s = 0, m = 1;
            
                while (p.length > 0) {
                    s += m * parseInt(p.pop(), 10);
                    m *= 60;
                }
            let nextbump_s = s
            //today TO SECONDS
            var p = today.split(':'),
                    s = 0, m = 1;
            
                while (p.length > 0) {
                    s += m * parseInt(p.pop(), 10);
                    m *= 60;
                }
            let today_s = s
            timetillbump = nextbump_s - today_s
        } 
    }
//NOW CREATING A FUNCTION THAT KEEPS LOOPING
NOW CREATING A FUNCTION THAT KEEPS LOOPING
NOW CREATING A FUNCTION THAT KEEPS LOOPING
async function loop() {
        const time = new Date();
        let today = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds()
        let { LastBump, NextBump } = require("./time.json")
        if(NextBump <= today){
            BumpChannel.send("!d bump")
            let NextBump = (`${time.getHours()+2}:${time.getMinutes() + 2}:${time.getSeconds()}`)
            let DataForJson = {
                "LastBump": today,
                "NextBump": NextBump
            }
            const JsonData = JSON.stringify(DataForJson)
            fs.writeFileSync("./time.json", JsonData)
            timetillbump = 122 * 60
        }
        else{
            var p = NextBump.split(':'),
                    s = 0, m = 1;
                while (p.length > 0) {
                    s += m * parseInt(p.pop(), 10);
                    m *= 60;
                }
            let nextbump_s = s
            var p = today.split(':'),
                    s = 0, m = 1;
                while (p.length > 0) {
                    s += m * parseInt(p.pop(), 10);
                    m *= 60;
                }
            let today_s = s
            timetillbump = nextbump_s - today_s
        } 
    }
async function loop ( ) { const time = new Date ( ) ; let today = time . getHours ( ) + ":" + time . getMinutes ( ) + ":" + time . getSeconds ( ) let { LastBump , NextBump } = require ( "./time.json" ) if ( NextBump <= today ) { BumpChannel . send ( "!d bump" ) let NextBump = ( ` ${ time . getHours ( ) + 2 } ${ time . getMinutes ( ) + 2 } ${ time . getSeconds ( ) } ` ) let DataForJson = { "LastBump" : today , "NextBump" : NextBump } const JsonData = JSON . stringify ( DataForJson ) fs . writeFileSync ( "./time.json" , JsonData ) timetillbump = 122 * 60 } else { var p = NextBump . split ( ':' ) , s = 0 , m = 1 ; while ( p . length > 0 ) { s += m * parseInt ( p . pop ( ) , 10 ) ; m *= 60 ; } let nextbump_s = s var p = today . split ( ':' ) , s = 0 , m = 1 ; while ( p . length > 0 ) { s += m * parseInt ( p . pop ( ) , 10 ) ; m *= 60 ; } let today_s = s timetillbump = nextbump_s - today_s } }
NOW CREATING A FUNCTION THAT KEEPS LOOPING
NOW CREATING A FUNCTION THAT KEEPS LOOPING
//SEEING IF WE NEED TO BUMP //HERE WE SEE HOW MUCH TIME WE NEED TO WAIT UNTILL WE CAN BUMP AGAIN //NextBump TO SECONDS //today TO SECONDS