Fine-Tuned Permissions in SB using Groups

Поделиться
HTML-код
  • Опубликовано: 8 фев 2025
  • In this video, we'll dive into the powerful feature of custom user groups in Streamer.bot and how they can be leveraged to provide more precise control over permissions.
    We'll cover the following topics and more:
    manually creating and managing user groups
    leveraging groups to define permission for commands and actions
    allowing users to join groups themselves
    dynamic generation of groups
    Whether you're a seasoned Streamer.bot user or just getting started, this video will help you take your stream control to the next level.
    Import Codes (updated September 24 2024):
    i break for bot group members for SB 0.2.3+: bit.ly/sb_botg...
    join group (via command or channel points): bit.ly/sb_join...
    autopopulate group based on follow time: bit.ly/sb_foll...
    ===== Timestamps =====
    00:00 Let's talk about groups in Streamer.bot
    00:26 Manually Manage Groups through the UI of Streamer bot
    01:25 Restricting Commands using Groups
    02:24 Restricting Actions using Groups (upgraded "I break for bots" action)
    04:20 Allow users to join a group with a command or channel reward
    05:06 Automatically Populate a group based on follow time (or some other condition)
    07:16 I should have cut this, but it makes me laugh.
    🔥 Subscribe here! bit.ly/phlare_...
    🔴 Watch Phlare Live: bit.ly/phlare_...
    ===== Quick Links =====
    📼 More Streamer Tutorials: bit.ly/phlare_...
    🤖 Streamer.bot software: streamer.bot/
    ➤ OBS Studio: obsproject.com/
    ♪ Epidemic Sound - Royalty Free Music + SFX: bit.ly/phlare_es
    ===== Socials =====
    🔥 Join Phlare's Discord: bit.ly/phlare_...
    👕 Phlare's Merch: bit.ly/phlare_...
    👑 Phlare's Throne Wishlist: bit.ly/phlare_...
    🐦 Twitter: bit.ly/phlare_...
    🗪 Phlare's other socials: bit.ly/phlare_...
    ===== Affordable Streaming Gear for Beginners* =====
    🎥 Elgato FaceCam: amzn.to/3KDqJjb
    🎤 HyperX Solocast: amzn.to/3ONUD6F
    🎤 Cheap Boom Arm: amzn.to/47pwYRf
    🎤 Pop Filter for Mic: amzn.to/3DTWcKe
    🚨 Programmable RGB Floodlights: amzn.to/3QS6pP5
    *As an Amazon Associate I earn from qualifying purchases.
    Music provided by Monstercat:
    Gregory Esayan - Make A Wish
    / monstercatsilk
    #twitch #groups #permissions

Комментарии • 53

  • @Phlare
    @Phlare  11 месяцев назад +2

    new exports coming for users using Streamer bot 0.2.3+
    i break for bot group members for SB 0.2.3+: bit.ly/sb_botgroup_new
    join group (via command or channel points): bit.ly/sb_joingroup
    autopopulate group based on follow time: bit.ly/sb_followergroup

    • @mohammadrahiminft
      @mohammadrahiminft 4 месяца назад +1

      dude the 2.04 is come
      please help us the code dont work any more

    • @Phlare
      @Phlare  4 месяца назад

      @@mohammadrahiminft updated all the exports for this video. thanks for letting me know.

    • @keykeykeeks
      @keykeykeeks 6 дней назад

      it's on 2.6 now. it doesn't work for me

    • @Phlare
      @Phlare  6 дней назад

      @@keykeykeeks which part doesn't work?
      i think I only updated the first export and not the join group or autopopulate group exports

    • @keykeykeeks
      @keykeykeeks 6 дней назад

      @@Phlare the first part, the bots aren’t ignored. I tried to set them to be ignored when someone chats in the stream (So i know when someone has said something in chat) but when a timed command is set off the sound alert still sets off.

  • @artofsounddj
    @artofsounddj 3 месяца назад +1

    This is sooo helpful! My bots are no longer having full blown conversations with each other! Thank you =)

    • @Phlare
      @Phlare  3 месяца назад

      Glad it helped!

  • @artofsounddj
    @artofsounddj 3 месяца назад +1

    Came back and grabbed the Join Group import string. Works great, thanks again!

  • @raptor1901
    @raptor1901 Месяц назад +1

    Can't wait to try this out! I want to get pinged when someone chats during VR, but ignore bot messages. This will be a big help!

    • @keykeykeeks
      @keykeykeeks 14 дней назад

      this workin for you?

    • @raptor1901
      @raptor1901 12 дней назад

      @@keykeykeeks I tested it out, and so far seems to work.

  • @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!

  • @Weit8Production
    @Weit8Production Год назад +1

    DUDE YOU ARE MY HERO THANK YOU SO MUCH

  • @perplera6676
    @perplera6676 6 месяцев назад

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

  • @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 :)

  • @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.

  • @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 :/

  • @WPIG1651
    @WPIG1651 Год назад +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  Год назад

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

    • @WPIG1651
      @WPIG1651 Год назад

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

  • @SRten
    @SRten 3 месяца назад +1

    its work with RUclips?

    • @Phlare
      @Phlare  3 месяца назад +1

      These prebuilt ones are for twitch specifically but a RUclips version could be made for sure. Perhaps I can come up with an all-in-one version

    • @SRten
      @SRten 2 месяца назад +1

      @@Phlare Still waiting for the RUclips version. 🥲

    • @Phlare
      @Phlare  2 месяца назад +1

      @ yeah.. this is something I indend to do, but this is just a hobby for me on top of my job and family so I go slow

  • @yungbuc31089
    @yungbuc31089 Месяц назад

    I imported the I break for bots into my Streamer Bot. How do I edit the list of Bots? I want it to ignore my twitch name along with a few other bots it is still shouting out?

    • @Phlare
      @Phlare  Месяц назад

      @@yungbuc31089 you just add those users to the bot group

  • @shaundabomb965
    @shaundabomb965 6 месяцев назад +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  6 месяцев назад

      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 6 месяцев назад

      @@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 6 месяцев назад +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  6 месяцев назад

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