Skip to content

bot.roomRegister does not set roomId #137

@shawkattack

Description

@shawkattack

This is an easy but somewhat urgent fix.

Calling bot.roomRegister does not set the bot's roomId. This causes problems if, for example, you need to call bot.roomInfo later. The bot sends a null, and gets an error code in return from Turntable.

I discovered this issue by calling the bot constructor without a room ID, then calling roomRegister thinking it would handle this for me. Luckily, bot.roomId is publically available to change, so I have a temporary fix by inserting this line

bot.roomId = xxxxxxxxx;

before the call to roomRegister

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions