• exec/load/rip.js

    From Deucе@1:103/705 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 libraryCurrently, this has RIP.supported which returns true if RIP issupported by the client, and rip.loadicons(archive) which sendsall the icons (and .RIP files) in the specified archive (eitheran Arcive object or a filename) to the remote if they don'talready have them.If you have a RIP enabled door, a small JS script as a pre-runcommand like this:require("rip.js", "RIP");rip.loadicons('/sbbs/xtrl/lord/lordicns.zip');Will automatically send all the icon files in the arcive to theuser if the user doesn't already have them. For SyncTERM as ofthis commit, they will be placed in the cache directory for thatBBS (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.
    --- SBBSecho 3.14-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)