Fine-Tuned Permissions in SB using Groups

Поділитися
Вставка
  • Опубліковано 21 вер 2024

КОМЕНТАРІ • 34

  • @Phlare
    @Phlare  6 місяців тому +2

    new exports coming for users using Streamer bot 0.2.3 (currently in beta):
    i break for bot group members 0.2.3+: bit.ly/sb_botgroup_new

  • @Weit8Production
    @Weit8Production Рік тому +1

    DUDE YOU ARE MY HERO THANK YOU SO MUCH

  • @ChrisPiciullo
    @ChrisPiciullo Рік тому +1

    Getting to see the random pointing from the short was the highlight of the video for me. 😅 Seriously, this is fantastic. I love the first version of the "I break for bots" action but moving it to and expanding on groups with it and other uses in general is super useful. Thanks!

    • @Phlare
      @Phlare  Рік тому +1

      Lol. Yeah, I was gonna do another take and cut it out, but I was like…. Nah let’s keep it! It’s very real, every time I try to point to something I know is gonna be on screen my brain just stops firing and I’m like…. 🤷🏻‍♂️

  • @DjPorkchop73
    @DjPorkchop73 Рік тому +1

    Phlare tonight is my catch up night on YT videos and man I got to say, I really enjoyed this video. Easy to understand content, not full of fluff and right to the point! I can easily see how I can put this to use. As always, thanks for sharing with us.

    • @Phlare
      @Phlare  Рік тому +1

      Thanks for watching!

    • @DjPorkchop73
      @DjPorkchop73 Рік тому +1

      @@Phlare Not a problem at all. This is a really handy feature.
      On a side note, I saw your recent Walkon Sounds post. I have sounds currently as a channel point redeem. I also want to automatically give subscribed users a option to have a walkon sound as well. I am curious if this would work for that. I am sure it will work fine as you pointed out in that post. However, if the person cancels there subscription / lets it expire and doesn't renew, will it get rid of the walkon sound as well via these here group permissions?

    • @Phlare
      @Phlare  Рік тому +1

      @@DjPorkchop73 I wouldn’t use a group for that. Instead when you get the user info for target you should have access to a %targetIsSubscribed% variable you can use in a logical if statement
      wiki.streamer.bot/en/Sub-Actions/Twitch/Get-User-Info-for-Target

    • @DjPorkchop73
      @DjPorkchop73 Рік тому +1

      @@Phlare Oh ok. That's cool. I'll take a look into that for sure. I really appreciate it.
      Also, I ran across another instance that I needed to ask about. If we have another action that is tied to Present Viewers, how do we run both at once? I'm thinking by now I should know this but oddly enough I don't. I am running Flad's point system and it relies on present viewers to update viewers points every 5 minutes. I was thinking I could add a subaction to the iterateviewers of yours at the end of the action, but the more I pondered it the more it made sense to me to not do that. 😀I figured the wiser man asks before he just goes and does.... sometimes.
      **EDIT**
      I believe I got it. I used Andi's multiple actions at once tactic. Hoping it works.

    • @Phlare
      @Phlare  Рік тому +1

      @@DjPorkchop73 yeah you'll want to either call one of these actions as a subaction from the other, or make a "parent" action that triggers both of them.

  • @oudPendragonNL
    @oudPendragonNL Рік тому +1

    First one thanks again for these great informed content ❤

    • @Phlare
      @Phlare  Рік тому

      thanks for watching!

  • @perplera6676
    @perplera6676 Місяць тому

    Hi @phlare, any atualization to de Action join group (via command or channel points)? Thanks for your work

  • @Phlare
    @Phlare  Рік тому +1

    What kind of commands would you lock down with a specific group? Is there some criteria other than follow time that you would use to automatically populate a group?

    • @Phlare
      @Phlare  Рік тому

      Thanks for watching! I'm overwhelmed by those of you that come by my stream and have said hi.

  • @WPIG1651
    @WPIG1651 11 місяців тому +1

    I would like to know the somewhat opposite of this: Doing a first words action ONLY for members of a certain group?

    • @Phlare
      @Phlare  11 місяців тому

      You could basically just reverse the “return true” and “return false” parts of the C# bit to achieve this

    • @WPIG1651
      @WPIG1651 11 місяців тому

      How could I do that? here's the raw (I'll change the group name) -> return !CPH.UserInGroup(user, botGroup);

  • @Kuroganashi
    @Kuroganashi Рік тому +1

    on the Auto populate you forgot to show where to implement it at. logic makes sense and all but without calling the function its kinda confusing to have the code, unless you put it to run on the welcome message maybe ?

    • @Phlare
      @Phlare  Рік тому

      I say in the video that this is assigned to the “iterate present viewers” trigger under Platform > Twitch > Events > General

    • @Kuroganashi
      @Kuroganashi Рік тому +1

      @@Phlare so am I adding this to an existing function wouldn't work as well ? curious cuz I already have a function for when stream starts and when it ends.

    • @Phlare
      @Phlare  Рік тому +1

      @@Kuroganashi calling this action from an existing function would not work as well because people who don’t trigger that function would never be added to the group.

    • @Kuroganashi
      @Kuroganashi Рік тому

      @@Phlare noted :/

  • @MisterVloop
    @MisterVloop Рік тому +1

    It's great to laugh at yourself trying to hold a straight face when derping.
    Man!!! You are awesome!
    I have a question.
    Would this work for a custom "First Words" event?
    I really miss one thing I had in Firebot, but since FB broke I'm full on SB now.
    If a viewer was either a member of my team, or a special person I chose by hand I had a custom message for them.
    I had to manually make a list of said special people on FB, but on SB I don't know how to use this.
    It's something similar to the "walkon sounds" for first words, but I don't want to play a sound when a special viewer says something for the first time.
    Making it short: If a viewer is on a group I call "hugs" they get a chat message with a hug. If the viewer is in a group I call "hugs and shoutout" they get a hug and a shoutout. If the viewer is part of my Twitch team, they get a special message and a special shoutout.
    I have been looking for such a thing for weeks and haven't found anything I could work with. - I even asked ChatGPT to write it for me, but I'm a spoon when it comes to coding, so I have no idea if ChatGPT wrote something usable.
    Do you have any idea how to do this?

    • @Phlare
      @Phlare  Рік тому +1

      This is all totally doable
      Two questions:
      1) do you need custom messages for each user? Or just a custom message for each group?
      2) what happens if the user is in both groups? Do they get both messages, or does one take priority over the other?

    • @MisterVloop
      @MisterVloop Рік тому +1

      @@Phlare Both questions are very valid.
      I normally do some stuffs manually, if a user who is on a group gets an upgrade to another group I relocate them myself. But if I forget it, then one group would take priority for sure, or chat will get too cluttered with my messages.
      Let's say I'll have 3 groups (not counting users who are not in a group at all) in priority order.
      1. Team Members
      2. Hugs and Shoutout
      3. Hugs Only
      Team members would get a special shoutout, to which I already have a !sso command
      Hugs and Shoutout would get a !hug from me and a !so too
      Hugs only would only get a !hug from me
      These would all be triggered when said user says something for the first time on the stream of the day (like First Words, not "first time chatter").
      Don't know if I'm being clear.

    • @Phlare
      @Phlare  Рік тому +1

      yeah i understand. I see you've joined the discord too so we can workshop it there.
      this is all doable, it's just a matter of finding the time to do it :)

  • @shaundabomb965
    @shaundabomb965 2 місяці тому +1

    I am trying to get the add to group using a command working but its not running the code correctly. Ive tried creating a "Test Group" and just use the code you had given so that way I didnt have to change variables but still nothing :/ When I compile the code I am getting a couple errors too (without changing anything). Im on version 0.2.3. Any help would be appreciated.
    P.S. I am able to add a chat message at the end and that does get triggered and sent, so not a command issue or anything like that.

    • @Phlare
      @Phlare  2 місяці тому

      Yes, this group code no longer works, any of the CPH functions that have to do with groups now also have to choose a platform

    • @shaundabomb965
      @shaundabomb965 2 місяці тому

      @@Phlare Does that require just some added text to the CPH line or is it a bit more complex than that? Sorry, I dont really do code.

    • @shaundabomb965
      @shaundabomb965 2 місяці тому +1

      I just looked at your updated code for the "break" and I see what u did there. I think I fixed it! Thank you!

    • @Phlare
      @Phlare  2 місяці тому

      @@shaundabomb965 nice job! I’ll have to update the code for this one too it seems!