Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor #3

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Refactor #3

wants to merge 10 commits into from

Conversation

jackstar12
Copy link
Contributor

@jackstar12 jackstar12 commented Jul 29, 2023

This pr is essentially a redo of #2

If run on the instance directly, the bot is now started in a seperate process. For this to work, not much extra functionality is needed because it has to be able to run standalone anyways. There is a bunch of code which unifies the bot logs with the lnbits logs to make it look better, but it could be removed:
image
vs
image

It also removes the migration of the old data out because it required direct access to usermanager db - which is not always available. I instead put it into a small script for anyone that wants to migrate some old data:
https://gist.github.com/jackstar12/4bdefc8e0e73e51f4f2357227a86cd57

It also adapts to the new usermanager changes
(see lnbits/lnbits#1697, lnbits/usermanager#11)

It shouldnt be this big, but I dont wanna try to split it all up right now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant