Logging.
This commit is contained in:
parent
605b306dc8
commit
ae593c26f1
@ -68,6 +68,7 @@ export class BotHandlerDemo extends BotHandler {
|
|||||||
if (!room.isOnline()) { return }
|
if (!room.isOnline()) { return }
|
||||||
// checking if there is someone to listen...
|
// checking if there is someone to listen...
|
||||||
const onlineUserCount = this.room.onlineUserCount()
|
const onlineUserCount = this.room.onlineUserCount()
|
||||||
|
logger.debug(`Online user count in room: ${onlineUserCount}`)
|
||||||
if (onlineUserCount < 2) { return }
|
if (onlineUserCount < 2) { return }
|
||||||
const cpt = this.randomCount++
|
const cpt = this.randomCount++
|
||||||
logger.info(`Emitting the random message number ${cpt}.`)
|
logger.info(`Emitting the random message number ${cpt}.`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user