• Freeze time remaining entering chat

    From NeoArata@1:103/705 to All on Wed Jul 17 10:18:59 2024
    Is there a way to freeze a user's time remaining before entering IRC chat? I want to limit the time user's have to do things like playing doors, but not if they just want to sit around and chat. I use a js script to run the BBS and the line it executes to enter chat is simply:

    bbs.exec("?chat_sec");

    Thanks

    ---
    þ Synchronet þ The Realm BBS
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to NeoArata on Wed Jul 17 13:33:00 2024
    Re: Freeze time remaining entering chat
    By: NeoArata to All on Wed Jul 17 2024 10:18 am

    Is there a way to freeze a user's time remaining before entering IRC chat? I want to limit the time user's have to do things like playing doors, but not if they just want to sit around and chat. I use a js script to run the BBS and the line it executes to enter chat is simply:

    bbs.exec("?chat_sec");

    That line would invoke the chat section/menu (chat_sec.js), not the IRC client (irc.js). To allow the user to spend forever in the IRC client and not have that time count "against" them, you'd configure the IRC client as an external program in SCFG->External Programs->Online Programs with "Spendended (Free) Time" set to "Yes" and then invoke the IRC client with the bbs.exec_xtrn() function.

    chat_sec.js invokes irc.js using the bbs.exec() function, so that'd have to be changed if you want to continue to use chat_sec.js to invoke the irc client.

    Another option would be to modify chat_sec.js to add the consumed time while in the irc client back to the user's online time. This would be accomplished by adding the elapse time (in seconds) to the bbs.start_time JS property value.
    --
    digital man (rob)

    Breaking Bad quote #35:
    You ever smoke anything else, Wendy? Sausages don't count - ha ha - Hank Norco, CA WX: 84.7øF, 54.0% humidity, 9 mph WNW wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From nelgin@1:103/705 to All on Wed Jul 17 20:38:16 2024
    On Wed, 17 Jul 2024 13:33:00 -0700
    "Digital Man" (VERT) <VERT!Digital.Man@endofthelinebbs.com> wrote:

    Re: Freeze time remaining entering chat
    By: NeoArata to All on Wed Jul 17 2024 10:18 am

    Is there a way to freeze a user's time remaining before entering
    IRC chat? I want to limit the time user's have to do things like
    playing doors, but not if they just want to sit around and chat. I
    use a js script to run the BBS and the line it executes to enter
    chat is simply:

    bbs.exec("?chat_sec");

    That line would invoke the chat section/menu (chat_sec.js), not the
    IRC client (irc.js). To allow the user to spend forever in the IRC
    client and not have that time count "against" them, you'd configure
    the IRC client as an external program in SCFG->External
    Programs->Online Programs with "Spendended (Free) Time" set to "Yes"
    and then invoke the IRC client with the bbs.exec_xtrn() function.

    chat_sec.js invokes irc.js using the bbs.exec() function, so that'd
    have to be changed if you want to continue to use chat_sec.js to
    invoke the irc client.

    Another option would be to modify chat_sec.js to add the consumed
    time while in the irc client back to the user's online time. This
    would be accomplished by adding the elapse time (in seconds) to the bbs.start_time JS property value.

    Probably not worth the effort but could we have something like user.suspend_time and user.resume_time

    It would be useful for people who also want to allow people to use mrc
    as well as irc.
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)