35 Commits
Author SHA1 Message Date
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
calleandGitHub e7d1f9e7c3 add nip05 (#458) 2023-02-16 20:51:22 +01:00
gohumbleandGitHub 94ed7d4692 dalle admin api. Added configurable worker (#410) 2022-08-31 20:09:55 +02:00
callebtc f5c3d9fb55 webapp works 2022-08-28 14:59:30 +02:00
callebtc 44f397e2de fix lndhub 2022-08-22 09:32:30 +02:00
callebtc 8180d3cfae auth refactor 2022-08-22 09:09:53 +02:00
callebtc 0ff0d889ff sse 2022-08-20 22:33:05 +02:00
gohumble d066fa9e27 set bot in api service 2022-08-20 00:17:58 +02:00
gohumble 4bcbd2fefe add auth middleware 2022-08-19 23:35:27 +02:00
gohumble a669ea86ac add api service 2022-08-19 22:55:27 +02:00
gohumble b396219792 add api service 2022-08-19 22:32:08 +02:00
410f56aaf5 Userpage (#337)
* userpage init

* page

* files

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-04-29 22:05:28 +02:00
calleandGitHub bd41dd078b remove telebot on error log (#327) 2022-03-27 23:14:13 +02:00
bf643f103d 🪄 update telebot v3 🤖 (#325)
* 🚧 minor changes to all handlers...

* 🚧 passing callback to tryEditStack

* 🚧 edit and delete callback messages

* 🚧 refactor again

* 🚧 uncomment this

* 🚧 using ctx.Message().Text

* 🚧 refactor

* 🚧 refactor

* 🚧 uncomment

* context not queruy

* 🚧 update forked lightningtipbot

* 🚧 reset ArticleResult

* fix inline receive

* readd shop

* remove chat from shopView

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-03-27 22:19:38 +02:00
8f60cb82f3 add admin service (#263)
* add admin server + service

* string fixes

* ban and unban user

* add return

* ban using admin key

* ban reason

* remove redundant func call

* add http status

* add log

* anon_id_sha256 (#262)

* anon_id_sha256

* refactor sha256 hash to strings package

* oops

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>

* add admin server + service

* ban and unban user

* string fixes

* add return

* ban using admin key

* ban reason

* remove redundant func call

* add http status

* add log

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com>
2022-01-05 01:40:37 +01:00
gohumbleandGitHub 01710f3385 separate lnurl and api server (#261)
* separate lnurl and api server

* add lndhub handler and proxy

* update proxy

* fix AppendRoute with empty methods

* add logs

* fix trace

* dump request

* parse bearer token

* exclude banned users

* exclude banned users

* fix log levels
2022-01-05 00:09:11 +01:00
c6a064b332 Banned entirely (#259)
* do not react to banned users

* do not respond to banned

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-01-04 13:32:10 +01:00
113fc02b28 Faucet problem 123 (#254)
* speed up tx lock

* yolo master

* logging

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-29 11:04:17 +01:00
3d3d7ab2f6 Send keyboard recommendation (#252)
* speed up tx lock

* yolo master

* keyboard with recent contacts

* translate message

* better query

* keyboard pops up

* log level

* skip keyboard if no entry

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-28 12:20:47 +01:00
d65d6aad28 Fix faucet edit (#249)
* speed up tx lock

* yolo master

* better printing

* trace

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-27 18:31:25 +01:00
95c733459d Fix faucet edit (#248)
* speed up tx lock

* yolo master

* better printing

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-27 18:28:06 +01:00
9fe0d776c7 Mini fixes123 (#247)
* speed up tx lock

* yolo master

* fixes

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-26 23:37:46 +01:00
1e5f7b1169 Skip duplicate edits (#245)
* speed up tx lock

* yolo master

* skip duplicate edit

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-26 16:46:04 +01:00
fc7247c72a Adjust log levels (#244)
* speed up tx lock

* yolo master

* better log

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-26 16:30:27 +01:00
07ccc6cc28 Unlock admin (#240)
* add mutex http endpoints

* remove mutex by id

* remove mutex by id

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-12-26 14:51:10 +01:00
gohumbleandGitHub 24e4212a93 add mutex http endpoints (#238) 2021-12-26 14:20:50 +01:00
gohumbleandGitHub 47ef5baee3 fix mutex final last v2 maybe (#202)
* remove mutex on unlock

* add pprof

* fix mutex lock

* fix logs
2021-12-24 14:25:35 +01:00
a59a7c226d defer intercept after before intercept error check (#173)
* defer intercept after before intercept error check.

* log trace level

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-22 14:40:48 +01:00
4b620186f1 Lnbits postgres compatible (#172)
* speed up tx lock

* webhook fix

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-22 02:35:00 +01:00
307d9cd873 Debug tip tooltip missing (#167)
* speed up tx lock

* debug for tip

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-18 18:05:48 +00:00
LightningTipBotandGitHub 8c7c22b0d8 price checker (#90)
* price checker

* more currencies

* debug messages
2021-10-08 08:35:46 +02:00
lngohumble 6a5f09fa18 Revert "price watcher"
This reverts commit 808a5a3b
2021-10-07 22:08:23 +02:00
LightningTipBot 808a5a3b72 price watcher 2021-10-07 22:53:07 +03:00
903cc3c2e2 Lnurlp comments (#89)
* lnurl comments for RECEIVING

* fix import cycle

* fix import

* rename WebhookServer to Server

* rename LNURLInvoice to Invoice

* add str package. MarkdownEscape lnurl.Invoice comment

* add str package

* check for comment length

* lnurl pay with comment

* lnurl pay with comment

* check for wallet existence

* repackage main to internal

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-10-07 00:21:21 +03:00
gohumble acf0cb5af6 Initial commit 2021-09-10 08:52:44 +02:00