• Sysop irc pager

    From mlong@1:103/705 to echicken on Mon Nov 2 19:51:00 2020
    echicken, in the sysop irc pager (chat_pager) it says if you run the irc bot as a service, it will work properly (and does not work from jsexec). How do I run it as a service?

    ---
    þ Synchronet þ Inner Realm BBS - Charlotte, NC - innerrealmbbs.us
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to mlong on Mon Nov 2 23:16:25 2020
    Re: Sysop irc pager
    By: mlong to echicken on Mon Nov 02 2020 19:51:00

    echicken, in the sysop irc pager (chat_pager) it says if you run the irc bot as a service, it will work properly (and does not work from jsexec).

    I suspect I used a Queue to pass messages between bot & client on BBS, making this necessary. I should change that to just use a file or the JSON service or something.

    How do I run it as a service?

    You can add ircbot.js as an entry in ctrl/services.ini. Mine is like this:

    [IRCBOT]
    Port=10091
    Options=STATIC|LOOP
    Command=ircbot.js

    IIRC you must specify a port number, and that port must be available, even though the bot doesn't actually listen for connections. This is a bit hacky but keeps the bot running under your services thread.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)