Share your repls and programming experiences

← Back to all posts
Kahoot Bot Flooder
AugustBenne

It uses the kahoot.js library
I probably could find a way to make it work better using a loop
You put the game code into the code, replacing "######"
It joins the game with a lot of bots with random names

They don't answer the questions, they leave unanswered and fill the library

Voters
JAHMIRFRANK
OscarGodfrey
JacobMcPherson1
AugustBenne
Comments
hotnewtop
JacobMcPherson1

how do you get the numbers out of the names of the bots?

AugustBenne

@JacobMcPherson1
I just updated it to add customizable bot names at the top where you add the code. The numbers were to not have duplicates which the kahoot library doesn't like. If you want to change it, if you find where it says botname + Math.floor(Math.random() * Math.floor(max) you can change Math.floor(Math.random() * Math.floor(max) to something else. Just make sure that the bots don't have the same name!

JacobMcPherson1

@AugustBenne Ok, thanks!

JacobMcPherson1

@JacobMcPherson1 There's a syntax error in the code on line 25 btw

AugustBenne

@JacobMcPherson1 Thanks, just fixed it!