What is Nostr?
bart / Bart Mol
npub17h7…sd76
2024-07-14 10:07:12

bart on Nostr: I made my own bitcoin donation bot on Telegram. Listeners of my podcast can use it to ...

I made my own bitcoin donation bot on Telegram. Listeners of my podcast can use it to donate some sats and send us a message, which we can read in the podcast.

We already had this for years, but it was build by a really talented developer (jorijn (npub17e2…ks6p)) and it was like magic to me.

With the AI tools that are on the market right now I was able to make it myself. The code is probably thrash compared to the earlier bot, but the fact that I could make it myself was a magical feeling.

Working with these tools (Aider + Claude 3.5) feels like having a senior developer sitting next to you. It can see my codebase, make changes and commit those changes to git.

The bot works as follows: the user uses the donate command and is prompted to put in a donation amount (or use the buttons). After that, the user can choose to attach a message. This information is then send to my LNbits server and pulls a invoice. The bot starts polling for the invoice to be completed. When the user completes the payment a succes message is sent and the donation is forwarded to the main podcast chat and stored in our database.

It is so much fun to finally be able to turn some of the ideas I have into reality (and also finally ‘learn’ how to code in the process).
Author Public Key
npub17h7h2jzhq3hn06h93jvz67sfjxaq3jvk7kenjrazht28aun33hks42sd76