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! https://bit.ly/phlare_subscribe
🔴 Watch Phlare Live: https://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: https://bit.ly/phlare_sb_setup
🎬 Importing/Exporting Commands Video https://bit.ly/phlare_sb_import
📼 More Streamer Tutorials: https://bit.ly/phlare_tutorials
🤖 Streamer.bot software: https://streamer.bot/
➤ OBS Studio: https://obsproject.com/
♪ Epidemic Sound - Royalty Free Music + SFX: https://bit.ly/phlare_es
===== Socials =====
🔥 Join Phlare's Discord: https://bit.ly/phlare_discord
👕 Phlare's Merch: https://bit.ly/phlare_shop
👑 Phlare's Throne Wishlist: https://bit.ly/phlare_throne
🐦 Twitter: https://bit.ly/phlare_twitter
🗪 Phlare's other socials: https://bit.ly/phlare_linktre
===== Affordable Streaming Gear for Beginners* =====
🎥 Elgato FaceCam: https://amzn.to/3KDqJjb
🎤 HyperX Solocast: https://amzn.to/3ONUD6F
🎤 Cheap Boom Arm: https://amzn.to/47pwYRf
🎤 Pop Filter for Mic: https://amzn.to/3DTWcKe
🚨 Programmable RGB Floodlights: https://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
https://share.epidemicsound.com/pxh99m
#twitch #counter #commands