+-------------------------+
|BBS up/down notifications|
+-------------------------+
I also don't see any way at all to trigger a "BBS down" event.
I'm wondering if maybe I should just handle this externally to
Synchronet, like maybe via a Windows Task Manager job or something?
+------------------------------+
|External Program notifications|
+------------------------------+
Edit: Forgot to mention this. It would be great if I could somehow
trigger a script when someone enters a door program, without having to
edit every door's configuration to integrate it via a batch file or whatever.
On 10/23/21 7:27 PM, Hunter-Z wrote:
+-------------------------+
|BBS up/down notifications|
+-------------------------+
I also don't see any way at all to trigger a "BBS down" event.
I'm wondering if maybe I should just handle this externally to Synchronet, like maybe via a Windows Task Manager job or something?
Down notifications are best done from another system... You can have
that system poll every N minutes to see if you're up, and send a down notification if it fails... more complexity could be to check every 5 mninutes, then check again every 30s and 5 fails in a row, fire teh notification.
+------------------------------+
|External Program notifications|
+------------------------------+
Edit: Forgot to mention this. It would be great if I could somehow trigger a script when someone enters a door program, without having to edit every door's configuration to integrate it via a batch file or whatever.
Edit your command shell to use the xtrn_sec.js module for doors, then
modify that module.... that would probably be the easiest path... I
think that is the name of it, it may just be xtrn.js ... I don't recall
if there's another even that triggers before every door.
--
Michael J. Ryan - tracker1@roughneckbbs.com
Update: Got everything working that I wanted to do, via a plethora of different hacks. Below is info on the additional pieces I implemented since my initial post.
BBS down:
policy). It would be ideal for Synchronet to provide a unified means to implement triggers for all of these cases, but it is what it is, and at least I accomplished my goals!
your bbs probably won't go down.
i would suggest making the computer reboot once a day, though.
I don't know if other people need this, but you can request it. or do it yourself with scripting.
My final thoughts are:
- It would be nice to have a canonical/supported way to script an action when Synchronet shuts down.
- It would be nice to see some design consolidation of scripting triggers, as having to dig through module selections, fixed events, on-init-via-timed-menu events, event-triggered external programs, modopts.ini script hooks, etc. to find the best way to do something makes for a steep learning curve - especially when the answer is different depending on what you're trying to accomplish.
Hello. I used to run a Synchronet BBS in the mid-late 1990s, and set up a modern version in a WinXP VirtualBox VM in 2015 for fun. I recently blew the dust off of this because some friends on Discord were interested in experiencing the BBS thing in a private setting.
Since we're using Discord and Synchronet is now heavy into JavaScript, I thought I'd try hooking the two together. I've had limited success using an HTTPRequest from Synchronet's http.js to send POST requests to a Discord webhook URL, but I've run into some issues and limitations that I could use some advice on.
I should mention up-front that I'm a novice at JavaScript, so I'm probably going about this all wrong. My native language is C++! +--------------------------+
|Logon/logoff notifications|
+--------------------------+
The first thing I tried to do was have Synchronet tell people on Discord when someone logs on or off. Logon works great, even reporting the user and node number. Logoff, on the other hand, is problematic: It seems that regardless of whether I use the fixed event or an on-logoff event-driven external program entry, Synchronet terminates my JavaScript code before it can send the POST request! As an ugly hack, I was able to get it working by having a fixed logoff event call a .BAT file, which in turn calls jsexec -x, but there has to be a better way?
I'm also wondering if this is the best way to do any of this in general. What about just creating custom logon/logoff *modules* that wrap the default ones or something?
+-------------------------+
|BBS up/down notifications|
+-------------------------+
I'd love to have something notify Discord when the BBS goes up or down, but there isn't an obvious way to do this either. I was able to get a "BBS up" notification to work by creating a timed even that is set to run on *no* days of the week, and to run on (re)init, but this again feels like a hack.
I also don't see any way at all to trigger a "BBS down" event. I'm wondering if maybe I should just handle this externally to Synchronet, like maybe via a Windows Task Manager job or something?
+------------------------------+
|External Program notifications|
+------------------------------+
Edit: Forgot to mention this. It would be great if I could somehow trigger a script when someone enters a door program, without having to edit every door's configuration to integrate it via a batch file or whatever.
Any advice/thoughts appreciated.
Since we're using Discord and Synchronet is now heavy into JavaScript, I thought I'd try hooking the two together. I've had limited success using an HTTPRequest from Synchronet's http.js to send POST requests to a Discord webhook URL, but I've run into some issues and limitations that I could use some advice on.
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 91 |
Nodes: | 16 (0 / 16) |
Uptime: | 07:54:29 |
Calls: | 4,903 |
Calls today: | 4 |
Files: | 8,491 |
Messages: | 350,507 |
Posted today: | 1 |