- 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>
63 lines
2.0 KiB
Plaintext
63 lines
2.0 KiB
Plaintext
bot:
|
|
socks_proxy:
|
|
host: 127.0.0.1:9996
|
|
username: test
|
|
password: username
|
|
tor_proxy:
|
|
host: 127.0.0.1:9050
|
|
http_proxy: ""
|
|
lnurl_public_host_name: "https://mylnurl.com"
|
|
lnurl_server: "http://127.0.0.1:5454" # or http://0.0.0.0:5454 depending on your configuration
|
|
lnurl_image: true
|
|
admin_api_host: localhost:6060
|
|
admin_api_token: "" # required for the admin API: send it as "Authorization: Bearer <token>"
|
|
telegram:
|
|
message_dispose_duration: 10
|
|
api_key: "1234"
|
|
lnbits:
|
|
url: "http://127.0.0.1:5000"
|
|
admin_key: "1234"
|
|
admin_id: "1234"
|
|
webhook_server: "http://0.0.0.0:5588"
|
|
lnbits_public_url: "link.mylnurl.com"
|
|
database:
|
|
db_path: "data/bot.db"
|
|
buntdb_path: "data/bunt.db"
|
|
transactions_path: "data/transactions.db"
|
|
shop_buntdb_path: "data/shop.db"
|
|
groupsdb_path: "data/groups.db"
|
|
lnurlcash_path: "data/lnurlcash.db"
|
|
generate:
|
|
open_ai_bearer_token: "token_here"
|
|
dalle_key: "asd"
|
|
dalle_price: 1000
|
|
worker: 2
|
|
nostr:
|
|
private_key: "hex private key here"
|
|
lnurlcash: # LUD-25 bearer notes, see docs/lnurlcash/PLAN.md
|
|
enabled: false
|
|
mints:
|
|
# One entry per mint. The name is the mint's id in the database, so do not
|
|
# rename a mint that already has notes. Users pick their own default with
|
|
# /lnurlmints; the single `default: true` entry is the fallback.
|
|
- name: 21mint
|
|
url: https://lnurl.21mint.me
|
|
default: true
|
|
- name: mint.600.wtf
|
|
url: https://mint.600.wtf
|
|
min_note_sat: 1
|
|
max_note_sat: 100000
|
|
max_outstanding_sat_per_user: 500000
|
|
max_outstanding_notes_per_user: 200
|
|
max_batch_size: 100
|
|
max_batch_total_sat: 500000
|
|
group_note_max_sat: 1000
|
|
max_mint_fee_ppm: 20000
|
|
auto_reclaim_days: 0
|
|
status_poll_interval: 5m
|
|
invoice_wait_timeout: 60s
|
|
batch_strategy: split # or: invoices
|
|
batch_formats: [pdf, json, csv]
|
|
secret_encryption_key: "" # 64 hex chars, e.g. `openssl rand -hex 32`; required when enabled
|
|
admin_telegram_id: 0 # optional: Telegram user id that receives mint alerts
|