Commit graph

28 commits

Author SHA1 Message Date
LightningTipBot
b07053172b
help (#334)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-04-16 00:20:52 +02:00
gohumble
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
LightningTipBot
545d20d043
Mutex fix 329823hf (#287)
* big change

* mutex

* global lock

* another lock

* fix log

* trySendMessageEditable added

* defer before return

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-01-14 20:34:20 +01:00
gohumble
4e812f7897
add errors to handler (#273)
* add errors to handler

* add errors to handlers

* shop fixes (#274)

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

* better log (#275)

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

* add errors to map

* more errors

* rename NoWalletError

* fix one panic (#276)

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

* add invalid type error

* Shop panic attempt 2 (#277)

* less log

* fix shop first view

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

* make errors private

* add errors to handler

* add errors to handlers

* add errors to map

* more errors

* rename NoWalletError

* add invalid type error

* make errors private

* patch

* return handlers

* add noPrivateChat

* add invalid amount err

Co-authored-by: LightningTipBot <88730856+LightningTipBot@users.noreply.github.com>
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2022-01-09 21:39:09 +01:00
LightningTipBot
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
LightningTipBot
cbedc5c147
Balance button (#236)
* speed up tx lock

* yolo master

* blanace button

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-26 03:05:25 +01:00
LightningTipBot
09d3af411e
Better longging 1337 (#206)
* speed up tx lock

* better logging and lnurl lightning: prefix

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-24 15:34:17 +01:00
LightningTipBot
f9aed70869
Soft lock (#198)
* add Lock and Unlock soft

* Update mutex.go

* sync mutex

* mutex bracket

* add idInterceptor

* context lock

Co-authored-by: lngohumble <lngohumble@gmail.com>
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-24 00:12:57 +01:00
LightningTipBot
67cff58c63
Revert "Soft lock (#195)" (#196)
This reverts commit 4730c94c84.
2021-12-23 19:29:14 +01:00
LightningTipBot
4730c94c84
Soft lock (#195)
* add Lock and Unlock soft

* Update mutex.go

Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-12-23 19:25:55 +01:00
LightningTipBot
e53ef94306
Revert "add Lock and Unlock soft (#193)" (#194)
This reverts commit a9f2728c93.
2021-12-23 19:08:06 +01:00
gohumble
a9f2728c93
add Lock and Unlock soft (#193) 2021-12-23 19:06:15 +01:00
gohumble
1b24072020
Interface conversion (#191)
* remove user mutex log message

* add bunt cache

* fix send and pay data pointer conversion
2021-12-23 17:07:41 +01:00
LightningTipBot
a644c465cd
Disable bunt lock (#188)
* speed up tx lock

* transaction to storage

* to base

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-23 16:23:57 +01:00
gohumble
dd88c93474
add mutex package (#185)
* add mutex package

* fix cancelSendHandler
2021-12-23 15:47:18 +01:00
LightningTipBot
2469898f9f
Inline lock fix (#184)
* speed up tx lock

* fix get

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-23 15:12:49 +01:00
LightningTipBot
f8fadb1729
Onlysats (#181)
* speed up tx lock

* add shops

* shop

* scrolling

* 🚀 add state stateCallbackMessage 🚀

* no shop

* scroll

* add shop browser

* scroll bug

* add buttons.go

* scrolling

* shop

* lnurl print after serving

* shop deletion

* adding and removing shops

* display photo captions

* refactor

* shops

* shops

* files work

* rename shop

* error handling

* fixes

* payments

* confirm delete all shops

* adding new items fix

* own bunt db for shop

* unlock transaction

* remove double print

* add transaction.Lock(id)

* unlock getShop

* add default interceptors to shop

* more files

* go sleep

* add fileStateResetTicker

* async sleep

* add runtime.ResettableFunctionTicker

* remove default duration

* generalized concurrent mutex

* simplify function ticker

* status message ticker queue

* add start index to shopViewDeleteAllStatusMsgs

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
Co-authored-by: lngohumble <lngohumble@gmail.com>
2021-12-23 10:16:13 +01:00
LightningTipBot
0cfb693619
int64 amounts (#159)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-11 23:17:51 +01:00
LightningTipBot
1ea9268698
better (#160)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-11 22:09:52 +01:00
LightningTipBot
ba6bf0a317
telebot fork user ID int64 (#151)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-01 11:24:28 +01:00
LightningTipBot
0abe56dfba
Revert "telebot fork user ID int64 (#149)" (#150)
This reverts commit 7c8ba7895d.
2021-12-01 08:59:51 +01:00
LightningTipBot
7c8ba7895d
telebot fork user ID int64 (#149)
Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-12-01 08:52:47 +01:00
LightningTipBot
8f569ed4c3
send input (#138)
* send input

* remove message limiter

* write invoice into tx db

* do not delete tip twice

* hide link after 60 sedondw

* refactor button text update

* remove print

* translations enter user

* add tr

* no error on invalid user input

* printing fix

Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
2021-11-17 19:51:51 +01:00
calle
e1d858752f
emojis for logging (#133)
* emojis for logging

* emojis for logging
2021-11-15 10:18:57 +01:00
LightningTipBot
11edce049e
General amount (#118)
* generalized amount started

* add new file

* uncomment old pay

* longer comments

* lnurl pay with generalized amount input

* generalized amount for /invoice

* amount input for all commands

* remove logging

* delete old comments
2021-10-30 21:26:01 +02:00
LightningTipBot
c90cfd9d8a
tipjar (#114)
* tipjar

* tipjar

* fix pointers and wallet keys

* better comment
2021-10-27 11:55:59 +02:00
gohumble
94eff98f60
bunt transaction generalization (#73)
* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* some fixes

* tigher error checking

* add CreatedAt and UpdatedAt flags

* check error in GetTransaction

* add bunt transaction package and rename stuff

* use transaction.Base as function receiver for transaction functions

* add transaction.Base.Set function

* fix tiptooltip bunt index

* refactor

* auto update updated at

* refactor

* remove balance from error

* fix updated at

* faucet errors

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline receive

* use bunt tx for inline send

* use bunt tx for pay

* fix typo

* readd context

* some fixes

* tigher error checking

* add generalized bunt database transaction

* use bunt tx for inline faucet and send

* use bunt tx for inline send

* add CreatedAt and UpdatedAt flags

* check error in GetTransaction

* add bunt transaction package and rename stuff

* use transaction.Base as function receiver for transaction functions

* add transaction.Base.Set function

* fix tiptooltip bunt index

* refactor

* auto update updated at

* fix updated at

* faucet errors

* refactor

* remove balance from error

* rebase fixes

* fix imports

* fix de string

* fix receive and send

* faucet language

* remove pay constructor

* release faucet

* remove redundant inTransaction

* remove constructor

* remove constructor

* transaction get pointer receiver

* send race condition

* inactivate in db

Co-authored-by: LightningTipBot <hWOofXvq4m@mail.com>
2021-10-08 00:46:52 +03:00
LightningTipBot
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
Renamed from send.go (Browse further)