Monchbox Wiki
Advertisement

Torus.io contains functions used for sending and receiving information to and from the chat server.

sendMessage[]

Torus.io.sendMessage = function() {


Return value undefined.
Notes
  • This function is safe to use externally.

setStatus[]

Torus.io.setStatus = function() {


Return value undefined.
Notes
  • See also Status states.
  • This function is safe to use externally.

giveMod[]

Torus.io.giveMod = function() {


Return value undefined.
Notes
  • A user can be given chatmod rights even if they aren't in the room.
  • This function is safe to use externally.

kick[]

Torus.io.kick = function() {


Return value undefined.
Notes
  • A user can be kicked from the room even if they aren't in the room.
  • This function is safe to use externally.

ban[]

Torus.io.ban = function() {


Return value undefined.
Notes
  • If expiry is 0, user is unbanned.
  • A user can be banned (or unbanned) even if they aren't in the room, or have never joined chat.
  • This function is safe to use externally.

openPrivate[]

Torus.io.openPrivate = function() {


Return value undefined.
Notes
  • This function is safe to use externally.
Advertisement