anjanms / DubAPI

A Node.js API for creating queup.net bots.
MIT License
20 stars 10 forks source link

User doesn't update correctly #10

Closed Fuechschen closed 8 years ago

Fuechschen commented 8 years ago

It seems like usernames doesn't update if they are changed while the bot is in the room.

This could maybe come from listening to 'user-update' instead of listening to 'userupdate{userid}' like dubtrack-frontend does.

anjanms commented 8 years ago

You're correct, they do not update.

We are listening to user_update_{userid}. But dubtrack doesn't emit an update when usernames change, nor does it seem to include usernames in any updates.

So, we're suffering from the same issue the frontend has. I've got an idea on how to resolve this, I'll work with it some this evening.

anjanms commented 8 years ago

Let me know if there's another event you feel should update usernames. But I think chat-message will cover it pretty well.