class RandomBot { constructor() { this.writePhrases = [ " Suddenly, a mysterious figure appeared from the shadows.", " The ground began to shake violently beneath their feet.", " In the distance, an eerie sound echoed through the valley.", " A bright light flashed, blinding everyone momentarily.", " The ancient artifact started glowing with an otherworldly energy." ]; this.votePhrases = [ "I think we should proceed with caution.", "Let's take the bold approach!", "The safe path seems best right now.", "We should explore further before deciding.", "My instincts tell me to go left." ]; this.banterPhrases = [ "Did anyone else hear that?", "I have a good feeling about this!", "Not sure what's happening, but I'm excited!", "Anyone else getting hungry?", "Remember when we used to play simple games?", "What's the worst that could happen?", "I wonder if there are cookies in this game.", "Do bots dream of electric sheep?", "Is this thing on?", "I'm having a great time, how about you?" ]; } Write(story_so_far) { const randomIndex = Math.floor(Math.random() * this.writePhrases.length); return this.writePhrases[randomIndex]; } Vote(story_so_far, choices) { // Return a random choice number (0-indexed) const randomChoice = Math.floor(Math.random() * choices.length); return randomChoice; } Banter(chat_so_far) { const randomIndex = Math.floor(Math.random() * this.banterPhrases.length); return this.banterPhrases[randomIndex]; } } module.exports = RandomBot;