16 Commits
Author SHA1 Message Date
MichilisandClaude Opus 5.5 8faab56990 Harden LNURLcash, webhook replay and ticket restarts; add command aliases
- LNURLcash: mint single notes directly when the mint rounds fees to whole
  sats, recover lost direct-note funding, melt to the callback named in the
  note's own withdraw info, and poll for settlement so redeems/reclaims
  finish without waiting on the webhook. Read-only lookups use a pooled
  client; every mutation stays on the no-keep-alive client.
- Webhook: expire replay markers only for payments without an invoice event,
  so an event callback can never run twice.
- Tickets: on restart, enforce tickets that ran out while the bot was down
  unless LNbits says the invoice was paid; drop stale ones without a ban.
- Telegram: register translated /faucet and /tipjar command aliases.
- i18n: load translations from one language list and log broken files.
- Config example: one entry per mint; ignore local docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:20:52 +00:00
MichilisandClaude Sonnet 5.5 48f8a6c7c9 Send note mutations to the mint's callback and polish LNURLcash UX
- Splits and melts went to the withdraw link, but mints such as
  mint.600.wtf take mutations at the callback named in the note's own
  withdraw info (/w/cb). The mint answered 200 without a status, which
  read as an unknown outcome and left minting stuck in recovery. The
  fake mint now behaves the same way.
- Count the LNbits routing reserve (max 1 sat, 1%) in the balance check.
- Allow several comma separated mints in one url entry.
- Format the LNURLcash help like the other help menus.
- Fix int64 passed to %s in the claimed, reclaimed, redeem and view
  messages.
- Reword the in-progress and insufficient-balance messages in every
  language.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:48:14 +00:00
MichilisandClaude Fable 5.1 d04669b6d6 Add lnurlcash-go and the lnurlcash config block
Pin btcec/v2 at v2.3.3: v2.3.4 changed ecdsa.SignCompact's signature and
lnd/keychain (via ln-decodepay) no longer compiles against it. The
lnurlcash package gets its Config with validation and an AES-256-GCM
cipher for note secrets at rest.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 21:43:16 +00:00
Kevin RavensbergandMichilis 34f2e562e2 Require a token for the admin API
The admin API (ban, unban, mutex, DALL-E toggles, pprof) had no authentication. Every request now needs 'Authorization: Bearer <bot.admin_api_token>'. Without a configured token all requests are rejected.

(cherry picked from commit 3fb544687d8cd8563f1e4e1720de1ef832653457)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-11-13 20:33:44 +00:00
Massimo MusumeciandGitHub c4f6d31779 Fix in config example file (#472)
* added massmux full install guide

* config example file fix
2023-08-13 15:17:32 +02:00
callebtc 4318b48c3c nip57 zaps 2023-02-16 12:29:17 +01:00
gohumbleandGitHub 8598adb280 added chatGPT (#435) 2022-12-11 19:12:34 +01:00
gohumbleandGitHub 94ed7d4692 dalle admin api. Added configurable worker (#410) 2022-08-31 20:09:55 +02:00
callebtc 2e4a793c20 dalle config 2022-08-30 17:32:45 +02:00
callebtc 8180d3cfae auth refactor 2022-08-22 09:09:53 +02:00
gohumble 30e0ba9cdf fix example 2022-08-14 23:05:17 +02:00
gohumble f474988606 fix cfg 2022-08-14 22:44:04 +02:00
71d8aa202c Group invite link management (#310)
* group invite link

* link

* works

* ticketinvoiceevent type

* Add invoice event interface

* add AssertEventType

* generalize AssertEventType invocation

* wip: payment button

* all new

* callback

* fix TicketEvent Key()

* invoiceEvent in ticketEvent

* fix errors

* add payment button

* commission

* minimum price

* remove redundant ticket event data

* commission

* fixes

* update balance

* notify user if ticket < 10

* commission rounding error

* refactor

* refactor

* /join

* add /join handler

* fix handler

* fix /join

* fix handler

* fix /join interceptor

* add startUserInterceptor

* delete qr

* no test blyad

* fix defer

* message

Co-authored-by: gohumble <lngohumble@gmail.com>
2022-03-17 00:21:28 +01:00
725af545ab WIP: adding downloadMyProfilePicture and botProfilePicture to LNURL Meta (#297)
* adding downloadMyProfilePicture and botProfilePicture to serveLNURLFirst (pay)

* fix image download to ram

* add downloadProfilePicture

* add cache and download limit

* error checks

* user picture

* empty entry bug check for uuid

* check

* fix example

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-02-11 10:04:08 +01:00
a112c1b25d add shop db path (#292)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-01-19 11:25:37 +01:00
gohumble acf0cb5af6 Initial commit 2021-09-10 08:52:44 +02:00