• exec/load/rip.js

    From Deuc¿@VERT to Git commit to main/sbbs/master on Fri May 21 16:29:10 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/3eee7f7a9b9472bb1c34f791
    Added Files:
    exec/load/rip.js
    Log Message:
    Add a new RIP utility library

    Currently, this has RIP.supported which returns true if RIP is
    supported by the client, and rip.loadicons(archive) which sends
    all the icons (and .RIP files) in the specified archive (either
    an Arcive object or a filename) to the remote if they don't
    already have them.

    If you have a RIP enabled door, a small JS script as a pre-run
    command like this:

    require("rip.js", "RIP");
    rip.loadicons('/sbbs/xtrl/lord/lordicns.zip');

    Will automatically send all the icon files in the arcive to the
    user if the user doesn't already have them. For SyncTERM as of
    this commit, they will be placed in the cache directory for that
    BBS (and only be available for that BBS).

    On *nix, the cache dir is ~/.syncterm/cache/<bbsname>
    On Win32 it's something like: C:\Users\User\AppData\Local\Microsoft\Windows\INetCache\SyncTERM\cache\<bbsname>

    No ideal what it is on macOS.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net