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

[Request] Commands Only One User Can Use. #29

Open
Jyojibh opened this issue Jan 9, 2024 · 3 comments
Open

[Request] Commands Only One User Can Use. #29

Jyojibh opened this issue Jan 9, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Jyojibh
Copy link

Jyojibh commented Jan 9, 2024

In the Commands tab there is the ability to add either moderators etc but is there a way to implement the same thing for kick where it can pull users from kick to be able to only use those actions you assign to said user.

Ex:
Command - !Memes
User - SendMemesPlox

Action:
Trigger - !memes
Sub Action - Play Sound file from folder.

@Sehelitar
Copy link
Owner

There's no way to add users from an external source unfortunatly, so this is not possible yet.

@Sehelitar Sehelitar added the wontfix This will not be worked on label Jan 14, 2024
@Sehelitar Sehelitar assigned Sehelitar and unassigned Sehelitar Jan 14, 2024
@Sehelitar
Copy link
Owner

The only way to limit access to a command to a few specific users is to implement this in your action and check if the user argument matches someone in your list (with a bit of C# code maybe).
I might have something in mind for this.

@Sehelitar Sehelitar added this to the v0.3.9 milestone Jan 19, 2024
@Sehelitar Sehelitar added enhancement New feature or request and removed wontfix This will not be worked on labels Jan 19, 2024
@Sehelitar Sehelitar self-assigned this Jan 19, 2024
@Sehelitar Sehelitar modified the milestones: v0.3.9, v0.3.X, v0.3.10, v0.3.11 Feb 27, 2024
@Sehelitar Sehelitar modified the milestones: v0.3.11, v0.4.X Mar 8, 2024
@TheGeekno72
Copy link

The only way to limit access to a command to a few specific users is to implement this in your action and check if the user argument matches someone in your list (with a bit of C# code maybe). I might have something in mind for this.

@Sehelitar @Jyojibh just add an "if user equals [ignore case] yourname do nothing then continue else do nothing then break"
if you want several users to be able to use it, duplicate the above as much as you want but replace the last part (break) with continue except for the second one, it'll check if the username of the command caller is in that if cascade and break action on the last if not
that ought to be enough for whitelisting users on a command triggered action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants