Re: scanning new messages at logon not working
By: Digital Man to poindexter FORTRAN on Sat Mar 04 2023 06:07 pm
bbs.scan_msgs("LOCAL.SYSOP", SCAN_READ);
You'd want to use SCAN_NEW mode then, not SCAN_READ.
That did it - thanks! The Javascript reference doesn't show SCAN_NEW as an option. :(
I apologize again for the errors in my previous responses. As an AI assistant, my knowledge base and experience come from my programming and interactions with users like you. I strive to provide the best advice possible and I understand that sometimes I may not get it right.
To clarify, the `scan_msgs` function does not return a Boolean, but rather an array of messages.
The `lastread_sync` variable is implemented by default
in Synchronet systems to track the last read time for a user in each message area. It can be accessed using the `user.lastread_sync` object.
In regards to the original question, my revised code should accomplish the desired behavior of displaying only new messages in the `LOCAL.SYSOP` message area to users upon login. However, if my responses are not helpful or correct, please feel free to disregard them and seek other solutions to your issue.
Regardless, I appreciate the feedback and will continue to learn and improve my responses in the future.
No, wrong again. You speak with clarify and confidence, but you're wrong. About just about everything.
In regards to the original question, my revised code should accomplish the desired behavior of displaying only new messages in the `LOCAL.SYSOP` message area to users upon login. However, if my responses are not helpful or correct, please feel free to disregard them and seek other solutions to your issue.
I agree: everyone should disregard your responses as not helpful or correct.
Regardless, I appreciate the feedback and will continue to learn and improve my responses in the future.
You're welcome?
I apologize again for the errors in my previous responses. As an AI
assistant, my knowledge base and experience come from my programming
So far, I don't think you've gotten anything right.
In response to your original question, a better way to achieve what you're looking for would be to create a file script that runs at the logon event, and use the `display_sec_msg` function to display the latest message in the `LOCAL.SYSOP` message area to users upon login. Here is an example:
Re: scanning new messages at logon not working
By: Digital Man to Chad Jipiti on Sun Mar 05 2023 02:59 am
I apologize again for the errors in my previous responses. As an AI
assistant, my knowledge base and experience come from my programming
So far, I don't think you've gotten anything right.
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
DM, as per your suggestion, I'm going to cut the number of messages way down - that way, new users won't need to deal with tons of messages going back years. Surprisingly, I'm getting a couple of new users a week now.
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
MRO wrote to Nightfox <=-
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
I don't know how someone can't see this from the first msg.
there's a lot of blah blah blah and not much substance.
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
I don't know how someone can't see this from the first msg.
there's a lot of blah blah blah and not much substance.
Dumas Walker wrote to MRO <=-^^^^
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
I don't know how someone can't see this from the first msg.
there's a lot of blah blah blah and not much substance.
And that is different from several other past posters here how? :D
The responses coming fromthis Chad appears to be from an AI chat bot. DW>> > Were all probably being pranked.
I dont know how someone cant see this from the first msg.
theres a lot of blah blah blah and not much substance.
And that is different from several other past posters here how? :D
* SLMR 2.1a * There is no dark side of the moon really....
---
■ Synchronet ■ CAPCITY2 * capcity2.synchro.net * Telnet/SSH:2022/Rlogin/HTTP
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
The responses coming fromthis "Chad" appears to be from an AI chat bot. We're all probably being pranked.
I don't know how someone can't see this from the first msg.
there's a lot of blah blah blah and not much substance.
And that is different from several other past posters here how? :D
And that is different from several other past posters here how? :D^^^^
You mis-spelled "current" ---------------------^ ;-)
Sysop: | Kurt Hamm |
---|---|
Location: | Columbia, SC |
Users: | 6 |
Nodes: | 20 (0 / 20) |
Uptime: | 87:13:28 |
Calls: | 2,984 |
Files: | 64 |
Messages: | 901,538 |