-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Create a Delta Chat bot as an additional admin interface #36
Comments
In the discussion with the mailcow folks we came to the conclusion that it makes sense to run the flask HTTP API, the prune commands, and the bot all in the same process/container. Open questions:
|
the easiest way to do this seems to be starting the prune and bot threads from src/mailadm/app.py.
Could the bot and prune threads be daemons, which kill the main process if they die? This way the whole process would die if any thread dies, causing the docker container to restart. |
Related: #101 (I wanted to keep security issues separate). |
Any plans for this bot to notify about important behavior of the server?
Each such notification should have 2 parts: a. Concise description what happened. |
Those are cool ideas :) I think they are far in the future, but yes, this bot interface could one day be used for many server/admin interactions beyond user management. |
oops, misclick. If you want to contribute on features like this, I suggest you open an issue about them, we discuss a bit about what makes sense considering the different use cases of mailadm, and then you can start implementing :) |
We want users to be able to run mailadm commands out of Delta Chat. The bot creates a verified group - to make someone an admin, you can just invite them to the group. This interface can expose pretty much all of the command line commands.
A first try to implement this was in #23, but it's pretty outdated as it was before the switch to mailcow. Not sure if it can be re-used.
usage flow
mailadm init
) runmailadm setup-bot
to create a bot account and admin group. it shows an invite QR code for the admin group.to do
mailadm setup-bot
The text was updated successfully, but these errors were encountered: