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

feature request: add support for different roles in a task coded into the token #265

Open
sebag90 opened this issue Jul 10, 2023 · 0 comments

Comments

@sebag90
Copy link
Contributor

sebag90 commented Jul 10, 2023

All users are equal in slurk and if a task requires users to have different roles, the only options are:

  • the bot can randomly assign roles to the users of a task
  • users have to enter a command to assign users (es. recolage bot)
  • solutions that require modifications to the concierge bot:
    • create tokens for different users with different rights (es. one with and one without send_command right), once two users with different rights have been paired, have the bot modify the rights to fit the task
    • use a landing page that automatically assign a username and a token to a new users and code the role into the username

Proposal:

  • add a new attribute num_roles (int) to tasks
  • add the parameter role (int) to tokens - the mapping between role number and actual role will then be defined in the task bot
  • modify the concierge bot in a way that, if a task has more than one role, it will only pair users once a user for each role connected to the waiting room
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants