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).
{
"id":"210238c7f003ad01b4ce20d583a8af0e5427a955279ff9f15030b7b928023959",
"pubkey":"f5fd754857046f37eae58c982d7a0991ba08c996f5b3390fa2bad47ef2718ded",
"created_at":1720951632,
"kind":1,
"tags": [
[
"p",
"f655b147a4ef3ef789b7830e903f6fe1578b9692f3b1703247528e9023b9b452",
"",
"mention"
]
],
"content":"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.\n\nWe already had this for years, but it was build by a really talented developer (nostr:npub17e2mz3ayaul00zdhsv8fq0m0u9tch95j7wchqvj8228fqgaek3fq9hks6p) and it was like magic to me.\n\nWith 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.\n\nWorking 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.\n\nThe 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.\n\nIt 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).\nhttps://m.primal.net/JQRI.mov",
"sig":"318279f3374508a5f1f3ae1c4b65201ab7c526b6f583377441326b56e6ba3b5a4139210181fdca4d7a370c7bc8e4daac3353ea672512e554855705066fdeb4a0"
}