Counter Commands for Streamer Bot

Поділитися
Вставка
  • Опубліковано 22 тра 2024
  • I received a comment on a recent video asking about how to make a counter for your stream that does not reset when streamer bot is closed.
    I always like to say I’ll help you solve the issues you have when you ask questions in the comments, so I’m putting my money where my mouth is and making a video in response to this question. So here is how to create a counter for your stream using persistent variables.
    The key to having a counter not expire or reset when the bot is closed is to use persistent global variables. The data for these variables is saved in the background to a .dat file, instead of just being held in memory, so when the bot is closed and reopened it’s able to recover the previous value of the variable. I use this for my death counter commands as well as about two dozen other actions I have set up. In this example, I’ll show you how to set up a command that’ll leverage one of these variables.
    🔥 Subscribe here! bit.ly/phlare_subscribe
    🔴 Watch Phlare Live: bit.ly/phlare_twitch
    ===== Timestamps =====
    00:00 How to make a counter that doesn't reset when streamer bot closes
    00:16 Using Persistent Variables
    00:43 Creating an Action to increment and display a counter variable
    02:34 Setting up a !counter command to trigger this action
    03:00 Testing the persistence of the variable
    03:43 How can i use this kind of counter in my stream?
    ===== Quick Links =====
    🎬 Streamer.bot Setup Video: bit.ly/phlare_sb_setup
    🎬 Importing/Exporting Commands Video bit.ly/phlare_sb_import
    📼 More Streamer Tutorials: bit.ly/phlare_tutorials
    🤖 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_discord
    👕 Phlare's Merch: bit.ly/phlare_shop
    👑 Phlare's Throne Wishlist: bit.ly/phlare_throne
    🐦 Twitter: bit.ly/phlare_twitter
    🗪 Phlare's other socials: bit.ly/phlare_linktre
    ===== 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.
    Phlare's Black Mage Illustrations used throughout his branding are drawn by @_dezarts_
    / @_dezarts_
    Music Provided by Epidemic Sound
    DEX 1200 / Sugar Coated
    share.epidemicsound.com/pxh99m
    #twitch #counter #commands
  • Навчання та стиль

КОМЕНТАРІ • 121

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

    Update: here's a new import code for a more flexible version of this simple counter that i built with a little bit of C#
    TlM0RR+LCAAAAAAABACtVtty2kgQfU9V/kFLVd4il64YpSoPINtY8poYMNcllZobQvFopNUFkFP5952RwAgEtcnW8iLUPXP69OlRT/94/06SGmsSJ37IGp8k7WNhYCAg/K3RKF8BSrk74Za/xLsk/Sgf3OVjsa6pIgNYiiEbTWzKxnVTlVstuJQ1tQnREmoGaCklVrHp74xkAp9llB6shAFIicBL44xU7FtEM0zu4jC495M0jHO+ZAloUlmzJ4zCjKUkrsTy4jCLhOtpRUFMpOeMI/iASu1dUoelgG5AngwyVsePAcNhUG6pe1HIUBbHhKV1X027I/2KJUmYxUjQVz4e2deAE+WS9HbJRaJMScrDfKvlWWzYL6hpWHgxSVKfAUFnvEMWqB4NIaDf/hUckyXIaDoGtF67ylHQLFNHFl7KTWSq/CjoUIYAKbJBVMVAcNlUm+gEeUN8byWkU65OFEjzSMRSNfXYvi9qncSFQ1QSZJhsBdzB+vPjpaKkZCsoNZ5XRCpylsKllK78RNrJI/G/Hy6K9+G0NDFZEn5EcBsVK+rVLuWzIDRMRKCsoyX/nIjelC1LIXLLsBSMLA1p5PflU/5P9bRfUW//PToMxSTgukhZ4jNPGoBN7VglKPaj3YfVOPG+EBK1qb8mtQ+rcBeiEobIyfdVOO1Pi8WEsw43yWLx6KM4TMJletW7fV4s7mJOcBPGL01jsVgbV8qVruiqtVgECQpj6sMrTGmjCvj1ODLMU2KHuEgST3sRDJA30ukr7o7TLxvl4aYfbfDETcDk0Ztp2xXSH72+2nGGE5PbTMr91zf90EX3Yx926Xen666htvEG0xWd6WNlPvQi4Sccy+7TCLK+x+05CsYZvu2t8cRU5lPHexp2bka3XjbQxspA265nwV0yDu7ypy7vmTdG6LAORawXIX1AIRssZ5ql8idFvpM494McT0bRlzKGNuN4nNsGT/sCd4UC/DrJ3Xw2xS5kHRXbLv5S4QPZOJ0F43zctVwY9PL5RKXC/jRsb/fr5n47PMv7WRH7E2i/eGWOL+75/NqbHZYl9LAnNHDsVVTyaa84zwxPtoljzwKH58z1VBz71nJsx38YdgqN+V4falbC/a+j7l2OtDuu+UjkyPPqvz765ggx2p9N3df5cI9tjqDaU1BAs3nuRX/anbXQ5ULOUVnzIlaRszM5ihU590nP9l6Ev6jXSBtn81uVIr23mmuj0OFxMK8dmBxiON35GvmdqBLHf3h+w8nn04GKAsPD964639unSvFcDtvFs9SspyLmivrfQJ3r2+XYdmI5XVOFE5ciOljzc/mda5/Oue47vfc8j87Vg+1u5lwnMO0pYu1Ue6uVzzX6jqduLuz9t3O2KfkNX8paTF2K78c59DsKYmNaxBKcmeD9+XO9baIwiHx6oQFgQkE+TEFcv3nLplU0VQxRSzN4K22aiDdVTdflFiRENjHGJr+rWvxu+t2maonf+b562sR+pasqla66//v1dIroigBFq6u4UEgpiBKCK97SWQCVK8uRq7KVbwsCPtScHerKgeSkpypnaPF7L/BTPnCMEn4DnhB7c56lXVamxRu4ZeKWrJtLJBuqGByBjmSldW0B3dCXyGpWJrSDkidTls+KGbE2OwZli1aqchV5i+B/1KfFUmfnvwy1KAwpv2tY+wBxPN/SEIHdNVfh43ssjEknTA+DwXEKu9nC3nE9M3zuHUptkyjLxY3ZwSmK8+NnBRMkZEhY4qfnrt7dyGjvEj6OXKKe81ycxO39UayuBSx9Lr80pXqa37/7+Q9QjSGEtAwAAA==
    This will allow you do do things like !counter 5 to increment by 5 or !counter -5 to decrement by 5
    !counter with no argument will still just increment by 1

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

      Hey, great video, how to reset counter? i want to make command to reset counter but don't know how to edit Execute code

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

      @@DyM_TV you shouldn’t need any c# to make a reset action.
      Just use the set global variable subaction and use the same name of the variable, and then in the drop-down select “value” and for the value type 0
      I’m not at my desk, and will be toddler chasing all day but let me know if you need more help and I can make a new import file that includes a set/reset command

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

      @@Phlare its done! thank you man, have a great day ;)

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

      Right on

    • @Calamitous_Intent_
      @Calamitous_Intent_ 10 місяців тому +1

      Is it possible to have multiplies of this running? The first works fine. However when I duplicate and change the Variable Name & Destination Variable to match the 2nd instance I receive message "invalid number for increment". Not a programmer by any means, so i may be overlooking something simple. Thx

  • @OmNomZombabe-pk4bd
    @OmNomZombabe-pk4bd 3 місяці тому +3

    I CAN NOT tell you how helpful this was. I've been searching for a tutorial on this and this was just what I needed. Thank you so much for an easy to follow tutorial that didn't require me to download a code that just did it. Thank you so much!

    • @Phlare
      @Phlare  3 місяці тому +1

      Thanks for the feedback, I appreciate it :)

  • @Litonator
    @Litonator 7 місяців тому +1

    This was very Helpful!! Thank you very much

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

    Was trying to figure out how to add a counter to a channel point reward and this was perfect, thanks

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

      Awesome! If so desired you can change the dropdown on the persistent variable get and set actions to be a per-user variable instead of global if you’d rather track per user

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

    Thanks I will try this tomorrow!

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

      You’re welcome! Thanks for the video topic!

  • @streamerdotbot
    @streamerdotbot Рік тому +2

    TY for this video :D

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

      You’re welcome as always!

  • @BruhNyaa
    @BruhNyaa 9 днів тому +1

    thnks found it helpfull!

  • @heckadankgangster
    @heckadankgangster 7 місяців тому +1

    Howdy Phlare, found you and this video cause I'm wanting to make a counter for when I swear. I used your pinned message to set up what I have so far, and everything works - but I want to make 2 hopefully little tweaks.
    Instead of sending a message EVERY time the counter increases, would it be possible to send the message every 25 times?
    Is it possible to set a command to send a chat message with an accurate count, without adding to it?
    Thanks for the help you've already provided, will definitely check out the rest of your videos.

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

      yeah this is definitely possible. this was just a very simple example, but i could put something together that does what you're asking. Hard to answer succintcly here though, so if you wanna jump in my discord I can make a forum topic for this and we can work it out. bit.ly/phlare_discord

  • @kakeo6753
    @kakeo6753 10 місяців тому +1

    Hey Great video btw,
    But i would look at where the cam is in the future just to make sure its ez to see landmarks in the app...
    and also i got this to work for Twitch chat but how do i set it in a GDI Text??

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

      Anywhere that I’m using the subaction to send a message to twitch chat, you could use the subaction under the OBS (or Streamlabs) category to set GDI text.
      wiki.streamer.bot/en/Sub-Actions/OBS/Set-GDI-Text
      wiki.streamer.bot/en/Sub-Actions/Streamlabs-Desktop/Set-GDI-Text

  • @SoulofPirateGaming
    @SoulofPirateGaming 4 місяці тому +1

    Hello, I was wondering how to create the command with a variable number, specifically the one you listed as the last command at the very end. Unfortunately, I couldn't find any information on this, not even in the Streamer.Bot Forum.
    Is there perhaps a guide for this? :D

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

      I'm not sure which command specifically you're referring to?

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

    Congratulations on the video. I wanted to ask if it is possible to create a counter related to how many times a specific reward has been redeemed by one of my followers through channel points during the month, so that I can create a monthly ranking.

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

      It's definitely possible, but may be a bit complex.
      Two ways I can think of exploring -
      first, when setting up a channel point reward through SB, there is a "persist per user counter" checkbox that allows you to use %userCounter% in the action that is triggered.
      alternatively you could use user-specific persistent global variables manually yourself to keep track of this count.
      Both of these methods are simple enough to use to report how many times a particular user has done something once they do it again, but the complexity comes when you want to combine the counts across users into a leaderboard.
      I'd ask in the streamer bot discord and see if someone else has already solved this issue, as this may be something someone has already done.
      I'm actually doing something similar myself for one channel point reward and to be honest i'm a little stuck at the moment and haven't gone back to it. (I'm still only just learning C#)

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

      When I figure it out myself I’ll be sure to let you know!

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

      @@Phlare tks a lot! i go to check on discord server!

  • @360GameTV
    @360GameTV Рік тому +1

    Phlare just an update or another *BIG THANKS* after 2 weekends of streaming the counter works every time perfectly :) - If you still need a new topic for a video. I could still use a simple list, not the overloaded queue system from Darts. So where my mod can add and delete viewers who want to play with me and then by command is displayed who is where in the list like 1: User1 - 2: User2 etc.

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

      Hmmm good one! I’ll think about it! I can definitely build something like that regardless of whether it becomes a video. Chances are someone else in the community has already build some kind of simple !join queue but I’ll take a look

    • @360GameTV
      @360GameTV Рік тому +1

      @@Phlare Thanks. The "problem" is even if someone has already built it, you have to find it first :( - I want that my mod can add people not the people itself or maybe as alternative but the main way should be over my mod.

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

      Ok. Seems easy enough

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

    hey thanks so much for this video! I ran into an issue though, im on streamerbot version 0.2.2 and the ui is a little different. In the edit commands tab i dont see the Actions box so i cant choose the action i created. Is there a different way of doing it in this version?

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

      yup! the 0.2.0+ updates made a big change in the way that commands and actions get tied together - i go over that change in this video ua-cam.com/video/j69T9GoFMy4/v-deo.html
      essentially now you go to the "triggers" panel inside your action and create a trigger to tie the action to the command.

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

      @@Phlarethank you so much for the reply and the vids!

  • @RaealTheProtogen
    @RaealTheProtogen Місяць тому +1

    Hey there! Is there a way to apply this to count how many times a channel point reward was redeemed? I'm trying to figure it out but even following this tutorial I'm a little lost 😅

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

      That’s not necessary. Streamer bot will automatically track usage of channel point rewards.
      On the channel point reward record within streamer bot there are checkboxes for “persist counter” and “persist user counter” or something similar (I’m bot at my desk)
      In the action that fires from that channel point reward you will have access to %counter% and %userCounter%

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

    thanks for this tutorial! is there a chance to increase the counter by tipping a number in chat like !counter 25 and !counter 12 to add 25 and 12 on that existing counter? or can you just add/decrease the same amount you put in increment or set the counter to a number you tipe in chat?

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

      yeah, all of these things are possible.
      you could make some extra actions and commands for each thing, this is just a very simple example
      you could make an action that takes %rawInput% and uses it to increment the counter variable instead of just incrementing by 1
      you could also make a !resetcounter command to set it back to 0, etc.

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

      @@Phlare thanks ♥ i put %rawInput% instead of 1 to increment the counter but that doesnt work. is there another action i have to add?

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

      ​@@totti_ist_da ok yeah i had some time to fiddle with it and yeah, you'll need some custom C# for this. I've pinned a new comment with a new import code you can try.
      to explain, the %rawInput% is coming in as a string and when you try to set it as the value to increment the program is complaining that it's not a valid number.
      This can all be easily sorted out by doing custom C# code. so now, if the argument after the !counter command is a number, eg. `!counter 5` it'll work, and if you do something like `!counter none` it'll spit out an error message.
      If no argument is present it'll just increment by 1 as normal.

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

      Thanks a lot!

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

      @@totti_ist_da for sure, let me know how it works out.

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

    Hey man! Do yo know a way to apply this to the 1st user at redeeming something and then set a persistent variable for that command that's linked to the user?
    Example: There's a quiz and whoever guesses first gets a shout out from my bot saying "Congrats (user), you were the first one to guess correctly!"
    However, I wanna be able to store a persistent variable linked to the user's nick so the bot can add "(user) was the first one to guess first x amount of times already, well played!"
    Also thanks for all your good video tutorials, really appreciate it :)

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

      yeah - when you're using the Global (Set) subaction there is a dropdown where you can choose which type of variable to use (labelled "source" in the UI i think)
      the options here are "global" "user(redeemer)" and "user(target)"
      for your use case, you could keep a counter using a "user(target)" variable. this'll ultimately create a new global variable in the globals.dat for each user that it gets applied to and remember them all separately.

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

      @@Phlare Oh shit how did I not see the user specific variables before, thanks a lot, got it set up already now need it tested. Appreciate! 🙏

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

      Right on! Yeah I didn’t notice them either until recently now I have all sort of silly stuff I want to track at a user level.

  • @odinthebeardedone8738
    @odinthebeardedone8738 Місяць тому +1

    Could this be used to track how many times you have done a certain command towards different viewers?

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

      That would be a bit more complicated… I would track that using a variable the same way, but you would want the variable name to use the two usernames so it only incremented for the same combination of message sender and target.

  • @360GameTV
    @360GameTV Рік тому +1

    Hi Phlare, I use your counter on my stream to count my carries. I start with 175 and it works on this day. Next Day the counts was still there and working but on the stream next weekend the counter resets to 0. No idea why. I put it back to my numbers (185) and start again. It works again on this weekend. Next Weekend, again broken and it starts with 0. Why? I really don't understand why the counter resets, in the globals.dat is still the correct number

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

      That’s very strange. It sounds like it’s not able to read from the file sometimes maybe? Did you rename any variables?
      One thing I can think to try is to always run streamer bot as an administrator, maybe for some reason it’s having trouble reading the file?
      Otherwise if you want to try to export your action and command and paste the import code here I can try to take a look. (I’m on vacation at the moment so it’ll have to be next week)

    • @360GameTV
      @360GameTV Рік тому +1

      @@Phlare TlM0RR+LCAAAAAAABADtWNmO2zYUfS/QfxAM5KnDgJtIMW/TAEkLBHlogLwURXFJXmaMyNJUyywN8u+9ksaJvDSxAU8mg9YGbJOX4nLO5eGhP/z4Q5YtrrBpl3W1eJbJs7GighVSabGYihA6CrdU8/tQzrIP0xeFlnFox3lKUaqcBSsj00IqVmhITCikt/Heczn1NT70V4/90H/Vl+XnWqzAlzj01zU9zupvQtlHfNHUq1+WbVc3t9QkQdnO2qwn/LKBKq6g7bDJ3mA3G/NdU/eXQ5PndV9ReBaC8hpu29/6arffobt6dT6ufzca6ir0TYNVtxvbwWwDt7FJW/dNGKbNzzbqr6BZDlC83l3Un286aGbLGttfDvRRdAe6MRqx7ZYVDLN5e9fxdqevsV9sP5SgL7u3UI5EicJsxifarfOF5yIxHiIwrV1kzgnFjBJc0TsEcFsdX+Py3cUAF3+6teru9nIcSorN+jVxG8nypYSZJlhFvBmG+Vz78ezfiOjwZpjS4ue6e5Y92ULmyWLf0pN3thCaM+1QMA06ZxAMMF6kxGUePXJ97NI15ydduzxk7W3A6lOmvVpe4daspyTdk4psZyNtYPk1GGnvVDjukV/vJGR6sT0f69deJmQodDIJmYVAdOS6YD4YzmyOkFMpocuPZUK5U/KgDuLh0YjBLggTEcJFF4UzDD3tBk27g3nhEvOa9onF3HthT6YGi8XxPIgZD+uff2wr9sthgFG2Z6FQlyVcthhn0Sm4JnT7RDSKa59Lx1IKBIbJA+FgDYsBjOXWQrL2W5+IP4n/z8P73QJ06BkrZM6ckZ6OBmLdeWlYgTJgCB7zfFvEvssDcYbRfdPxiXS5Pcqd9diHM4pUQEEi7wog45GkYKAIduO8EIgYrS6Ox1meEmdxCM4bxuO8qrsL8q1tHwK2berLrOmrs6yts2vMoMGsqq8z6A50KEFb4JbORSkxEEakyYWDyJBjLpKyufRH5+KpHcphJ+Njdyg5bf5kKEdlVI6YcAMTKrKUCw7RgoKkHtah6P+GQ8ljoSj9DRPW0jXV0L7wIUQGzigrClVQ6UEdytyx37dDQY0+5koxF70ku2YCA24MUxas9pIUQvFv7VDYefU3AY7ft0/ZUO0XNNT7jIbLXtXvcQVVdgFXmIV6dVkiJfmuWs8Ffv5/xXNomiW2T/dqiFBOmURuWvKc2FIFZ4CertpWpSA5cpcfba5PreYHHXmPXs159EpilCxAoei+ycneRa1ZMIlqAnchPvB987B7/6NXcxvBR9SeuZDo4g9gSc2dZzIJgAI4FuZh75tzq30yNR++ppaTJM8epcdWJEBx3f7jP6MuEP3eFQAA
      Yes running as admin, always and I have already tried to fix it myself. Currently there are 3 commands, once to set the number because it resets again and again. Then a simple display of how many we have and then the command to increase. Yesterday I post my show comment into the chat !gm - Bot: Frank and Lokeman have completed successful Grandmaster Carries. - no numbers? Then I try my increase command !gm1 and Bot: Another successful run, so we are now at 1. It starts by 1again..no idea why :/
      /e in the globals.dat it is also resetting :/

  • @KirranLewis
    @KirranLewis 10 місяців тому +1

    Is it possible to do a command like "!counterset 51" or "Counterset 23"and have it set to that number in the chat messege

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

      Yeah, you could just build a new action and command for this, taking %rawInput% and setting the value of the global variable with it

  • @xamethyst3501
    @xamethyst3501 20 днів тому +1

    Do you have to keep adding the commnads and change the number 0 1 2 3 4 ?

    • @Phlare
      @Phlare  20 днів тому

      No it should just increment the count each time with the same command

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

    Can this be duplicated to count multiple things? Like a death counter, jumpscare counter, curse counter, etc? If so, how is that done. Thanks for all the great video tutorials!

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

      Yup! So in this example I just use the word “counter” generically.
      You would want to duplicate both the action and the command and everywhere it uses the word counter as a name or variable just change it to deaths, Or jumpscares.
      The gist is that you would have a whole separate set of command and actions for each counter, as well as a separate global variable that gets stored.

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

      @@Phlare oh good, that makes total sense. And then if I wanted a graphic to show on screen, is that possible? Like an alert maybe? Or a persistent graphic for the counter?

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

      Yes, this is all possible for sure.
      What Broadcasting Software do you use, so I can answer more definitively? I mostly focus on OBS Studio, but I know a lot of this stuff is also possible with streamlabs desktop.
      in either case you'll want to have streamer bot connected via websockets to your broadcasting software so that it can interact directly with your scenes and sources.
      there's a section in my getting started video about how to connect to OBS.
      ua-cam.com/video/BdQyHlZ91rc/v-deo.html
      once conected, you can use the updated count in a number of ways:
      you could have a text source that you update for a simple counter, or a graphic that shows up, or any number of things.

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

      @@Phlare Yes, I use OBS Studio and have SB connected. I just don't yet understand how to add/tie extra actions in to make them work. Ideally, I want the count to update in chat and have an on-screen graphic that pops up or is persistent. Currently, I have one via Streamlabs Chatbot but I want to consolidate things into SB.

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

      @@thewynd so, the nice thing about streamer bot is that each action can have multiple subactions, so you can send the message, set text or an image source, show/hide sources, play a sound, etc. all in one action. I’m happy to help you more directly if you wanna jump into my discord - I have some tech help sections and am generally able to respond pretty quickly. We can keep chatting here if you want as well.

  • @martind.6208
    @martind.6208 Рік тому +1

    Hi Phlare, i dont know anything about that things. Is it possible to create a follower goal that increases the goal counter by +1 for each follow?
    Example: 3 Follower shows 3/4. After a follow, the follower counter should automatically increase by one 4/5...

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

      hahaha sneaky. yes that's possible. you would want to just use two separate counters essentially and increment both of them on a follow.

    • @martind.6208
      @martind.6208 Рік тому

      @@Phlare ah ok, thanks for your approach. ill try it...but what happen if one defollow? lol i thought more on one counter with followers and one with -1. but i dont know how

    • @martind.6208
      @martind.6208 Рік тому +1

      @@Phlare how can i read my followers count? %?????%

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

      @@martind.6208 I can’t actually find a way to fetch the current follower count natively with streamer bot. Personally I would just make a persistent variable I can tweak when necessary that is incremented automatically when people follow.
      I think there are some APIs out there that could be used to set the current followers but I’d be hesitant to constantly ping out to a third party api.

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

      if you do want to try the api route to get a live follower count at some point, you could use a "Fetch URL" subaction and give it this URL
      decapi.me/twitch/followcount/phlare (replace phlare with broadcaster username)
      this will return the number of followers and you could then use it to update your counter variables

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

    Can you make a video to show exactly how to setup a simple subgoal counter? Streamerbot says they have the variable %subCounter%, but it doesn't seem to be working. I just want to show a very simple sub goal counter that appears like (### / #,###).
    The first number before the / should display my current sub amount & change dynamically as I gain & lose subs. The second number after the / I would like to manually update with a new goal. I tried using an action to set GDI Text in OBS to "%subCounter% / #", but the %subCounter% variable doesnt seem to be working. Im so lost.

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

      so, there's a tab under "settings" in streamer bot to enable the sub counter (and a reset button and stuff) That might be what you're missing.
      I haven't actually messed with that functionality at all yet though.
      However, I actually just made something similar to this for a community member to set up a subathon with rewards at certain sub counts and announce when a new reward is unlocked and all that business.
      I put instructions in my discord. I do plan to make a video eventually, but I'm still road-testing it this month.
      If you want it before then you can jump in the discord and find the instructions.

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

      @@Phlare Ok. Yea, Ive gone into the sub settings & enabled it. The variable just doesnt seem to be working and its explained weirdly in the wiki. I'll keep trying. Thanks for your help.

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

      @@crvne ok good luck! Let me know if you figure anything out!

  • @FurryMetalFerretVT
    @FurryMetalFerretVT 7 місяців тому +1

    im trying to a redeem where people can redeem a item each stream and keep count of each time they use it. i got the redeems to say the chatter, but all of them use the same count. is there any way to give them a specific counter for each chatter?

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

      Yup! This is actually built right into streamer bot.
      When making your command or redeem there should be a checkbox for “persist user counter” (or something similar - I’m not at my computer at the moment)

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

      Then, in your action you can print this variable using %userCounter%

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

    how would i go about adding random points? I've tried to do it as Increment: %randomNumber% but it just won't register.

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

      Are you using a subaction to generate the random number first?
      wiki.streamer.bot/en/Sub-Actions/Get-Random-Number

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

      @@Phlare correct - without the randomNumber, it works fine. As soon as I add in the %randomNumber% t the increment, nothing runs at all

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

      Hard to diagnose without a screenshot or export or something. Can you export the action and I can take a peek?

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

    How about this type of counter that tracks pogchamp callouts per user. Is there a way to do it per usuer or do he just have to do the total for the whole stream?
    %user% has dropped %count% PogChamps. The stream is officially Pogged! 🤯🎉

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

      Like, count the times the emote has been used, or is this a command people would use?

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

      @@Phlare I was thinking count the times this has been used for the specific user that just used it. Maybe a global persistent one to count across the lifetime of a channel or if that's too hard just for the current session.

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

      @alexwright498 let me clarify my question. What are we counting? A command or channel point redemptions?
      Or just someone using an emote?

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

      @@Phlare Just someone using the emote. I guess eventually I will switch it to a channel point redemption.
      For now as a young channel I thought it would be cool to show some kind of count to acknowledge someones constant Pogchamp emotes in the chat.

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

      @@alexwright498if we simplify to just a count of the number of lines of chat that each user uses that contains the emote, and not worry about specific instances of the emote itself, it’s super easy. The other way is possible too but much more involved.
      This simple version you could just use the spelled out version of the emote as a command, make sure to select “anywhere” instead of “start” when making the command.
      Then whatever action tied to that command could report the count and we could just rely on streamer bot’s automatic command counters instead of tracking it ourselves

  • @chessforfun3032
    @chessforfun3032 8 місяців тому +1

    can we display this win counter on obs somehow

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

      sure! if you haven't connected OBS yet, read these instructions on the streamer bot wiki: wiki.streamer.bot/en/Broadcasters/OBS
      Once you're connected, you have access to a whole slew of OBS-related sub-actions listed here: wiki.streamer.bot/en/Sub-Actions/OBS
      the one you want here is likely to control the text value of a GDI Text Source:
      wiki.streamer.bot/en/Sub-Actions/OBS/Set-GDI-Text

  • @rtrauttv
    @rtrauttv 10 місяців тому +1

    hey @phlare im having troubles making this into a persistent user counter for bit cheers - anyways, can you help a smooth brain out (finding nothing online!)

    • @Phlare
      @Phlare  10 місяців тому +1

      What do you want to count for the cheers? Amount of bits total? Or just number of times?

    • @rtrauttv
      @rtrauttv 10 місяців тому +1

      @@Phlare bits total overtime, yessir

    • @Phlare
      @Phlare  10 місяців тому +1

      @@rtrauttv while this is certainly possible, and action wired up to the cheer event would have access to the %bits% variable that could be used with a Set global Variable subaction with user context and the “increment” method chosen in the drop-down and %bits% as the value to increment

    • @Phlare
      @Phlare  10 місяців тому +1

      However, I wonder if some other method for tracking this would be better, maybe a third party api call that can be more accurate about past cheers, since this method would only start tracking going forward.

    • @rtrauttv
      @rtrauttv 10 місяців тому +1

      @@Phlare thanks for the help...i tried your suggestion and couldnt get that to work. I have no clue how to do 3rd party api calls - its okay! thank you very much for your helpful videos and for your reply!!

  • @mammabear_x
    @mammabear_x 7 місяців тому +1

    ok devils advocate here i want a counter that i can reset to zero at the end of each stream? but i do not want to reset all global values? as i want a per stream counter and a counter that doesnt reset. Cannot find a way using streamerbot to make a counter that can be reset with a simple !reset command without clearing all global values? can anyone point me in the right direction please? Basically i want a naughty words used counter, action 1: add 1 to the current counter, action 2: timer msg saying the current counter value, Action 3: reset this counter at the end of the stream.

    • @Phlare
      @Phlare  7 місяців тому +1

      Totally feasible. I see you joined the discord, make a post about it there and we can sort it out

  • @360GameTV
    @360GameTV Рік тому +1

    And have you been able to take a look?

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

      Did you paste an export command somewhere? If you do, I can import your command and take a look

    • @360GameTV
      @360GameTV Рік тому +1

      @@Phlare Yes under my last comment and your answer is the code.

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

      ​@@360GameTV sorry, it was "held for review" so i didn't notice it (i'm still new to all this).
      Checking it out now, thanks for your patience!

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

      this is really bizarre. it's saving two copies of the variable in the globals.dat and getting confused, trying to sort out why.

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

      so - i changed the name of the variable from grandmaster_Start to grandmasterStart (no underscore) and it's all working fine now.
      I'll submit a bug report to nate @ streamer bot and see if there's any known issue with using underscores or something. so bizarre.

  • @AngelzWings
    @AngelzWings 9 місяців тому +1

    Thanks so much for this video & code! I wasn't able to access the "globals.dat" file as my only global files are "data base files". Can you assist me? I wanted to change the persistent global counter as I was testing it and want to now reset it

    • @Phlare
      @Phlare  9 місяців тому +1

      yes, in the new version of streamer bot, this is no longer a viable approach to manually edit the globals. that being said, the version coming soon (in beta now) has a variable explorer interface and you'll be able to directly edit and view these global variables right in the UI.
      for now, I suggest making a secondary command and action to set this global to 0 and a command like !resetcounter or whatever.

    • @AngelzWings
      @AngelzWings 9 місяців тому +1

      @@Phlare Thanks so much for your quick response! Very helpful!

    • @AngelzWings
      @AngelzWings 9 місяців тому +1

      It's out now! Maybe an update video is in order? @@Phlare

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

      Yeah, top of my list! I’ll probably just do a quicky about the main changes