alaingilbert / Turntable-API

Allows you to create bots for turntable.fm
http://alaingilbert.github.com/Turntable-API/
MIT License
318 stars 97 forks source link

Verify ID's? #181

Closed oldramen closed 11 years ago

oldramen commented 11 years ago

Is there a way to verify room id's? And user id's? I tried using the addFavorite call to verify roomid's, but it just returns an error that I'm using the wrong chat server.

sharedferret commented 11 years ago

You can verify a userid exists by calling bot.getUserId(name) or bot.getProfile(uid) (https://github.com/sharedferret/Sparkle-Turntable-Bot/blob/master/commands/userinfo.js has an example of this).

Verifying a room might be harder, since the room.info call returns an error if you're in a room with a different chatserver.

technobly commented 11 years ago

@yayramen Try something like this for verifying a room id http://i.imgur.com/sGDPWBV.png