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

Bot message to community admin to update solvers #314

Open
grunch opened this issue Jul 7, 2022 · 0 comments · May be fixed by #563
Open

Bot message to community admin to update solvers #314

grunch opened this issue Jul 7, 2022 · 0 comments · May be fixed by #563

Comments

@grunch
Copy link
Member

grunch commented Jul 7, 2022

Create a cronjob where the bot send a message to the community admin letting him know that the community doesn't have solvers.

We need to increment in database the number of this messages sent to the admin, if the admin don't add at least one solver in n times, the community will be disabled.

@grunch grunch moved this to Looking for dev in Developer Rewards ⚡👩‍💻 Sep 22, 2022
doitwithnotepad added a commit to doitwithnotepad/lnp2pbot that referenced this issue Aug 14, 2024
- Schedule a daily job at midnight to check for solvers using `node-schedule`.

- Implement `checkSolvers(bot)` to send a message to the community admin if no solvers are found.

- Increment the count of messages sent to the admin in the database.

- Add logic to disable the community if no solvers are added after a specified number of notifications.

Fixes lnp2pBot#314
@Catrya Catrya moved this from 👨‍💻 Looking for dev to 📝 In Progress in Developer Rewards ⚡👩‍💻 Aug 14, 2024
@Catrya Catrya moved this from 📝 In Progress to 👨‍💻 Looking for dev in Developer Rewards ⚡👩‍💻 Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 👨‍💻 Looking for dev
Development

Successfully merging a pull request may close this issue.

2 participants