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

Trusted list #244

Closed
3 tasks done
egregors opened this issue Feb 22, 2022 · 0 comments · Fixed by #245
Closed
3 tasks done

Trusted list #244

egregors opened this issue Feb 22, 2022 · 0 comments · Fixed by #245
Assignees
Labels
core enhancement New feature or request

Comments

@egregors
Copy link
Collaborator

egregors commented Feb 22, 2022

Now we have an admin and non-admin users in the chat. I'd like to add one more level. Let's introduce Trusted level.
The idea is pretty clear:

  • add trusted collection into DB (who trusted, trusted by whom, when trusted);
[
    {
        "userId": 1234567890,
        "trustedBy": 1234,
        "trustedAt": "2022-22-02 10:20"
    }
]
  • add commands to trust and untrust for admin (maybe cmd to check is the particular user trusted);
  • put or delete trusted users into \ from DB by commands above, (admins are trusted by default);

Why? To allow some non-admins to run some flood dangerous commands, for example #243
And this badge could be a pleasure for active chat members who are not win a AoC yet ;)

For example:

Alice: /cancel
Nyan: *ignore*

admin: /trust @Alice
Nyan: Alice is trused now!

Alice: /cancel
Nyan: *start a Poll*

admin: /untrust @Alice
Nyan: @Alice did not justify the trust...

admin: /trust? @Alice
Nyan: nop

I see all this stuff like a part of core functionality.

@egregors egregors added the core label Feb 22, 2022
@egregors egregors added the enhancement New feature or request label Feb 22, 2022
@egregors egregors self-assigned this Feb 22, 2022
@egregors egregors mentioned this issue Feb 23, 2022
egregors added a commit that referenced this issue Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant