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

Do not accept invitations to a room with more than 1 other user #7

Open
bolinocroustibat opened this issue Apr 26, 2024 · 2 comments
Open
Assignees

Comments

@bolinocroustibat
Copy link
Contributor

bolinocroustibat commented Apr 26, 2024

First, make sure that the bot does not accept invitations when it is a room with more than 1 other user/people.

...and later on, if Albert bot is invited to a room with more than 1 other user, ensure that he only responds when Albert bot is tagged

@nrolin
Copy link
Contributor

nrolin commented Apr 26, 2024

First, make sure that the bot does not accept invitations when it is a room with more than 1 other user/people.

I'm not sure this is easy to do, private message is handled the same way as a room (you can even invite more people to a private conversation).

In my code I used the number of user because it's the only thing I found reliable, but there should be an other way (tchap client manages to sort it out). It would be possibly easier to join the room, then decide to immediately quit if it is not a private conversation.

ensure that he only responds when Albert bot is tagged

it should be fairly easy with https://code.peren.fr/open-source/tchapbot/-/merge_requests/2

@bolinocroustibat
Copy link
Contributor Author

Ongoing PR: #43

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

3 participants