Idea for a Nostr game bot:
* Zap the bot any pledge amount
* Bot @'s you in a note asking your game difficulty: Reply with Easy, Medium or Hard
* Easy: Pick a number from 1 - 5. If you get it right, you get 3 times your pledge Zap.
* Medium: Pick a number from 1 - 10. If you get it right, you get 6 times your pledge Zap.
* Hard: Pick a number from 1 - 20. If you get it right you get 12 times your pledge Zap.
Thoughts?
—
Developing https://nostrgram.co/ #Bitcoin
Login to reply
Replies (21)
Why not?!?
honestly surprised it hasn’t been done already
I kind of am too.
I think there is potential in building little social games like this. I have a small project in mind and I’m looking for some info (or an example) on how to create a bot that responds to #Nostr notes. Could you point me in the right direction? 🙏
#[3] you slippin’
Nostr uses web sockets so you would need to use a language that supports web sockets or relays (typescript, python, node, etc). You could also use plain javascript and automate it in a web browser. The browser page would just have to stay open all the time. Not as stable, but it could work -- and the advantage there is you could interface with Alby to send the zaps pretty easily.
I want to see a BattleShip Zap Edition.
Players get their battle ship coordinates and then take turns zapping the bot with a coordinate note.
Winner gets the sats. Lol.
Excellent. Thank you for the info.
Sounds dope!
I'm tinkering with the idea now.
🤙🏾
This is actually a good idea. coordinates could be defined by the hash of the zap to prevent cheating
Will consider building.
yes
Looks like #[6] is offline but it was in this vein
Finishing up the game I got everybody's feedback on last night. Should be ready soon. I forgot that it was a viewpoint question (since I asked for your thoughts). I always ⚡ everybody who replies in the first 30 minutes to viewpoint questions the amount ⚡ to the note within that 30 minutes. I'll do that now. My apologies. #[0]
—
Developing https://nostrgram.co/ #Bitcoin
How did this experiment go? I was sleeping so I missed it.
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.
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