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

Private bot #6

Closed
ex0ns opened this issue Jan 6, 2016 · 1 comment
Closed

Private bot #6

ex0ns opened this issue Jan 6, 2016 · 1 comment

Comments

@ex0ns
Copy link
Contributor

ex0ns commented Jan 6, 2016

Hi,
I would like to implement a secure bot feature, meaning that the bot could only respond to specific channels (groups or users), I thought the best would be to add the filter inside the handleUpdate methods of the Commands class, allowing us not to call the action if the msg.chat.id does not match any of the authorized one.

Here are my questions:

  • Do you see a better place to add this feature ?
  • Where would you put the authorized groups ? in a config file ? (maybe add config to the project, but it seems overkill)
@ex0ns
Copy link
Contributor Author

ex0ns commented Jan 17, 2016

Done ! See 044507a

@ex0ns ex0ns closed this as completed Mar 17, 2016
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