Skip to content

Xpress Message Functionality

dgets edited this page Dec 30, 2014 · 3 revisions

dexpress.js

Notes

Various methods, etc, exist in this file that are necessary for proper determination of who is active online, currently, and for sending of the new 'Xpress messages' through telegram channels from the standard BBS API.

Layout

Current OO Structure

Sub-objects

wholist
Properties
  • debugging - boolean derp
Methods
  • populate() - populates a list (returned in an Array()) of the users currently online
  • list_long() - a 'long' version of the wholist (bound to w, as per vDOC standards); for now this is not formatted exactly like vDOC, it is simply tied in to the equivalent BBS active user node(s) functionality through the API
  • list_short() - my own, short, version of the wholist; it needs a little bit of work but is certainly functional
express
Methods
  • readBuf() - reads text for the express message, testing for ABORT and the like
  • chkRcp() - verifies that the recipient of the message is a valid target (need to add functionality for whether or not that user needs to be logged in)
  • sendX() - actually ties in the with the telegram functionality and sends the message to the corresponding node
Clone this wiki locally