Open Katazui opened 12 years ago
You probably just need to use bot.getProfile(userid, callback). Use the callback - specifically, data.name - and do something like "console.log(data.name + ' started DJing.');". EDIT: Sorry, that only covers the first question. I don't know anything about setinterval or any of that stuff because I use an activity log object that contains timestamps for every user id. :P
Oh thanks, but, can you show me? How to write their real DJ names down? Thanks, lol :3
@Katazui use the code for usersList object if the getProfile call is confusing to you.
https://github.com/alaingilbert/Turntable-API/blob/master/examples/users_list.js
then you can just use theUsersList[dj].name to pull their screen name from the object based on their userID.
Cool, Thanks got that one down.
Here, I have 3 questions. For the AFK Police.
First question: How do I make the '+dj+' things to show their real DJ names not their IDs.
Second Question: So, this repeats every 5 seconds, and when the Dude AFK Limit DOES hit, won't the bot give the Dude the speech every 5 seconds? Is there some way you can stop that? With variables and stuff?
Third Question: Soooo, is there a way so that the TimeStamp updates? By, Speaking, PMing, Laming, Awesoming? Cause, I don't think this works. I just see speak, but I don't know what to put there.