Script Summary: Kongregate Framework for sCripts is a small framework for Kongregate which aims to make developing chat extensions easier.
Version: 1.0
Kongregate Framework for sCripts is a small aid for developing chat extensions.
onJoinRoom
onJoinRoom(callback)Attaches a function to be called when the user joins a room.
onLeaveRoom
onLeaveRoom(callback)Attaches a function to be called when the user leaves a room.
onUserJoin
onUserJoin(callback)Attaches a function to be called when somebody joins the current room.
onUserDeparture
onUserDeparture(callback)Attaches a function to be called when somebody leaves the current room.
onUserChanged
onUserChanged(callback)Attaches a function to be called when somebody changes.
onRoomMessage
onRoomMessage(callback)Attaches a function to be called when a room message is received. Note: messages sent by the user will not trigger this event.
onPrivateMessage
onPrivateMessage(callback)Attaches a function to be called when a private message is received. Note: messages sent by the user will not trigger this event.
onKeyPress
onKeyPress(callback)Attaches a function to be called when the user types something in the input.
sendRoomMessage
sendRoomMessage(message)Sends a message to the current room. Note: this can't trigger a chat command
sendPrivateMessage
sendPrivateMessage(username, message)Sends a message to the target user.
addChatCommand
addChatCommand(command, callback)Creates a new chat command like /w
addMenuItem
addMenuItem(command, callback [, index])Adds a new menu item to the Chat actions menu.
addChatTab
addChatTab(title, content)Creates a new chat tab with the desired content.
addRolloverOption
addRolloverOption(label, callback [, index])Adds a new user rollover menu option for all users.
showMessage
showMessage(title, content)Displays a "Kong Bot" like message to the user.
setInput
setInput(string)Sets the chat input to the given string



