« first day (380 days earlier)      last day (694 days later) » 

Sam
10:17 AM
Test Test
 
Sam
10:48 AM
Test
 
10:59 AM
hmm...
Sam, can you help by posting a message, deleting it, and try to edit it?
 
Sam
@Unihedron Sure. Thx.
Wait a sec...
Ok, here's my current JS...
$.post('/chats/651/events', {
            since: 0,
            mode: 'Events',
            msgCount: 1,
            fkey: fkey().fkey
        }).success(function (eve) {
            console.log(eve.time);
            // call ws-auth to get the websocket url
            $.post('/ws-auth', { roomid: 651, fkey: fkey().fkey }).success(function (au) {
                console.log(au);
                // start the webscoket
                var ws = new WebSocket(au.url + '?l=' + eve.time.toString());
 
Yay! Gotta refresh to kill the running script.
 
Sam
Same...
Grr. wrong script.
There. Updated.
 
I gotta leave the other rooms first, so less interference.
 
Sam
Good idea
 
11:07 AM
// deleted
// edited
 
Sam
I'll post the evettype list...
MessagePosted = 1,
MessageEdited = 2,
UserEntered = 3,
UserLeft = 4,
RoomNameChanged = 5,
MessageStarred = 6,
DebugMessage = 7,
UserMentioned = 8,
MessageFlagged = 9,
MessageDeleted = 10,
FileAdded = 11,
ModeratorFlag = 12,
UserSettingsChanged = 13,
GlobalNotification = 14,
AccessLevelChanged = 15,
UserNotification = 16,
Invitation = 17,
MessageReply = 18,
MessageMovedOut = 19,
MessageMovedIn = 20,
TimeBreak = 21,
FeedTicker = 22,
UserSuspended = 29,
UserMerged = 30
 
:O
Did you find it or did you go through the pain listing them out?
 
Sam
I found it... looks for link
This came in handy... still looking for the link
gist: 9198621, 2014-02-24 22:28:48Z
var EventType = {
    MessagePosted: 1,
    MessageEdited: 2,
    UserEntered: 3,
    UserLeft: 4,
    RoomNameChanged: 5,
    MessageStarred: 6,
    DebugMessage: 7,
    UserMentioned: 8,
    MessageFlagged: 9,
    MessageDeleted: 10,
    FileAdded: 11,
    ModeratorFlag: 12,
    UserSettingsChanged: 13,
    GlobalNotification: 14,
    AccessLevelChanged: 15,
    UserNotification: 16,
    Invitation: 17,
    MessageReply: 18,
    MessageMovedOut: 19,
    MessageMovedIn: 20,
    TimeBreak: 21,
    FeedTicker: 22,
    UserSuspended: 29,
    UserMerged: 30
};
WTH?! :D
 
Oh good!
Yep, ancient gists are one-boxed (numeric IDs instead of UUIDs)
I gotta go thank Jon Clements.
 
Sam
Ah, didn't know that. Cool.
Hmm, none of us are ROs :/
I think we may need our own room for testing websockets...
(changing room desc, pinning, moving messages etc.)
 
11:15 AM
I invited you to Room for inf and i, if you want to use that room, I can add you as an owner. Though if you want you can make Another Sandbox.
 
Sam
Nah, your room will be fine.
 
11:47 AM
Now I gotta move this to sandbox and see what happens.
 
12:05 PM
@Sam {"event_type":4,"time_stamp":1415966683,"id":5651669,"user_id":266094,"target_us‌​er_id":266094,"user_name":"Unihedron","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion"}
 
Sam
@Unihedron {"event_type":15,"time_stamp":1415966683,"content":"priv 47 created","id":5651668,"user_id":227577,"target_user_id":266094,"user_name":"Sam"‌​,"room_id":774,"room_name":"Room for Unihedron and Infinite Recursion"}
 
I wonder how it appears to bystanders.
 
Sam
Interesting... so that's what target_user_id is for.
I'll de-RO myself...
Oh wait.
Did that event show up for you?
 
I posted the relevant log in our room.
 
Sam
k
facepalm
 
12:15 PM
Ouch. xD
{"r651":{"t":5651764,"d":1},"r774":{"e":[{"event_type":2,"time_stamp":1415967285,"content":"Ok, so the bot will watch while you kick me...","id":5651764,"user_id":227577,"user_name":"Sam","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion","message_id":2658127,"message_edits":1}],"t":5651764,"d":1}}
 {"r651":{},"r774":{}}
 {"r651":{"t":5651765,"d":1},"r774":{"e":[{"event_type":1,"time_stamp":1415967302,"content":"Ok, in three... Two... One...","id":5651765,"user_id":266094,"user_name":"Unihedron","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion","messag
 
Sam
lol
Huh? So the kick doesn't show for normal users.
Oh wait.
 
It does, except it shows BOTH kick and leave.
[{"event_type":15,"time_stamp":1415967308,"content":"priv 48 created","id":5651767,"user_id":266094,"target_user_id":227577,"user_name":"Unihedron","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion"},{"event_type":4,"time_stamp":1415967308,"id":5651768,"user_id":227577,"target_user_id":227577,"user_name":"Sam","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion"}]
 
Sam
Same for ROs.
 
4 - UserLeft, 15 - AccessLevelChanged
Oh.
So as long as you're not the one getting kicked, you'll get the notification, as well as who kicked them. Good to know.
 
Sam
Apparently.
Hmm.
For RO = priv 47 created, normal user = priv 48 created.
 
12:20 PM
Wait.
Maybe it doesn't have to do with whether being RO or not. Maybe chat.meta.SE only ever had 46 chat bans/kickmutes.
I'll dig my log for that section the bot posted.
[{"event_type":1,"time_stamp":1415967306,"content":"Wait","id":5651766,"user_id":227577,"user_name":"Sam","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion","message_id":2658130}],"t":5651766,"d":1}} VM3971:16
{"r651":{"t":5651768,"d":2},"r774":{"e":[{"event_type":15,"time_stamp":1415967308,"content":"priv 48 created","id":5651767,"user_id":266094,"target_user_id":227577,"user_name":"Unihedron","room_id":774,"room_name":"Room for Unihedron and Infinite Recursion"},{"event_type":4,"time_stamp":1415967308,"id":5651768,"user_id":227577,"target_user_id":227577,"user_name":"Sa
 
Sam
That sounds more reasonable.
Yeah priv 48 created
Same as bot.
 
Mmm, nice system.
 
Sam
Cool, so we get global kick count too :D
 
:)
 
Sam
(VS 2013 Com is still installing btw)
 
12:23 PM
And we might be the few to know this.
 
Sam
;)
brb
 
ok!
 
 
1 hour later…
Sam
1:27 PM
is back
(kinda)
 
1:51 PM
1 message moved from Room for Uni and Inf
 
 
3 hours later…
Sam
5:01 PM
test
test again
test
 

« first day (380 days earlier)      last day (694 days later) »