Created
July 17, 2011 21:30
-
-
Save jamesu/1088084 to your computer and use it in GitHub Desktop.
Synchtube debug mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste this in a JS console | |
$('body').append('<div id="io_debug"></div>'); | |
// Users | |
sp.users.me // current user | |
sp.users.me.attributes().id // current user id | |
User.find(id).attributes().nick // username from id | |
// Print out all users in room | |
User.each(function(user) { console.log(user.attributes().id); }); | |
// Sending commands | |
// (please do not abuse) | |
socket.send_cmd(<command>, <parameters>); | |
// Useful commands | |
// mute [user_id, mute] | |
// ban user_id | |
// kick [user_id, "Reason"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment