bot.js
// Bot message handler for different phases.
Bot message handler for different phases.
Bot message handler for different phases .
function phase(n, r, id) {
    if (n == 1) {
        bot.sendMessage(id, `\`Round ${r}\`\n*Phase 1 begins!* You have *${PHASE_1_TIME}* seconds to attack, heal, or use your ability on other players!`, {parse_mode: 'Markdown'});
    }
    else {
        bot.sendMessage(id, `*Phase 2 begins!* You have *${PHASE_2_TIME}* seconds to discuss the results of phase 1 and use your wits to strategize or plan before phase 1 starts again!`, {parse_mode: 'Markdown'});
    }
}
function phase ( n , r , id ) { if ( n == 1 ) { bot . sendMessage ( id , ` \` ${ r } \` \n ${ PHASE_1_TIME } ` , { parse_mode : 'Markdown' } ) ; } else { bot . sendMessage ( id , ` ${ PHASE_2_TIME } ` , { parse_mode : 'Markdown' } ) ; } }
Bot message handler for different phases.
Bot message handler for different phases .