-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stalk user callback data does not work with mobile users #63
Comments
Hmm... I havn't seen that. I did just get this working, but I have only tried on a desktop. I'll try this out once. |
Have you checked that the data object is in response to a successful query? If it fails, I think you'll find the data returned is this
That said, the stalk feature never works for me. I've tried it in various scenarios where it should certainly work, but my bot can never find my user. Any idea what's going on with that? |
Hum, the stalk feature seems broken in the latest version (V2.0.0), but still work on (V1.5.4). |
The feature should be fixed b59dc0c |
Thanks for getting to that so quickly! I'm still getting this issue though:
|
This is weird ! Looks like the "directoryGraph" function doesn't work properly for you.
And the output of: bot.directoryGraph(function(data) {console.log(data); }); Basically, I just wanna know if you are fan of some people, and if the directoryGraph work or not ! |
I removed all the people of my bot fans list, And now, I get the same result as you |
Hm... so here's my program exactly: var Bot = require('ttapi')
, config = require('./config')
, bot = new Bot(config.bot.auth, config.bot.id, config.bot.room)
, stalked = 'xxxxxxxxxxxxxxx';
bot.on('ready', function () {
bot.becomeFan(stalked, function () {
console.log(bot.getFanOf());
bot.stalk(stalked, function (data) {
console.log(data);
});
});
}); and the output:
Previously I didn't have the call to The out put of the directoryGraph function you suggested is this:
|
I manually signed on to both of my turntable accounts, and from my bot's account I un-fanned and re-fanned my user account. After that the stalking function seems to work fine. Not sure what was going on there... :/ |
Do you have the |
|
@nick-thompson correct, but the API probably needs updating. In my last pull request, I fixed the room.list call, but I would assume the directory graph method has the same issue. |
So is this supposed to work properly in the version 1.5.4 of the API? I was getting similar responses from Am I up against a bug in the API that I can look at, or are the TT services just enforcing some security/privacy-based rules? |
bot.stalk([userid], function(data){console.log('data.roomId: '+data.roomId);})
When calling this code while the [userid] is a mobile user, data.roomId is undefined. it appears that the data object either doesn't get returned or is different in structure.
anyone else come across this, or at least confirm this is true?
The text was updated successfully, but these errors were encountered: