Kick.bot icon indicating copy to clipboard operation
Kick.bot copied to clipboard

Commands depending on the role

Open A57RO opened this issue 1 year ago • 2 comments

when I want to make commands so that only moderators can use them in the role value instead of the numbers assigned in the documentation of 0 = Viewer, 1 = VIP, 2 = Mods, 3 = Broadcaster I have to use 3 for moderators and 4 for the broadcaster and I tried with numbers with other numbers for only viewers but none worked, I attach images of how I did it in case I am making a mistake and I apologize if what I write is not understood at all well, I am Spanish speaking and I'm using a translator.

command

A57RO avatar Sep 19 '24 01:09 A57RO

@A57RO you have the "isSubscriber" and "isModerator" booleans you can use to make the check

image

I use a similar method for my filters to ignore messages from bot accounts and mods try "if isMod equals True, do action then break, else do nothing then continue" and repeat that for all the user categories you wanna support or replace the isModerator by isSubscriber as desired

(don't copy the screenshot because it does the exact opposite of what you want)

TheGeekno72 avatar Sep 19 '24 11:09 TheGeekno72

It worked perfectly, what if it is that in my kick channel I gave myself moderator to be able to use the commands that are only moderator, is a little strange solution but worked perfect, thank you very much for answering the post 😺

A57RO avatar Sep 19 '24 19:09 A57RO