Neat bot. Is it polling periodically or listening to an open stream from relays to react to? Seems there is a noticeable delay in getting back a response.

Reply to this note

Please Login to reply.

Discussion

It's polling. I'm actually just automating NostrGram in a browser window lol. I'll reduce the polling time so it's faster.

Cool. The Polly Poll Bot I'm working on I had started with polling, but have switched to trying to listen to open connection, and also doing the config in DMs. It's much more responsive this way and less connect/disconnect then polling

Oh for sure, and I could/should (probably will) switch it to listening to the web sockets. This was just faster and since I was just running a test I figured I'd do it this way. I'll probably update it today now that I see it's running well.

FYI just swapped the bot over to using relays directly. The zap round trip still takes a second but replies from the bot are significantly faster now. Thanks for the nudge lol