8000 Allow multiple users to use the same bot · Issue #2 · Lisiadito/githubUpdates · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Allow multiple users to use the same bot #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and cont 7D31 act 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

Open
Lisiadito opened this issue Oct 13, 2019 · 0 comments
Open

Allow multiple users to use the same bot #2

Lisiadito opened this issue Oct 13, 2019 · 0 comments

Comments

@Lisiadito
Copy link
Owner

At the moment the bot uses the Github token which is stored in the .env file. To allow the bot to be used by multiple users we need to store a combination of a telegram chatID and a Github api token in a database and adjust the code a bit.
I would suggest to use a sqlLite DB since we have almost no external write access and the bot reads in a big interval.
Tasks would be:

  • add sqlLite db
  • add telegram command to add a new user
  • adjust docker file that the db is stored outside the docker container
  • adjust code so that for each user in the db the check is done
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

No branches or pull requests

1 participant
0