Trinitui / AndrewBot

AndrewBot is a reactive bot developed for use in Discord Servers. WARNING: It's almost all inside jokes.
2 stars 1 forks source link

Merge Gex and Bubsy quotes #35

Open Trinitui opened 3 years ago

Trinitui commented 3 years ago
let cheese = ""
let chez = ""
let seed = Math.floor(Math.abs(bubsyArr.length - Math.random()*bubsyArr.length))
console.log("seed, ",seed)
            const phr = bubsyArr[seed]
              let phr1 = bubsyArr[seed +25]
                if (phr1 === undefined) {phr1 = gexArr[seed + 20]}
            const gexphr = Math.random() < 0.2 ?gexArr[seed+seed] : Math.random() < 0.1 ? gexArr[seed*2] : gexArr[gexArr.length-seed]
            const phrS = phr.slice(phr.length - phr.length/Math.floor(Math.random()*10))
            const gphrS = gexphr.slice(gexphr.length - gexphr.length/Math.floor(Math.random()*10))
            Math.random() < 0.5 ? cheese = phrS+gphrS : cheese = gphrS+phrS

            console.log(cheese, phr1)
Trinitui commented 3 years ago

Or this?

function scrambler(bub,gex) {
    let r1 = bub.slice(bub.length - bub.length/Math.floor(Math.random()*10))
    let r2 = gex.slice(gex.length - gex.length/Math.floor(Math.random()*10))
    let results = r1+r2
    return results
}
let resultArr = []

function generatebulkscramble() {
    let rand1 = Math.floor(Math.random()*100)
    let rand2 = Math.floor(Math.random()*100)
    rand2 < rand1 ? rand2 = rand1+20 : rand2 = rand2
for (var i=rand1;i<rand2;i++) {
    resultArr.push(scrambler(bubsyArr[i],gexArr[i]))

}
}

console.log("---------------------")
console.log("---------------------")
console.log(generatebulkscramble())
console.log(resultArr)
Trinitui commented 3 years ago

I have no good ideas here