#dev-chat
1 messages ยท Page 59 of 1
this didn't work, I'm obviously doing it wrong, right?
Oh sorry, I misread set as get ๐ those are read only properties so you wouldn't be able to set them. I don't think window resize methods work in SE either, so you might need to experiment a bit
At least, I don't think you can change the actual frame size a user's set, probably for good reasons. Any content inside the widget is fair game though
hmmm I see...
I thought there would be something for this like widgetName
Are you trying to set it dynamically?
Or are you just trying to making a specific size?
a specific size
You can just set the size with the position settings in the side panel
This might not be the help desk to ask but maybe it is. So all of a sudden dynamic font does not work properly and the custom font I enable shows on streamelements.com but not in obs any ideas?
yeah ik, its for sharing with others so that when they install it it has a default size
it's not that important btw but would would be better than the default dimensions SE sets
Ah, if it's through a share link the settings are all copied, otherwise you would need to tell them to make it that specific size using those settings.
alright good to know, thanks for the help 
anybody?
I'm not seeing any documentation on this but can you set up a webhook to get the same data from the REST API?
Hi ive recently started looking into the SE custom widgets, and ive been looking for a way to make the bot respond wit the result from some randomizing "roulette" thing.
so basicly ive gotten it to work with commands from chat:
but how can i respond with the SE bot/Custom SE bot name from within the overlay (if at all possible)
or would i have to integrate something like TMI.js with an authorized instance?
Does the session subscriber data count the subs during offline time? When the stream started it shows 1 instead of 0 for some reason.
Nvm I just found out it does
Hey hey I wanted to reset my HypeBoss & start a new one. Somehow i can't set the Base HP. I want to set it at 5k but it doesn't apply. The Base HP remains 1k
As an individual building on the APIs and using my personal JWT token, is it possible to build apps for other streamers (i.e. can they oauth to my app and I can access the api on their behalf)? Or do I need to be an official SE partner with credentials?
How do you share a Overlay that you have created in Streamelements
@noble lily โคต๏ธ
Follow these steps to grant managers/moderators access to your dashboard:
- Click on your channel name at the top of the dashboard
- Create a new invite at one of three access levels (Bot Supervisor, Editor, Full Control)
- Send this invite to a mod/manager to give them access to your dashboard. The link is one-time-use and expires after 72 hours if not accepted
Video tutorial: https://youtu.be/zl_h-ttZDF0
Is there a way to tell if a gifted event is a direct gifted sub?
Community gifted subs emit both an event with bulkGifted: true and an event per gifted sub with gifted: true
How can I tell if an event with gifted: true didn't come from a community gifted sub?
I know how to do this but you see people that create rotating alerts and such and give them to their community to use. Im wanting to do something like that
That's limited to things placed in #widget-share or brands/organizations/certain people.
Everyone else has to use the invite method.
is it possible to add a whitelist to a node twitch bot? so that i can control who can/cant use certain commands
each token is only valid for the owner
ahh ok isCommunityGift, got it, thanks!
It's a combination of all three, but yes. You could also just use the toolkit, if that makes your life easier ๐
I am not exactly sure what your question is here ๐ค
Custom bots can do whatever they want, since they are..custom and not bound to StreamElements
The SE Bot can not whitelist specific users, but roles. Then commands could only be available to Subscribers or VIPs for example
Is there a way to see the amount of gifted sub the latest gifter gifted?
The data in ["subscriber-gifted-latest"] is the month count of the giftee
Is the only way to do it to browse subscriber-recent and compute it manually?
Good afternoon can someone help me?
everything was covering fine with streamelements, but since i imported streamlabs alerts the OBS bugged, now none of the commands I had in streamelements work and it appears that the bot is now StreamLabs
to apply a new HP value you have to click on the "Reset Boss" button at the bottom
#helpdesk-twitch is better suited for those kind of questions
with production data or emulated?
for production data["subscriber-gifted-latest"]["amount"] should be correct
That is weird because it shows the month the gifted person has subscribed in the stream...
Should I not call obj,detail,session,data?
Sorry for using comma, can't use dots
It's not emulated. When a sub was gifted to a person that subbed 17 months it showed 17 instead of 1
Hm, I can't really test it, since I am not a Twitch affiliate or partner, but according to the docs that should be correct ๐
https://github.com/StreamElements/widgets/blob/master/CustomCode.md#twitch
but they could of course also be wrong
Well that docs have some unclear things, I thought it was what I think it is as well...
The content of ["subscriber-latest-gifted"] is incorrect as well, there is in fact a sender key, the name key shows the giftee, not the gifter
Is there someone I can ask about these endpoints and what they do exactly?
not really. Maybe @viral patrol but he is probably very busy
Hmm...
Do you know how often ["subscriber-recent"] gets reset?
One way I can think of is to get the table and then compute the consecutive gifts by the same gifter
But I don't know if it's viable because I would like the number to stick until the next gift is gifted, which can be days later...
the recents are limited to 25 entries and if all of them are regular subs, you wouldn't have any data on gifts
Oof there goes that plan
Well... I guess I'll have to either give up or think of some other way
Thank you for answering though
That wouldn't help for custom widgets, but if it's just to display gifter info you could also use a label in addition
the overlay editor has some labels you could use in addition to the custom widget
Is it possible to code their behavior such as fade in/fade out?
I think they just have settings for font styling, but not for animations or custom css
I'll check it out tomorrow. Thank you very much : D
np
Hey y'all! Wondering if anyone can help out with fixing a widget - Most Recent Event by WillT - i'm having a problem where gifted subs are reading as "person who was gifted sub subbed" instead of "gifter gifted a sub"
What you can do is submit a widget you created to widget-share and if accepted you can become a code guru, with code guru you can later request your account to have access to private sharing of widget.
it's a perk, but shouldn't be the motivation to become a code-guru
Yeah, that too lol
The key in documentation is wrong
If you want the gifter the key is "sender" instead of "name"
I'm on mobile can't check the code, but it might be a possible reason
oh thank you!! i'lll give that a try
before you get muted again, the code is:
if (eventType == "subscriber") {
if (data.gifted) {
infoText = data.sender + " gifted a sub"
} else {
infoText = data.name + " subbed"
}
} else if (eventType == "cheer") {
infoText = data.name + " cheered with " + data.amount + " bits";
} else if (eventType == "tip") {
infoText = data.name + " donated " + userCurrency.symbol + data.amount;
} else if (eventType == "follower") {
infoText = data.name + " followed";
} else if (eventType == "host") {
infoText = data.name + " hosted with " + data.amount + " people";
} else if (eventType == "raid") {
infoText = data.name + " raided with " + data.amount + " people";
}
you could log the data object to console after the if (eventType == "subscriber") { to see the structure of that event object
Thank you @tribal zenith ! Should I put that right in to JS?
do you have enough knowledge to read the result from the console?
i'm not super familiar with JS but if there's something specific I can look for when it runs please let me know!
i just replaced the event with the one from above in case there was an error
when i test it it seems to be working fine, but it wasn't working in real time during stream
I just copy&pasted the original code, so there shouldn't be any differences ๐
OOP yeah that looks about right lol
how should I log the event after the if statement?
I'm somewhat familiar with python, but not competent in js
if (eventType == "subscriber") {
console.log(data);
and then the rest afterwards
if you can you could re-trigger the gift event from your activity feed to see that specific data
sorry, new to all of this trouble shootin. Where should I access the console to read the data log?
So I did reset the boss and then wanted to set a base hp, which won't apply the base hp remains 1000 even tho I refreshed multiple times
yeah, you have to adjust the hp value first and then press reset boss
Okay, I have the console report open. The emulation on stremelements seems to work fine, its just during my live streams that i see the issue
does the issue happen on live events or if you load the overlay initially?
or both ๐
i believe just live
for direct gifts or as part of community gifts?
community. When somoeone gifts a sub, it just says that the person who claimed it has subscribed, not that the person gifted the sub
the problem lies in this bit:
if (data.gifted) { infoText = data.name + " gifted a sub" }
else { infoText = data.name + " subbed" }
If it just says "Receiver subbed", then the gifted property is either false or missing, which is odd, because all types of gifts should have that flag regardless
it's lines 175+
also you could change that to
if (data.gifted) { infoText = (data.sender || data.name) + " gifted a sub" }
else { infoText = data.name + " subbed" }
to also include (a possible) sender
It's getting late here, but I can try to contact @pulsar willow tomorrow, to maybe implement a better event handling
okay, I will try that!! thank you so much for all of your help @tribal zenith
np, maybe we can fix this tomorrow, we'll see
hi @old dune thank you for using my widget! im sorry there was an issue, i will try and fix this tomorrow and put an update out. is the issue you are having just with gifting a sub? also thank you @tribal zenith for helping, did you manage to fix it, because i see you send a code sample but you also said i might need better event handling. if you know anything could you let me know and if not i will try and work this out asap!
sorry for any issues with the widget!
Thank you so much for creating a great widget!! The only issue I have is that when someone gifts a sub, instead of saying "x gifted a sub" or "x gifted y a sub", it says "y subbed"
Other than that one problem it's a wonderful widget and i'd love to figure out how to edit it so I can keep using it! ๐
Maybe this helps you in easily dealing with events and setting text accordingly: https://reboot0.de/se-tools
You can use it to create an updated version of your widget, if you want
ah ok, i will try and work this out for you and then get the updated widget in #widget-share for you!
and oooh thank you ill have a look into this
Hi! I'm currently working on a site that helps streamers connect with brands and join campaigns.
I still need a dev that can help me integrate the StreamElements API so that a widget shows on a stream when my site makes a call.
I'm not quite sure how much work it is but my budget is around 300usd. Please send me a DM if you are interested ๐
Still looking for a developer to help me on this!
what does "my site makes a call" entitle? what kind of info do you want to send?
When a campaign starts on my site, is should send a request to the stream elements api to activate a widget, like a custom alert I suppose. I dont need to send any info, all media will already be in the widget
I hope this makes sense, I'm currently trying to learn how this works in StreamElements
Is there a way to override the sub goal on all overlays at once?
So, you want to create a widget, that stays invisible (inactive?) until you update it via API?
Yeah exactly
the goal progress yes, the goal value itself unfortunately not. But you can edit one goal-widget and then copy that to your other overlays
I mean technically you could just set up a WebSocket and let the widget connect and listen for changes.
However, it would probably be easier to just tell the streamer(s) when to use the widget and how long the (I assume) sponsored segment will be ๐
I would prefer to set it up automated, then I can be sure that everything activates at the exact same time, for the right duration etc.
Less for the streamer to worry about in the end
oouh thank you, it worked
then WebSockets would be the way to go
I'm no dev, are you able to do this for me? Paid of course
No, that is not a one-time job. If you want to do this professionally, you'll need to hire a dev to build and maintain your server structure
Ok, thanks anyways ๐
Did $eval get taken away on commands?
Never existed
Oh, must have been imported command. No math commands at all with SE? ๐ฆ
Simple basic ones are possible with a 3rd party api.
Do you have a link to an API for example?
Gimme a sec while I find the link
Thx!
${customapi.https://twitch.center/customapi/math?expr=******************}
Everything in the last part is where the variables/numbers would go.
Is there an endpoint to get the amount of gifted subs gifted by a specific user?
Definitely not something we have out of box a doubt there's something from twitch's end anyways.
Hi there, is it possible to disable the pepe emote being used in the redeemed messages? I've read you can't get rid of the redeem message itself, but with the pepe emote having ties to anti semitism and racism, I would not like that emote to be used by the bot.
there is a default command called !pepes - use !pepes disable. This question is also not related to this channel as it has nothing to do with developing custom API stuff. @rose brook
@indigo flume sorry, I wasn't sure what channel to put this in as it didn't seem to correspond to any of the help desk rooms available as wasn't specifically a twitch or OBS issue. I thought "developers" must be for just general support otherwise. Thank you for the answer.
The pepe emotes are a twitch thing only, so its actually a #helpdesk-twitch related ๐
other platforms don't have redemptions as well
so its fine, just helping out regardless with information
Ahhh right ok! That makes sense. Thank you xx
Quarterly question time: Any word on SE.API OAuth applications opening up again?
No ETA though we're looking forward to "reopening" in the not so far future @bold coral
Currently not able to duplicate overlays from account to another when moderating, stuck on "duplicating overlays..."
Not only on my end, but duplicating overall seems to be non-functional
Hi hello, how do i share an overlay ive made? xD
ive tried https://streamelements.com/dashboard/overlays/share/<editor code> but that just logs me out of SE
You'd need to be a code guru
how do i become that? xD
i was under the impression that you could just whip up any widget/overlay and share.
i have made a few small overlays for a specific community. i dont mind it potentially being publicly shared but it serves little purpose for people not a part of that community but i guess thats not the best overlay to share publicly like on SE widget store etc.
@grizzled cradle #beta_trovo
thx
Seems that any newly created overlays since yesterday(possibly the day before), will not have functional share links.
Cannot duplicate across channels/accounts, and if using a share link for a new overlay it will throw the platform mismatch error regardless of platform
oO your having all kinds of problems
Hi guys I need some help with a custom overlay that I commissioned to a guy.
It is a donation bar that counts both sub and bits, but instead of showing the amount donated, it shows the exact amount of money I receive (applying the twitch withholding, taxes and the current dollar to euro exchange rate to the amount of sub / bits donated).
When I use the event emulator the donation bar fills up correctly, but with real events all the values are wrong.
For example, if I emulate a prime / level 1 sub the bar fills up by 2.12 euros and it is right, but when someone subscribes for real the bar goes up by 18 euros.
Is there anyone who is a programmer who would like to help me out? Or do you guys know someone of the SL developers who can help me?
(Sorry for the long post
)
My guess is it's something to do with the conversion
how is it being converted? static value? Because subs cost different amount in different places
could also be due to decimals?
yes it has a section where i put the current usd/eur
idk, would you like to have a look at the code? I don't understand a single thing about programming
I mean, sure
if it's not a problem ofc
yeah, but not promising anything, I have things to do ๐
sure go ahead
Just want to know if there can be command which do sth with arg and without arg
If i give example i got muted so its hard 
Best i can do to not be muted is Input prefix Mike Output Hello Mike Input prefix Output Hello RandomChatter
Hi there I used the !pepes disable command and it hasn't worked?
^ You can ignore that. I've figured it out ๐
Hello, I hope you are well, someone can tell me how I can share the overlays that I have made?
to share your overlays; you will need to add that person as an editor to your account or have them as an editor to your account.
@cerulean spindle for archive purpose (and clap back at @eager ginkgo for proving me wrong) here is an alternate way to make a shoutout command ```js
!cmd add !customso
${customapi https://seapitest.pjonp.repl.co/api/eval?string=$(queryencode "
let target = '${1|null}',
targetGame = '<no game>' ? 'nothing' : '${game ${1}}',
res =
target === 'null' ? 'Shoutout To Everyone' : ${target}! for coming over with your crew! Everyone should go check them out over at twitch.tv/${target.replace('@','')} they were playing ${targetGame};
res;
")}
Hello Guys,
I want to create a Event List where it Shows only the latest event but it should be customisable like a Text +GDI source since I dont need any Icons or overlays, just raw Text.
Is there a tool out there or do you have a source on where I could possibly set it up myself over CSS (only used MatLab)?
Wassup!
I'm in a search for more variation of the command !cmd. I've searched a lot and didn't find any info about it. I discovered by a friend that you can edit alias in it, like !cmd alias add !hi hello to add an alias !hello to !hi command.
Does anyone know where I can find more info about it, or knows anything else? I'm currently wanting to how to add cooldown and only mod permission to a command.
(Yeah, I know I can do it on the dashboard, but as a mod I don't have access to it)
@vale crypt โคต๏ธ
You can add, remove and make changes to custom commands in chat with !command/!cmd flags:
!command add (commandname) (commandresponse) - allows you **to add **a new custom command
!command remove (commandname) - allows you to delete a custom command
!command edit (commandname) (commandresponse) - allows you to edit an existing custom command
!command show (commandname) - allows you to see the raw response of a command before variables are used
!command options (commandname) -(flag) - allows you to change settings for an existing custom command
More information here: #helpdesk-twitch message
I love ya:)
what is a "+GDI" ?
The Text source in OBS, where you can read .txt files from etc.
i'm not sure the best option for that; my first thought is to do a local bot that reads the websocket to update/save a text file ... but without knowing the full scope; this may be a "long road" to an easy answer
Alright. thank you! I guess I will start locking for bots that can do that web socket stuff? ๐
what do you need the text file for?
...and um; that's not a bot you'd find, it would need to be a bot you make ๐
I don't need a text file, just a Event list that is customisable like one.
Basically just a text without icons like:
"PJONP FOLLOW"
"PJONP SUB"
etc.
Then add a background with reduced opacity.
Plus the length of the background should be only as long as the text itself.
Are you exporting this data to another program? or is this just for a visual on your stream?
Just a visual
Then i think you'll you just want it as a custom Widget/Overlay
Do you know CSS?
i can get you started in the right direction; custom widget with the icon removed.... but it's all CSS from here ๐คฃ and i hate CSS
->
Absolutely not but I guess this kind of thing I am looking for should be doable for someone like me with the right sources ๐
Been having an issue lately where my bot counter widget keeps adding XP on its own...
I !setxp 0 ; and then a few minutes later its at 1... and then 2...
Thank you tho for helping me out @elfin arch
i think you are on a better track now; going the custom widget route ... and of course there are a bunch in #widget-share
isn't a label configurable enough?
Ohhhhhh, okay, i didnt know that. Ill check it out first ๐
What should I put into HTML?
@elder iron
Copy HTML to html in the custom widget
same for the rest
I think this might be what you wanted
Let me know if there's any problems with it @elder iron
is there a 'session sub count' chat command? instead of ${channel.subs}, maybe like ${channel.subs.session} ? if not, can i use the customapi chat command to take the session sub count from the streamelements overlay that displays session sub count?
@untold cypress gimme a sec.
You'd have to manually adjust each session but I've got something to work.
ok cool. yeah i could have the broadcaster do that
${customapi.https://twitch.center/customapi/math?expr=${channel.subs}-NUMBEROFSUBSATBEGINNING}
Replacing that with the sub count before start.
wow thanks!
question, with customapi
the command variables list says it "Outputs the Body in plain text"
when i tested it with a random streamelements overlay, it gave me "<!DOCTYPE html><html ng-controller="ElementsCtrl as elements" ng-strict-di> ....."
is it possible i could get it to just display the, actual data i want? like session sub count, or total followers, etc.
You'd need an api to parse it as or doesn't natively do that.
It simply spits back what it's asked for.
Outside of the docs linked in the channel topic anything you'd need to parse specifics is entirely managed on the server's end.
sorry im a dunce, where's the channel topic
oh n/m i see it
thanks so much sudo!
hello, does anyone know how the hype cup wireframe works? trying to work out what the numbers mean so I can make my own cup
Been having an issue lately where my bot counter widget keeps adding XP on its own...
I !setxp 0 ; and then a few minutes later its at 1... and then 2.. (my set XP sets the counter to the given input)
any ideas as to why?
i know this might be alot to ask of when you have the Merch thing yourself, but i am running a webshop for some streamer friends, with merch and other stuff that viewers can buy from the streamer, so i was wondering if there was any way to connect a woocommerce shop (kinda running multiple shops in one) to multiple streamelements accounts so the partners i have will be using your alert system
Posted this in #helpdesk-twitch because Idk where to ask this.
Any plans to suppor 7tv extention for StreamElements plugins and browser sources?
Bttv is kind of redundant now, so I was wondering when Streamelements, going to add support for it?
Thank you for your work
Hey does anyone know if there's a way to do custom cooldown messages for commands? Or do I have to custom code it
Nice; This is a great solution!
๐ ...only minor thing is the 'x' for follower. but great example! ๐ฏ better then the default code in the 'custom widget'.
Oh I totally forgot about that
Will fix it
Hello ๐
I would like to ask you something,
Is it possible, in my custom overlay on SE website to add a custom web page (I did a tool that move some item on my overlay in depending on my active game). Is there a way with custom widget, I don't know maybe with Iframe ?
Thank you โค๏ธ
@lost zealot not possible due to security reasons.
Okay, thank you :)
Where do you find the commandId for this api call? https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1bot~1commands~1{channel}~1{commandId}/get
In the GET request to list all commands
So I'll let you know what I'm trying to do: I'm trying to potentially post as the bot if a command is on cooldown
The fact Stream Elements doesn't have a cooldown message in any form really perplexes me
that would be easier as a custom command. Query your server and let the server handle the response
then the Bot just echoes back the state
When you say query my server, you mean doing an API call to Stream Elements?
No, external
I was hoping to have a blanket statement that could see if a message was a command, query the command and return a message as the bot if the command was on cooldown
Like a message listener
So, your command would just be ${customapi.link-to-your-server.com} and your server then either responds with the desired message or if it is on cooldown give a separate response
But I do feel like Stream Elements needs to implement at least SOME cooldown message return. It's kinda pointless to have cooldowns if the user doesn't realize why their command isn't working
@gaunt bridge .... just to be clear; there is a built in cooldown
Not asking about having a cooldown in general. Saying that a user, if they try to use a command that's on cooldown, should receive a message from the bot indicating that it's on cooldown
Either as a reply or a whisper
Streamlabs has this in both their desktop Chatbot and their Cloudbot
oohh... ah.. ya. sorry for jumping in on that then.
I noticed that it's been a feature request with 9 upvotes that was opened 2 years ago
Anyways, since it's not a thing atm I wanted to implement it. But it really should be a thing lol
bump it on there for sure. .... it's um something that doesn't scale well i guess.
it just creates a lot of chat spam
it's a tricky balance between a streamer with 5 viewers and 50,000 viewers.
If you set it up as a whisper reply, then it wouldn't fill up chat
But that requires the command to be done via whisper.
Hello, sorry if i bother but i have a question, i would like to filter all url from my chat, and i'm seeing ${queryescape} and ${pathescape}, but i don't know how to use them for it, someone knows how to use them in that way? thanks in advance (and sorry for my english)
${queryescape} and ${pathescape} translate user input so that it complies with URL conventions.
So, they do not filter them.
I assume you're looking for the bot-spam-filters? ๐
(https://streamelements.com/dashboard/bot-spam-filters)
Link Protection in particular.
thanks for your answer and time, i'm going to take a look
anyone knows if i can use regular expressions in spam-filter?
Anyone know how to set the values for the levels in the 'level up goal' widget? It seems to just do 10% of the main goal per level, but I was hoping to just set custom levels.
there is supposed to be a value field... but it's not there and thus not allowing me to do what I need.
I would like to ask you to improve the Hyper Boss functionality for the Trova platform. You cannot set points and change the number of HP /.
Any place to learn to build a widget for streamelements? I have a botside event with mixitup app that runs the triggers but would like to learn to build things into SE.
Sorry not sure where to ask
Yes, you can! Just check the Regular expression checkbox ๐
You can get some useful information here:
https://github.com/StreamElements/widgets/blob/master/CustomCode.md
thank you
hi there, not sure if this is the right chat to ask in, I'm helping a friend of mine do a widget for his webcam using the one Alpha gaming made but with his own layout and graphics and I cant find how to share it with him so he can import it to his own account
Your friend needs to add you as an Editor, so you can import from your account to his.
oki doki, will figure that out ๐
Hello everyone. A question for everyone. Is it possible to somehow see the number of messages written by the user on a certain channel? is there such a possibility? If you ask the moderators or channel owners, they will say a maximum of 999+ messages. 
all sorted thank you for the help! ^^
As a mod in several channels I can confirm that this is what twitch offers. I haven't looked into it but I doubdt SE offers more. I guess you'd need a custom server that logs messages if you need more. To be honest I see no reason to need more than the <1000 last messages. Is it purely as a mod tool you'd like more data?
StreamElements counts a larger number, I tried to make a command for the chat, but it failed... as I understand it, StreamElements registers the entire message after authorization and registration of the streamer in the bot...
You can see that in https://stats.streamelements.com/c/CHANNEL_NAME, but only if the user is on top chatters. However, I've never seen a variable for that.
Hi there, can anybody help me with my custom command? I have a random ${random.1-20} and I want to add here conditional answer if < 2 then particular answer elif > 2 then another answer and so on. Hope you get the point sorry for my explanation. ๐ Thank you
There is no such option on the custom command. You can create a random.pick and put the options there, instead
${random.pick
'Message 1'
'Message 2'
'Message 3'
'Message 4'
'Message 5 and so on'
}```
It will pick Message 1, Message 2, Message 3, etc randomly
Hey everyone. Was hoping someone could help me out with a quick question or at least point me in the right direction. I'm building a custom widget on streamelements and I'd like to be able to get the number of current viewers. I've been looking at the readme docs on the github page for custom widgets and also tried inspecting the data in the browser, but I couldn't really find that in the session data or anywhere else for that matter. Does anyone know if that is actually returned anywhere (e.g. in the onWidgetLoad event object)? If not, does anyone have any ideas on how I might be able to access this data? To clarify, I'm specifically focusing on Twitch at the moment and if possible I'd like to avoid any dodgy third party apis.
The easiest way is using decapi.me API and you will get the viewer count. The result is plain text.
https://decapi.me/twitch/viewercount/<channelName>
Hey friends, for some reason I updated one of my custom commands in stream elements I have it set to whisper to the user when the command is executed and for some reason it does not go off. It worked before. I added a few sentences to it and it stopped working. Help
Not sure if this or #helpdesk-selive is more accurate for this question, but is there a widget that's able to combine subs, bits, and donations into one singular amount for a goal?
Like if the streamer were to get a tier 1 sub ($2.50), 100 bits ($1.00), and a $5 dono the goal would reflect the combined monetary value
Change it to say, run the command and check if it does trigger any message. If still doesn't, review your command and look for missing parameters, tags, brackets, quotes, etc
Ya it runs normally
So probably the message is working via whisper, but it just doesn't notify the user. But if you open the Streamelements conversation, it will be there. Or maybe the user blocked the whisper for non-friends
Try this one, "One Bar To Rule Them All":
#widget-share message
I just did some tests and I think it depends on the message length
I deleted some sentences and it works but when I add them back it doesn't
@severe shell I tried to create a team on twitch in the bot through this "https://api.streamelements.com/kappa/v2/chatstats/$ {user}/stats?limit="
but I failed...
Sorry, just now getting back to this reply. I think that's what they're looking for! Thanks a ton 
Ok, I had an explanation here about some stuff, but I narrowed it down so I am shortening it up here.
When creating a widget, a global variable cannot be set to the value of an object stored in the SE_API. unless there is a specific way to do it that my tired brain can't see. (totally possible at this point, I might be going insane)
but you can reference the object's data in a function as long as it is called from within the SE_API block.
this feels like something that is intended, though I don't know what.
you can assign those values to global objects, the store calls are just asynchronous
Asking for a third time now.... 
If you are supposed to be able to do that, it isn't working, and I can't figure out why. The value is lost once it leaves the SE_API block and get reset to whatever it was set to before the function was called.
Are there logical function?
Can you give a code example?
the chat counter is wrong or only the widget display?
for chat commands. no
Well, technically it would be both? The widget overlay displays the count and the count just casually rises.
I actually just found what I think might be the cause of it
by widget you mean something from #widget-share or the default label?
Well, I was trying to say, that I am using a custom Math API that was provided to me here. I guess I can't really share my command syntax though to get help since the bot has removed my perms to speak on my main lol.
I've figured it out though.
Yes, there is a missing semicolon, but just pretend its there ๐
it's a basic race-condition. By the time you try to set the label, the store hasn't answered yet
oh, ok. I don't claim to be an expert, just a hobbyist coder.
so how do I fix it?
either via async/await, but that blocks your thread or just set the value in the then block and call a function that handles the value afterwards
like
savedPoints = obj.pointTotal || 0;
functionThatHandlesThePoints();
in the then block
is there a "good way" to wait for it? or just use setTimeout or create a sleep function?
(There is another variable that I need from the store that I might not be able to use a function to handle.)
also, Thank you for helping me. ๐
This helps me solve a big problem I was having.
note to self: learn more javascript ๐
the "good" workflow is normally to let the basic main logic run and then let the asynchronous data alter the layout
so your main logic sets everything it doesn't know about yet to 0 and then updates once it has the data
or you hide your layout and only show it after the data arrived. Both would work
ok cool. definite thanks ๐
You are an awesome person ๐
Hi there, I was wondering if this is the right place to ask, sorry if it is not.. I am have been having an issue with the desktop site. I go to streamelements/.com and I am logged in. When I try to go to my dashboard (from big orange button or from the dropdown in the upper right) it just redirects me back to the welcome page, instead of taking me to the dashboard. Even adding /dashboard to the url is still redirecting me to this "Become a Streaming Legend" welcome page. What should I do?
@final gyro โคต๏ธ
Please logout of StreamElements at https://streamelements.com/logout and then login again to your account (Twitch/YouTube/Facebook).
thank you! Hopefully, I will not have to do this every time I want to access the dashboard ๐คฃ
No problem
I was not really sure where to ask this question but it's regarding the chat bot. Is there any way to set a trigger towards another command from a current one?
Hi colleagues, I want to create a command / bot, which does the following: when typing !sprint 30 for example, if the user spends 30 minutes without typing in the chat, he gets a reward ... thanks!
Random question about widget dev. What is the purpose of "console.log('reset')" ?
It is just to print that message to the console (that we can't see), or is it some kind of trigger and we should use it when reseting the data of a widget.
It isnโt possible to make StreamElements bot to read its own message to send another one. Any message sent by SE bot is ignored by itself to avoid being in loop. You can use a second bot and make it trigger the command for SE bot.
Any console.log() is just to understand what is happening on your code for debug purposes and analysis. So it will just print the message โresetโ on console
cool, thanks. just wondering why a lot of these widgets I am using as template and study aid have it in their reset funcitons since we can't see the console. doesn't matter much, just curious ๐
I appreciate it. I know Nightbot had a query thing but I didn't want to have two bots. <3 TY
You can see the console if you open your browser's devtools (F12 in most cases)
that would work with an custom widget, but only while said widget is in use. Once you go offline or switch to a scene without it, it can't keep track anymore
Can you set the data["tip-goal"]["amount"] value, or is this just read only?
To clarify, I want to be able to update the Tip Goal value in Widget Data in code, as i'm collating subs/bits/dono's into one field for this widget.
Do you know any widgets?
No, that use-case is pretty specific and you'd probably have to build this yourself
there are some widgets in #widget-share that combine multiple sources into one goal for you
Hi devs!
Is there a possibility to implement the "Provider" field as a variation of an alert to Tips?
I'm developer from Brazil and I created a PIX API (Provider) for Brazil, and would like to use this variation to separate tips between PayPal and PIX.
Today I'm differentiating via username, but the store points are not added to those who tipped.
example
That would still not change much, since your service is not part of SE.Pay.
However, your service could provide a websocket connection to send your own data-packages and let a custom widget react to those
Oukay ๐ข
Hey, I have recently asked why the whisper option wasn't working in streamelements, I have conducted some tests and it seems the bot can't message someone a command that's 500 words long. The whisper command works only for a certain amount of letters and then it stops. Is this a bug?
hello, I have a question regarding the difference between custom coding in SLOBS and streamelements. I have a custom chatbox that works perfectly fine in Slobs but won't work at all in streamelements
how add chat in your overly
Hello! I hope this is the right place to ask; but I am attempting to write a custom command for the StreamElements chatbot, and I would like to know; Is there a way to fetch the index number out of the ${repeat x x} function?
My goal is to make a command which spits out twitch links for all the names I give it, for the purpose of easilly linking all my collab partners at once instead of doing individual shoutouts for each of them
it would be possible to have StreamElements modify/update in the future the "Live announcement" module so it can "watch" for multiples channels? Just like it does with the "Twitter" module, so it would be triggered by different channels, or that would be impossible because how the Twitch API works?
How to create a streamlabs app for using its api services
Is there a way how to resize everthing at once or did i just mess up my whole overly?
Just like it does with the "Twitter" module
There is a Twitter module? o_o
Yep ๐
Having an issues... It shows the wrong name on my tipping page? So i changed my name a long time ago and it shows the Idaho Rapids Gaming but my twitch name is Smoke_sergeant... https://streamelements.com/smoke_sergeant/tip
Hey, I have a question and although I have created myself se merch if it is now who should buy what do I have to do and pay attention to?
Hello guys, the variable section doesn't appear to me. Can someone help me?
Not sure which channel to ask this in, but I am working on capturing & parsing a Merch Event in a custom widget for an overlay. Looking at the data that is being provided for the simulated event there's a lot & I am trying to figure out what all the data in the object is. Below is the object for the listener merch-latest and as you can see the event object has a lot of stuff. An event type, a name of I assume the purchaser.
Then there's amount & count and I cannot figure out what they are. At first I thought it may have been the total purchase amount but digging further in the prices & quantities in the items array do not add up to the amount or the count. So if anyone has anything they can offer or explain here I am all ears??
{
"listener": "merch-latest",
"event": {
"type": "merch",
"name": "Faustina",
"amount": 46,
"count": 46,
"items": [
{
"name": "Shirt",
"price": 4,
"quantity": 3
},
{
"name": "Hat",
"price": 18,
"quantity": 1
},
{
"name": "Mug",
"price": 34,
"quantity": 3
},
{
"name": "Hoodie",
"price": 7,
"quantity": 2
},
{
"name": "Protein powder",
"price": 29,
"quantity": 3
}
],
"tier": "1000",
"month": "April",
"isTest": true
}
}
Sorry to break this out into multiple messages. Anyhow,
Next there's the items array. The array looks to be everything that was purchased in the event with it broken down into individual items with their name, price per item & the quantity purchased.
Then finally there is a tier entry that I am not sure of what it is for.
Anyhow, if anyone has a break down on this or can point me to some documentation I would be very grateful.
Also, along with the info above, it seems that the emulated Merch Event in the StreamElements overlay creator doesn't queue a broadcasting event like all the other events. Watching the console when you emulate a Tip or Cheer event you get output like this [QUEUE]: Broadcasting event (tip-latest) but when you emulate the Merch Event there isn't any broadcast event to be caught.
This is a known issue just switch back the dashboard language to English and refresh the page.
Hi! Your tipping page name can be changed in tipping settings (https://streamelements.com/dashboard/tipping-settings) > design > tipping page title
This is probably the best channel ๐ .... but I have never attempted to or seen a real merch event. I did a quick test set up; and this is probably the same as you see, and all I make are assumptions here (even a test event for a follower has "items" in it ๐คฃ ). In my experience with other events the "Count" and "Amount" are either the same or one is missing. "Items does appear to be a raw array; (formatted to the widget as This + Other items). "Tier" is also formatted; My guess is this isn't a real key and is for sub alerts? I also do see the event queue for it; but did not test if it queues inline with follows/subs, but it should.
how to create streamelements app to use api service?
What do you mean?
how to get client id and secret to use streamelements api
api docs are there in this channel description but nowhere it is listed to get client id and secret
And this one is not working tho
That is currently closed atm. We do plan on reopening in the near future.
Do gifted subs get added to the session sub total?
i'm reffering to this: data["subscriber-session"]["count"]
Thanks for the reply & I agree, there are a lot of assumptions here. ๐ Also, looking at your screen shot your AlertBox has it listed as a Merch Alert (top left) and I do see that it fires. Mine on the other hand does not, mine's named Purchase Alert (top left) & doesn't fire. ๐คฆ๐ปโโ๏ธ I even tested it with a brand new clean overlay to make sure I didn't have any issues or conflicts from my custom code & it still doesn't work. ๐ค ๐
Hello! I hope I am in the right spot to ask this. I was just wondering if moderators can make a command using "keywords" through twitch chat without using the dashboard? For example, if someone wants to play a game, every time the word "play" is used in a sentence, the command will tell that person "you can play on sundays". Dont know if its possible without the dashboard but if it is i would really like to know. Thank you ๐
How long does it take for submitted widgets to be approved?
Not possible at the moment, the only way to add keywords is using SE dashboard
ahh thanks for the reply!
hi, I am trying to do customized shoutout commands for friends with sfx ( short voice of them ), I created redeemable item as sfx ( voice - item in store has name streamer_name), I am trying to make message !streamer_name $(redeem streamer_name) Custom message for streamer but all written text is ignored doesnt matter if I put redeem variable at start or end of !streamer_name command, tested and failed:
!streamer_name $(redeem streamer_name) "Custom message for streamer"
!streamer_name "Custom message for streamer" $(redeem streamer_name)
Hi team - I saw someone ask a bit ago about OAuth Apps but no update, I just wanted to see if theres any update? I was hoping to finalize an integration with your API but this is one of the blockers that I can't finish without. Thanks so much! ๐
Hi ! Am trying to customize Nutty's sideways chat, first time i do that on stream elements. I'd like to make the messages disappear (fade out) after 10s, but the setting "hide after seconds (999 to disable)" doesn't seem to work...
Do I need to change something specific in the editor ?
Tbh i don't know anything about HTML, CSS, JS (and these "fields" & "data") but it seems the fade out per message needs to be forced there... Any advice ?
Thanks !
is this in the #widget-share @winged shuttle ?
Well i don't know, got it from youtube
i've seen 'sideways chat' mentioned before; but i've never seen the widget.
it's on my list to 'port' to Trovo ... but i can't find it in the server ๐ค
Sorry for the link, i hope it's the good one
๐คฃ ... it's all good. that is a long link.
Can't share the video itself but yeah : "Create Minimal Overlay" by Nutty ๐
The link is in description
i'll fire it up and take a look. i've heard this mentioned but didn't see it in #widget-share
Might just be a hijacked one 
๐คฃ @broken coyote ^ "the Mr. Beast of widgets" @ 10:20
It's a very cool one : i started to customize it, but the animations in and out doesn't seem to be controllable normally, certainly need to go with the edit menu...
Is there a problem ? ๐
Boost is a guy here that makes widgets ... but i skimmed the video and it is copy-left.
Just interesting to see how others take widgets and edit them into how they want ๐
Yeah. It's someone who has code sharing perms as the link is different.
Do you know how to force the fade out / message ?
well well, thanks you then ! For me it wasn't working, lemme try again...
ya; give it another shot. the messages are fading for me
Ok, seems it doesn't work when Show nickname every msg is on YES NO
Can you try that ?
sorry, on NO
yeah, that's a little weakness i guess, but fine
Activating that prevent the animation out
even if a different account writes in between
looking into the code leads here on line 174:
like remove the user messages one by one?
yeah, remove the ones send at X seconds
but keeping that display of the nickname once for chained messages
that removes the user name first ... then message 1 then message 2... so message 3 has no context for how sent it
on that line 174 in the image posted above; the "hide" check was removed: and became ```js
if (hideAfter !== 999) {
Absolutely amazing, am very grateful : THANKS
I think this chat can be cool for a lot of persons, so great we can customize as much ๐
๐ i've heard this one mentioned a few times but never knew where it came from.
Nutty said it was developed for him basically
Is there a way to change the animation IN, like to a Fade In ?
Well, since the chat is scrolling right to left, i guess it makes more sense with that anim
That's fine tbh, was just curious ๐
Thanks again so much !
ya no problem.
Lol
... i did a quick port to Trovo in the #beta_trovo ๐ couldn't get mixer to work tho
hey, how can I submit a widget I made to https://streamelements.com/dashboard/themes?
the staff isn't really adding anything new to that
but you can share it her on discord and it will get posted to #widget-share
...and if your widget is approved you'll get access to a secret channel... where we talk about coding some times.
๐
interesting
I had found a link somewhere with a google form for submitting a widget
is that also abandoned?
nope; i did it last week ๐ see #widget-share
ok, so I guess I'll use that then
the header there ^ for submit link
what about https://github.com/StreamElements/widgets?
there are widgets there, but not very many
the active widgets are in #widget-share ... ^ see the header in that channel*
ok, thank you for clarifying, I will proceed and use the form then once I finish it ๐
๐ awesome! it might take a while from when you submit the code until it gets posted, like a week or 2. But send it in ๐
is there a way I can share my widget with someone without submitting it?
by just sending them an URL or something?
Nope.
something is mentioned here: https://streamelements.helprace.com/i390-share-import-download-themes-overlay
That's limited to certain approved individuals/brands.
once you create a widget and submit it to the widget share; you may have that ability ๐
If you want to share a widget with a friend; you can add them as an editor to your account.
or visa-versa, they add you. Then you can transfer widgets between
How long does it take to be accepted to the widget share? I submitted a few days ago
how do I change to Pounds and not USD
???
im using the se hype progress bar widget
It depends on the widget. Some widgets use the currency.symbol-variable which gets the info from https://streamelements.com/dashboard/tipping-settings I guess. Otherwise it might be hardcoded as $ in the widget.
Can you talk me through it
Click Open Editor. You'll see the $ symbol in the HTML. Change that to ยฃ and click Done
Sadly that would get returned to '$' once a new donation had come in. It needs to be changed in the JavaScript too.
Ah that's true, my bad. It's easy enough to change though, it's only referenced in the reloadGoal function
I've been playing about with that widget recently (it's the Level-up Goal widget)
I've just added the Advanced Goal Widget by Mr Boost, but the gradient colour doesn't seem to update, and I want to add the goal to the bar itself so instead of just displaying what my current number it is is current number / goal I tried to look at the HTML/CSS but was unsure what I needed to edit where
Silly question, have you clicked Save in the top right?
Yeah, I have.. Even if you don't though, the changes should still be shown on in the editor they just wont show in the overlay on OBS
The gradient colors are actually for the User Nickname Display
If you want to change the bar you'll have to edit lines 19 and 24 in the HTML
just replace thesrc URLs with whatever image you want
You can upload your images to Imgur and copy the image address
@whole mural And replace lines 40, 41, 42 and 43 with
$('#Subcount').text(data["subscriber-{{goalrange}}"]["count"] + '/' + fieldData["subgoal"]);
$('#Cheers').text(data["cheer-{{goalrange}}"]["amount"] + '/' + fieldData["cheergoal"]);
$('#Donations').text(data["tip-{{goalrange}}"]["amount"] + '/' + fieldData["donogoal"]);
$('#Followers').text(data["follower-{{goalrange}}"]["count"] + '/' + fieldData["followergoal"]);
To get Current / Goal
Thanks for this, but I don't have anywhere that has L40-43, that this seems like a logical replacement for, except in JS
$('#Subcount').text(data["subscriber-{{goalrange}}"]["count"]);
$('#Cheers').text(data["cheer-{{goalrange}}"]["amount"]);
$('#Donations').text(data["tip-{{goalrange}}"]["amount"]);
$('#Followers').text(data["follower-{{goalrange}}"]["count"]);```
but that's 43-47, is this what oyu mean?
Yeah sorry I meant in the JS
mine is at 40 - 43 but yeah it's the same
just replace the 4 lines
awesome, thanks
my pleasure
What part of the HTML is causing the massive gap?
<div id="total-wrap">
<div id="total-count"></div>
</div>
</div>
<div id="main">
<video id="vid" width="100%" height="100%">
<source src="{{goalVideo}}" type="video/webm">
</video>
<div id="title">{{usernick}}</div>
<div id="vi3wers">
<span id="current">{{goaltype}}:</span>
<span id="follower">{{goaltype2}}:</span>
<span id="total"><span id="{{goaltype}}"></span></span>
<span id="totalfollowers"><span id="{{goaltype2}}"></span></span>
</div>
<div id="bars">
<div id="barCont">
<img id="filledBar" class="bar" src="https://cdn.streamelements.com/uploads/e2a002f8-95db-4f4b-a315-b5be044e0ebe.png" />
</div>
</div>
<div id="bars2">
<div id="barCont2">
<img id="filledBar2" class="bar2" src="https://cdn.streamelements.com/uploads/e2a002f8-95db-4f4b-a315-b5be044e0ebe.png" />
</div>
</div>
{{avatarimage}}
</div>
<audio id="goalAudio">
<source src="{{goalSound}}" type="audio/ogg">
</audio>
</div>
</div>```
between followers: and the numbers
I broke the bar, but tbh I'm not mad, I'm happy with just the text
in the CSS edit left: 12px; of #current and #follower to be something higher like 40px @whole mural
awesome, thanks
no problem
hey can i get help with programing something?
@broken coyote hi, I just added the level up widget with subs that you've edited to the stream, but when someone gifts a sub or subs, it adds the number of months subbed to the goal instead of just adding +1 (an 11 months resub added 11 subs to the goal). Is there any way for you to help me with this? I LOVE the widget so much. Thanks!
And is there any way to add a field that allows us to customize the width of the widget? I would love if it was a bit smaller, but same height. Thank you in advance!
Hi brainiacs, I've been thinking of a way to have large numbers shortened in SE.
Would this code work?
const SI_SYMBOLS = ["", "k", "M", "G", "T", "P", "E"];
const abbreviateNumber = (number, minDigits, maxDigits) => {
if (number === 0) return number;
// determines SI symbol
const tier = Math.floor(Math.log10(Math.abs(number)) / 3);
// get suffix and determine scale
const suffix = SI_SYMBOLS[tier];
const scale = 10 ** (tier * 3);
// scale the number
const scaled = number / scale;
// format number and add suffix
return scaled.toLocaleString(undefined, {
minimumFractionDigits: minDigits,
maximumFractionDigits: maxDigits,
}) + suffix;
};
Whew. That post was 3 month ago lol. I'll take a look today at it
Unless i'm missing something there still doesn't seem to be a place to update redirect uri's is there?
Who do we need to get in touch with to update our redirect uris for our oauth application?
This should work until you get down to the last block. The toLocaleString is for Date objects.```js
const SI_SYMBOLS = ["", "k", "M", "G", "T", "P", "E"];
const abbreviateNumber = (number) => { //, minDigits, maxDigits not needed
if (number === 0) return number;
// determines SI symbol
const tier = Math.floor(Math.log10(Math.abs(number)) / 3);
// get suffix and determine scale
const suffix = SI_SYMBOLS[tier];
const scale = 10 ** (tier * 3);
// scale the number
const scaled = number / scale;
// format number to 2 decimal places and add suffix
return scaled.toFixed(2) + suffix;
};
Hello! I want to customize an existing widget (event list), and i want to test it on the overlay editor. Can anyone tell me what is the difference between the "FIELDS" and "DATA" tabs? i noticed they're both json files
The FIELDS tab is where the settings are set; these are the options and menus on the left of the editor. The DATA is a list of all of the settings. Basically if you want to copy the settings to a different widget or share them with others, you share the DATA info.
In order to test a widget, do i need to copy the widget.json content in both of those tabs?
the website builds the DATA tab for you; so you just need to put that in the FIELDS tab
then if you want to share your settings with someone or import someone elses settings, then use the DATA
ooooh ok
should i erase the content in DATA every time i upload a new custom widget? Or it doesn't matter?
It won't matter. Unless you want to set all the settings back to default; then you'd just set it to {}; then when you save the site will rebuild it
i see, thank you very much @elfin arch !
ohhhh so that's what that's for lol, I just ignored it but turns out it has a purpose wow
Hehe I know, I just came across the donation widget and was like "damn, how I wish it was for the daily sub goal" and then I saw you'd already edited it, so thanks a lot for taking the time to do it ๐๐ป
let data = obj["detail"]["session"]["data"];
let followersThisSession = data["follower-session"]["count"]
You can do that on widget load
Hey I wanna submit an update to my released widget Neohud, can someone tell me where I can submit it?
hey can i get help for something
That is something ooof could probably answer
@viral patrol since I didn't ping 
https://streamelements.com/dashboard/overlays/share/61111aed98888c694a701b73
here ya go. this should do the trick
in the code guru channel
can i get some help with programming something in streamelements
@mystic locust what's the issue?
so I have a webcam thing I want to do. its just a sqaure with my webcam with 2 other boxes for the sub and sub goal labels. but I want to see if the 2 squares expand when there is a new subscriber to fit the name of that subscriber
this is what it looks like
exclude the red i just put that there to make it better to see
Have you got some html/css already?
no i dont know how to do that unfortunately so I was wondering if you guys can help
Oh, I can't post a link, i'll drop you a dm
ok
@slate badger link is okay now. It just got bit on initial post.
Do I need to request permission to post links or something? Or does that always happen?
Our bot is overzealous and after the initial yeet it either denies or allows. If something fine is denied we switch it to approved.
Ah ok
hey, just a quick question: Is it possible to trigger a chat command from an alert with delay?
I set the decimals suffix to 1.. 1.5k vs 1.54k..
hey all
one of my followers donated to me this evening but I did not get an alert
And my alerts are correctly set up too
Any Ideas as to why this is happening
?
So any suggestions why my notifications from tipping link did not display on my Overlay when its properly set up
or was there a technical issue with the website that runs the little pings
hey, i have a quick question. im running a giveaway that i plan on ending tomorrow. i just noticed theres no draw a winner option? do i just close the giveaway and it picks a winner or is it bugged?
do you use stream labs tipping or stream elements tipping? i had the same issue but realized that because i was using the wrong link for tipping, i wasnt getting alerts
I used Stream elements
so its set as its default
I use the SE tipping so it works with SE overlays
I use only SE for tipping overlays widgets etc
Hello, I'm quite new here.
Can anyone guide me through StreamElements Alert API?
Actually I want to create a custom donation page (Using local wallets available in my country, since my country doesn't support International Payments and PayPal), and from that donation page, after the donation is successful I want to show that in my LIVESTREAM with alert. Is that possible with StreamElements API?
Thank You in advance. Any suggestions are appreciated.
Also my Donations will be in NPR, means Nepalese Rupees.
Hi, for the first time in years, I've finally focused for 5 minutes on sitting still and coding something. I made a twitch bot with node.js and I'm wondering if there's a way for me to trigger an event such as a follow/sub animation to play
Is that something that I can hook into?
How are you expecting that to work? Surely you could just have an alert widget in your streamelements overlay to do that? And that's already setup to check/capture those events (edit, not sure why I put streamlabs)
do i just hit close giveaway when im ready to pick a winner for my giveaway on stream elements or no?
Yeah, where can I get started to learn how to do that? I said follow/sub as an example, but what I really want to happen is a gif of dice to play as an event using the mascot I use for those events
Citrus, if you log into streamelements and create a new overlay, you can add an alertbox that will do this for you without needing to code anything
okay so I have a bot, I want the bot to trigger events
Then you need to use the Twitch API to do that
does twitch have custom event? Because I don't actually want to trigger new sub/new follower, I just want dice to roll
I'm missing something here. I don't get when you want dice to roll?
So, I tell my bot "get the dice", it tells chat to start rigging the dice, chat can spam 1-6 to make it more likely to land on that number, and then I tell my bot "okay roll the dice" and it picks from the array they added to. When it picks one of the numbers, I want my mascot the bot is named after, that is on a StreamElements overlay to be triggered to do a new animation
Errm
OK, i'm not sure you're going to be able to do this in a clean way. You could have 6 overlays in OBS, all set to hidden. Then you can just unhide the selected number source once it's been picked? These could just be the gifs themselves rather than using streamelements though if it's just a gif to be shown
I don't think there's a custom event like you're after
oof
Could you not just have a self hosted page where you can pass a param into it?
I think your bot could just interact with OBS and do what you need, no?
Well another problem I have is 2 animations playing at the same time, I already have an idle animation that you can see a bit of when the new follower animation plays due to there not actually being a feature for that when I commisioned the mascot to be animated
so if I just had the dice be in OBS, then... that could be up to 3 animations happening at the same time
Yeah I get you. I don't think SE Overlays have custom events you can trigger in the way you want (although i'm more than happy to be proven wrong)
well if you hear anything please do ping/dm me
yes, closing it stops the timer and then you can still pick a winner afterwards as long as you don't mark it as complete
you could put the logic for chat interaction in a custom widget and trigger the animation there if needed
Could someone help me remove my old Mixer account from my login options? Clicking on my old mixer account causes the website to become non-accessible sometimes. Thanks!
Alright, I'll make a note of it and inquire more when I have free time to develop my setup
hey yall, the OAuth link application is down, is there any word when it will come back up or is there any other way to be able to get authorization for it
Hi team - I sent a message back on the 7th to see if I could get an update about OAuth but didn't see a response, and see it being asked about again. So I wanted to see if theres any way to get added to the Beta or have access to it? I'm trying to finalize a project with SE Integration and I'd prefer to not have users provide a JWT token since it provides much more access than I would want to trigger alerts! Thank you ๐
anyone know the parameter that needs to be set for a gift alert to show the gifter and amount gifted and NOT trigger an alert for each individual person that was gifted a sub?
Hello, I have recently decided to rebrand on my Twitch channel. How do I change the username on my SE profile so my old info doesn't show on Tipping Page?
^ left
@echo scaffold I had made a suggestion about this internally but outside of what would basically delete all your connected accounts you're stuck as is for now.
@flat parrot @primal burrow ATM it is still "closed" but they are looking to try and reopen it for users "sooner rather than later".
This is my Fields tab for alerts, but for my Followers settings, it doesn't show the Field tab to change the image anymore, but others have... What needs to be changed, to bring the Field section back?
This is the field section that is missing for Followers, note: this was from subscriber alert
you are missing a } at the end; on line 7 ๐
and the comma at end of line 6 might catch ya.
Thanks
Hi there. Would anyone happen to have a REGEX that could detect Chinese characters please ? The trolls have taken to putting abusive messages in Chinese now :/
Anyone home ? ๐
hi
Cannot access SE merch
Also I am getting messages from my followers that the Donation ping on the overlays are not working through SE tipping even though I do get the donation still from SE Tipping
Does anyone know how to change the bar colors in contests widgets?
Has anyone activated / deactivated layers within the streamelements live overlay with a streamdeck?
I have not tried it myself.
Depending on how the overlay is set up it can take some time to reload I guess. (Full refresh of the webpage is required for any changes upon saving).
But I do believe it is possible. It is probably not easy to set up and seems like a bad solution to me. Why not split it up to multiple overlays and trigger them in OBS instead?
Hello, does streamelement's have eval? or anything to replace eval? (custom chat command)
how would one install an older version of streamelements
I have a question, I was wanting to do giveaways but I want to give points away, is there a certain way to make that happen, if they would type for ex !join as well, I wanted to know if I can change the timer for defualt command such as !sraffle
Hi, can i ask a question? I recently change my YT channel name and also in stream elements, but the tipping link page and some of the information like owner of the account in streamelements are still from the previous name that i use and not changed except for the titles/naming that have an edit button. does anyone know to fix it? thank you
Hello, how do I change my email in streamelements?
Hi, how are you guys doing? I would like to work on a new integration integrating my platform with StreamElements (via oAuth), who is the best person to reach out to from the team? @mortal knot
@tawny current it is currently closed atm with plans to reopen hopefully soonish.
I'd love to get on the waiting list and start talking with you as soon as possible @hardy walrus <3.
There isn't one unfortunately. Simply keep an eye out here.
@mortal knot Can I get some help please
@pulsar willow Apologies. Bot didn't like that.
In short no can do eval nor planned atm.
Ah okay. Hopefully the ability too is added at some point. I guess we will stick with NB for now. Thank you!
It was something I brought up a while back but understandably "denied" due to security concerns.
Not outright but just not right now at least.
Yea it's understandable for sure. I appreciate the info!
Maybe best to ask in #helpdesk-merch
Hey guys,
i install websocket for OBS but in the Tool section i cant find it. Any ideas?
Hello does anyone have any idea on how I can get 7TV emotes to show on the chatbox?
Does anyone know why streamelements dashboard doesnt work with Firefox?
@open raptor โคต๏ธ
Our Dashboard and Overlay Editor are Chromium Optimized. We strongly recommend using Chrome. Opera GX and the new Microsoft Edge Chromium might work closest to Chrome as its also Chromium built. Firefox also works, but some things might look a bit different or not work. We do not recommend using Internet Explorer with our Dashboard as it does not support functions.
If the website doesnโt work on chrome, be sure none of your plugins is blocking our website or clear your cookies. You can try if the website works in an incognito tab.
thx. is there any intention on making it work with other browswers or just chrome?
Anything chromium based should work. That doesn't exclusively mean chrome though.
But as far as other s that don't fit that not to my knowledge.
From reading above it seems like you aren't accepting new developers to the API, but I'd like to add myself as a data point for interest in using the API if that helps prioritize it :)
I hope this isn't a lame question, but would anyone here happen to know anything about customizing a widget for highlighted messages? All I'm wanting to do is change the font color of a highlighted message for my chatbox widget. Thank you!
if it's a custom coded one, then to check if a message event is a highlighted message:
window.addEventListener('onEventReceived', obj => {
const { listener, event } = obj.detail
if (listener === 'message') {
if (event.data.tags['msg-id'] === 'highlighted-message') {
// message is highlighted
}
}
})
Oh!
I see, I'll give this a try now
I think I was over complicating it in my head since my knowledge of js is pretty next to nothing
Is there a way to get a widget's visibility setting in JS?
Or is there a better way to play sound only if the visibility is on, and mute if not?
how i add to a user watchtime?
@keen iron โคต๏ธ
The !watchtime command is directly tied to the Loyalty system. The Loyalty system must be enabled for viewers' watchtime to count up.
To enable Loyalty, please go to the Loyalty section of your account: https://streamelements.com/dashboard/loyalty
Watchtime counts up every 10 minutes alongside Loyalty points, and only while the stream is live. Reruns will not be counted.
Please note that watchtime is not tracked by Twitch and there is no way to retroactively apply past watchtime to viewers.
Im not sure what section this should be in but id appreciate if someone could help. Stream elements is not updating my recent subs, gifted subs etc. All that is showing is recent followers on activity feed. I was trying to update a recent sub stream label and noticed that it was well outdated. I have loggded out and back in with no luck. Any suggestions?
No clue whether it helps or not, but you could reset your session data. ๐ค
https://streamelements.com/dashboard/session
hello! does anyone here have a stat rotator (likes, follows, share, etc.) widget for fb? I only see widgets like this for twitch
All the help needed today!! I've had this problem before but the fix given seems not to work anymore ๐ฆ I use lx's Office Agents Alerts and they stopped showing up in the overlays editor and OBS, I tried this fix #dev-chat message but no dice anymore!
I don't want to ping anyone unnecessarily but maybe lx can help!
@viral patrol ๐
ATM I am not around PC. I will be able to look into that tomorrow's morning
Thank you so much!
Im new to SE api and I was wondering is there anyway to get the streamelements media request data?
StreamElements OAuth2 Application Form is closed?
Is there a way to download a widget's files so that you can work on them offline without having to copy and paste all 5 files?
@viral patrol There is a new version of the auto poll widget ? I sent you dm aswell. Thanks!
hi everyone, is there a way to listen to new messages in chat through the websocket connection? I won't be creating an overlay to use the onEventReceived... I'm creating an external integration, is it possible?
Is there any way to get chatbot to write/read from a spreadsheet? I see there is a todo command in #command-share but it doesn't seem to work. That or I've some how messed it up, the bot just starts spitting HTML back out into chat.
what does the bot say back from the chat command?
Good news! Sounds like I fixed it. You can grab a working copy from widget-share.
it's literally just spitting out the HTML of some file, lol idk what file that is
I'm assuming that is the HTML of the sheets.google.com
ya. that means your link isn't working. DM me the link you are using in the command.
@viral patrol gosh amazing thanks so much for that!!
hello, after what time more or less the "Founders pack" in raid Shadow legends is counted? because 12 hours have passed and I still didn't pass it ...
@viral patrol About the auto poll widget. Any update ?
not sure if i should ask in this channel, but someone can send me the dashboard code for the default "!duel" command?
is because i want create a new command to "steal" loyalty points from one to other and i dont know how can i give someone points and/or take off to the other
Is it possible to put a custom url into a streamelements overlay?
No
(about the api) can i access redemptions from a store i have editor on the SE by just having my own jwt?
No. You can only use the jwt from the owner account (which is not hard to get as you already have editor access)
I order to transfer points from user1 to user2, user1 needs to run โ!givepoints user2 amountโ, so user1 will transfer the amount from its own.
But if you want to remove points, from a user, you can do โ!addpoints user -amountโ. Amount will be a negative number. So you can give the points to the next user.
Another good option is using jebaited.net API, which you can transfer points using commands. It will give you more flexibility. Just have a look at the website and login with your streamelements account.
found a little bug with the stream chat preset in the stream tools (seems to occur whenever the symbol is at the end of the message)
hello everyone I am having some trouble adjusting one widget.
it is the gradient goal widget by mrboost and i was wondering if it's possible to make it all show up in one row/line instead of underneath each other. Thank you
Does anyone know if it's possible for widgets to tell if a user in chat is a super mod/regular or is that exclusively a chat bot function?
Hi all, so i wanna make a widget that shows your present and future Community challenges, where would i start?
is there a way to get the train count data?
not sure if this is the right channel to ask this. But I would like to have the bot interact with google api.. so if viwers do something like !whatever <some_string> then the string is sent to a google spreadsheet. Is that possible with your bot?
Yullo everyone, having an issue with my sub alerts. Every time someone subs and the alerts pop up, they are VERY laggy, audio is choppy, etc. Really just degrades the experience. This also happens when I use streamelements as a test to send alerts to obs. My sub alerts are the only alerts I have that use custom CSS. I would like to get that fixed. This doesn't happen with any of my other alerts. How do I fix this?
I have already tried hardware acceleration on/off and that does not fix the issue.
@sweet ibex, posting multiple links will result in not being able to post again.
Hello everyone! I was planning to create a custom widget for Facebook alerts but all custom widgets I saw are for twitch. I am farely new to coding this kind so it is hard if I don't have an example to look into. For my first question, is it required to use twitch api to access the events for the alerts? because if so I would try this for facebook alerts. Thank you everyone!
Hi! not sure if this is the right chat but I have a question with my campaign goals for Riad. Thank you
is this for a StreamElements widget?
this seems to be an up to date regex that will match all emojis
i don't know much about regex so I'm not sure how to combine that into what you're looking for
Hey guys! I'm trying to add a font picker field into my widget, I tried figuring it out myself but I messed it up, can anyone help me?
for a google font picker, have something like this in fields:
{
"googleFont": {
"label": "Google Font",
"group": "Text Styles",
"type": "googleFont",
"value": "Nunito"
},
}
css:
font-family: '{googleFont}', Arial, sans-serif;
html:
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family={googleFont}&display=swap" rel="stylesheet">
hello, not sure if this is the correct helpdesk channel. But I've activated the chatbot for my account but I cant seem to find it. It doesnt show up on the right side of my dashboard. any help would be appreciate. thanks!
Nvm I fixed it
Just gotta put in a text size option now thanks!
... I forgot to paste the link https://github.com/mathiasbynens/emoji-regex/blob/main/index.js @pulsar willow
Ok I messed something up haha
If I was going to do a text size option, what kind of field would I put in? Slider or something else?
I usually do a number field with a step of 1 and min of 0, just make sure that when you put it into css you add the px
so like
font-size: {size}px;
Oh ok Iโll try that tomorrow thank you!
I feel ya, regex is so very not user friendly
there are letter emojis too so maybe it is best to just block out emojis anyway
One last question for today sorry, can you do if statements within the bot, im trying to get it to check the game im playing and if it matches to what I want it will call the function and if it doesn't match it will print a message. the reason im asking it reading the if statement as a string not a function.
Hello! I'm currently using the Credit roll(by Grot) and trying to make it just scroll trough once, also the font size of the Username is not changing even tough I put thrice as much as the Subtitle header.
Question is:
- How to stop the infinite loop(It's actually not infite, it loops like 3 times)
and
Where to increase the fontsize of the Username in the css section?
edit: Just found it out while asking ๐
Hi, can someone tell me if there's any possibility in ur basic overlay with Goal to change position {currency} behind {amount}? Cuz there's an option in Last Donation etc. but in Goal there's no such thing. Thank you for the response
You'd need a custom widget for that for sure.
:/ thank you
Yullo staff, having an issue with my sub alerts. Every time someone subs and the alerts pop up, they are VERY laggy, audio is choppy, etc. Really just degrades the experience. This also happens when I use streamelements as a test to send alerts to obs. My sub alerts are the only alerts I have that use custom CSS. I would like to get that fixed. This doesn't happen with any of my other alerts. How do I fix this?
I have already tried hardware acceleration on/off and that does not fix the issue.
Day 2 of attempting to get the attention of staff
ola peeps, was trying to push the latest YT sponsor name in here but something's off in the code it seems. Can someone help?
window.addEventListener('onEventReceived', function(obj) {
const listener = obj.detail.listener;
const event = obj.detail.event;
if (listener == 'sponsor-latest'){
//newMem();
var myname = obj["sponsor-latest"]["name"];
nameHolder.innerHTML = myname ;
};
});
hey there guys, how do you debug your code in SE? Cause like I've been working on a widget offline so that I could debug it but now that I need to refer to SE_API that's a bit of a problem
I guess more specificly my issue is that I can't use console.log in a widget to see things
Good luck I don't think I've ever seen staff reply to someone in here.
I've only ever seen maybe like 5 different people with coloured name in here
wtf is going on in this channel? for some reason some people are showing up like 2-3 times
console.log should work
what is the custom code that your sub alerts use
hello guys i have a question i want to move all my alerts from facebook to youtube is their a way to copy the whole scene and paste it on youtube ??
@whole storm, posting multiple links will result in not being able to post again.
Im sending you them in DM's becuase its alot
Hello, I have problem with donation goal, I would like change $ to CZK, can you help me pls?
I'm trying to have a spam filter(s) that times out anyone that types in anything but English. I had some that worked but they haven't for about 2 months. Also had one for the ASCII art but that doesn't seem to work either
symbol protection tends to work well for ASCII art
I recently added some new animations to my streamelements overlay and I'm having an issue with the text for resubs, hosts, and raids being too long and not fitting within the animation. I don't know how to trigger a line break to have the text create a new line so that way it would fit. Any help would be appreciated
so did my filter until like 2 months ago. Something must've changed on SE end to break it
symbol protection blocks harmless stuff too
I have fixed the issue for everything but resubs, If I try to induce a line break in the "alert message" section it makes the text fuse together in some weird way it doesn't create a new line like the others.
Hey there! I've tried looking through messages with the words "multiple conditions" in it, and I didn't find anything so forgive me if this has already been answered.
Is there a way to have an alert that is multiple conditions in terms of needing a certain amount of two things in order to trigger it?
I know that you can "empty cup" and reset goal alerts, so I know that SE tracks that--
So basically, I have a daily goal that's 1 sub, 5 follows.
I was wondering if there's a way to have an alert go off once both of these conditions are met for the day? (or if its even possible to have an alert after an amount of things happen, vs when a single person does an action? ie, an alert after the 5 followers for the day, at the very least?)
( I accidently posted this in Twitch oops)
Are you making a custom widget for the alert?
Is it possible to have a "Contest" where viewers can "bet" on multiple options.
Hello guys, im not sure if im writing this in the right channel, my question is: I have trouble starting the media request alot of times, im loading a youtube playlist with around 2000 songs into the backup playlist and it will start some times the playback sometimes not. After a different amount of songs, around 5-10 it just stops the playback and i have to go to my streaming pc and restart the playback. also the !play command does not work in this case, also !skip !next doesnt work. Sometimes when i delete the playlist and switch the shuffle option off and play around with those it starts working normal for some time.
Customer widget.. I mean I guess I could try... if thats the only way to do it, but I dont know anything about code...
I guess I posted this in the wrong spot then? I just didn't see a good place to put this question..
is it the built in "Alert Box" or a custom one.
I can't see a way to make that happen with the default "Alert Box"; but maybe someone else would know. If you are using a custom alert style widget, then you could.
you are right; this is the best place to ask ๐ ... we just need some information on the alert box you are using and how you want it to function. And you can do both; use a normal alert box for all events; then a custom one for ... say* every 5th follower is a full screen image and sound.
Oh thats cool, would there be a way to set one up for a sub condition on top, so it doesn't play unless there's both conditions met?
With the Alert Box, i don't believe you can do both; if you made a custom one then you could.
i added an example in a test widget i have @tender stream : https://streamelements.com/dashboard/overlays/share/5f13be729e745c64d907eb11 that hopefully shows the logic needed.
After more than 5 followers and more than 1 sub; cat will appear. Happens 1 time.
Is it the "Level up Goal - by Annedorko" widget?
hello! I have some questions about chat commands, is this the right channel to ask about it?
Hello,
Is there a way to add a Twitch user to an ongoing raffle via the StreamElements API (or, well, in any form other than the user typing the join command themselves)?
Hi! Is there a way to redeem an item from the store through the api?
Hey, I'm creating a widget that is integrated with YouTube APIs. When it has been time to restrict the API keys I've whitelisted
http://*.streamelements.com
http://*.streamelements.com/*
https://*.streamelements.com
https://*.streamelements.com/*
This way I though that only requests from streamelements will be accepted, but unlike what I was expecting when I lunched the widget the request result was
"error": {
"code": 403,
"message": "Requests from referer null are blocked.",
"errors": [
{
"message": "Requests from referer null are blocked.",
"domain": "global",
"reason": "forbidden"
}
],
"status": "PERMISSION_DENIED"
}
}```
Where `null` represent "from where" the request has been sent, I know that because I've tried with other services and instead of `null` there was the actual url of the service. So here come my questions.
1) how can I whitelist streamelements requests?
2) from where are streamelements requests sent from?
StreamElements are in jailed iframes so they cannot interact with local storage/cookies and they don't have referrer. If you want to access endpoints that require CORS or specified credentials - you will need to use man in the middle service for those.
Mmm ok, but I was going to release the widget to the public and it isn't easy to setup a man in the middle service. Can you suggest me another way? Another workaround?
Hi, guys! I made a Minimal Alertbox port for streamelements and I wanna share. But it's a custom css for Alertbox widget and it has more than one css, js, html and custom fields. How can I share?
@inland rune your best bet is to submit it through this link: https://strms.net/codeshare. Follow the instructions and if it's approved, SE will share it in #widget-share
@inland rune code should be shared across follower/sub/tip etc. Manipulated by fields in field data. With that we can share an alertbox by copy paste stuff between all of those.
yeah i know, but, like i said, it's a custom css for alertbox widget and it has separated html, css, js and fields for follower alert, sub alert and etc. I can send multiple jsfiddle links in the form?
You'll need to combine them into one lot of html. You could have 4 divs and show/hide based on follower/sub etc?
So if you have all your options in your fields, then you can show/hide html elements based on the event
Hello everyone!
Is there a way to modify the song request playlist programmatically (change song positions, add/remove things to/from the list, etc.)?
The API documentation for this is very unclear.
Hi, I would like to get value from specific command and use the string in javascript. Is there option for that? (When i clicked that - Apply for OAuth2 credentials here, I cant get credentials because form doesnt accept answers ๐ฆ )
Maybe it's just because I don't know much at all here, but I don't understand your question.
What exactly are you trying to do, what credentials are you referring to and what form are you talking about?
hi, is there any way that i can somehow get the StreamElements bot to write to the chat box through the custom widgets option on the overlay?
I don't actually know (maybe someone else can provide an actual, knowledgeable answer), but the documentation states that there's a global object called SE_API that you can access from widgets which gives you access to the SE API.
One such example there shows this:
SE_API.counters.get('counterName').then(counter => {
// counter is of the format { counter, value }
});
Which I'm guessing corresponds to the /bot/{channel}/counters/{counter} API call (https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1bot~1{channel}~1counters~1{counter}/get), so for the /bot/{channel}/say call (https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1bot~1{channel}~1say/post) which makes the bot say something to the chat, I would guess you'd need to use SE_API.say('Your message here').
I haven't tested it though.
If that doesn't work then I guess you could just print out all the keys in the SE_API object to try and figure out where that say function is.
Or possibly SE_API.say.post('Message'), if their object is a direct interface to the API using get/post/put/etc. functions everywhere.
You can use the following endpoint:
https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1bot~1commands~1{channel}~1{commandId}/get
In case you don't have the command ID, you can get it using this endpoint:
https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1bot~1commands~1{channel}/get
There is a Code generation on the right side of the page, which you just need to fill in the fields and click on "Code generation", and then "Java Script > Fetch", for example.
As regards the OAuth2, you're right, submissions are closed, so you need to use your JWT Token, which you can get here (clicking on "show secrets" to reveal):
https://streamelements.com/dashboard/account/channels
Do you have them public on gitHub? ๐คฃ .... i ๐ฏ relate with having to fill out that form
@rich lagoon, posting multiple links will result in not being able to post again.
@pulsar willow, posting multiple links will result in not being able to post again.
@rich radish, posting multiple links will result in not being able to post again.
@hardy sleet, posting multiple links will result in not being able to post again.
Hello everyone, Iโm very new to web integration and need a bit of help. I have an application on the clientโs machine that needs signals from follows and subs as well as the usernames that triggered that. If someone could tell me where I should start researching where to get that data sent I would greatly appreciate it!
Aloha! CUSTOM COMMAND question please - I see people using their channel's emotes in their custom commands message. When I do it, all I see is words and I am using my channel's emotes. Is there something special i must do besides posting the name of my emote? Thank you in advance
@sleek quarry, posting multiple links will result in not being able to post again.
The StreamElements bot needs to be a subscriber on your channel in order to use your emotes.
StreamElements is a Twitch user like any other, and Twitch users only get channel emotes by following/subbing/cheering.
So if you want the bot to be able to use them, you need to gift it a sub to your channel.
Hey, is there a way to create a text gradient on SE? I tried doing it but I get an empty text like this
.amount-1{
color: {fontColor};
text-shadow:
0 0 42px {fontColor};
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#333));
background: -o-linear-gradient(#eee, #333);
background: linear-gradient(#eee, #333);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
I appreciate you trying to help! I messed around with this and for whatever reason, I don't think I understand this very well... I'm just not savvy with any of this. The goal set up thing was just constantly on and when I would emulate an event nothing was different.
Does anyone know a way I could hire a widget maker?? Or is there anyone here that knows code well enough?
have you already created the alert that you want to happen when X + Y happens?
and for widget commissions; you can check in #art-marketplace. I know that @young shard posted recently
Hello! I'm looking to get the info on a subscriber (specifically what tier sub they are) by their name. Is there anyway to do that in a custom widget? I'm currently using the object in onEventReceived
I'm guessing I could use Twitch's API but I'm wondering if this data is available anywhere within SE
yup; it is in the eventData: data["subscriber-latest"]["tier"] ( https://github.com/StreamElements/widgets/blob/master/CustomCode.md#twitch )
this is within a gifted sub event btw
pretty sure I looked at the tier property and it was pointing to what tier was gifted
oh right I was looking at this page
My "session" property was undefined
I only had available obj.detail.event or obj.detail.listener
any ideas?
are you trying to get the Tier for the person that gifted the sub?
or the Tier that they gifted to the new sub?
I would like that info as well as being able to look up the tier of another specific sub given only their name
The tier OF THE GIFTER, and if possible, the tier of another sub by looking them up by name
if I could get the tier of the gifter that could work, I can manually store the other data somewhere else
ahhh. ya; I believe that will require a Twitch API call. The widget just gets incoming data, so it only knows when new events happen
so from that event I couldn't get the tier of the "sender", only their name?
correct; the 'sender' object for a gift is the 'tier' that they are gifting to others and not their actual tier
okay. Just trying to avoid making a Twitch API call if possible
So if a Prime user gifts a T3 to another user, the gift object would say tier = 3000
right
I know that much, was just hoping maybe more info about the gifter was hidden somewhere
instead of just their name
not to my knowledge; but I haven't looked very far into the sub events. If I understand correctly, you are looking to do something like "USER A, a Tier 2 sub for 32 months, has just gifted 10 tier 1 subs..."
basically
trying to give unique features to T2/T3 subs for a custom widget I use
Didn't want to weigh it down with unnecessary API calls
๐ค .... ya; i've never done anything that checked for sub tiers; i'm not even sure if it is buried in a "Chat" object, i think that is just a 0/1 for sub no/yes
dang alright, thanks for the help! I'll have to decide if it's worth the trouble calling out to Twitch, or just give said features to people who GIFT T2/T3 subs... ๐ค
not sure how much that extra work would slow things down
take a look through reboot0's wrappers; it could exist somewhere in the obj; but it's nothing i've dug into or used.
i see: https://reboot0-de.github.io/se-tools/module-ChatMessage.html#getTierBadge ; but this is going back to the Chat Message object and not the Gift Sub object
ok looking at this now, thanks for the link
Hi everyone, im very new to the development scene and im finding streamelements really fun to play around with on a friends stream. What im wondering though, is there a way to store variables? eg. chatter's names? Like is there some sort of way to program something? and if i do, do i need to host it on a web server?
SE lets you save back a little bit of data such as names using the SE_API store
https://github.com/StreamElements/widgets/blob/0f74fc8b7aa2538cc05acb8f644f9ae374acca32/CustomCode.md#se-api
@elfin arch would you happen to know the space limit on data stored? I've been told to keep it "within a KB range". Any idea?
Incrementally add until you get a 413 response 
i've never had an issue with the "store"; but my max object was maybe 3000 key-value pairs
fantastic that's exactly what I need thanks!
@elfin arch sorry to keep pinging you, but trying to do a quick Twitch API call. I used twitchapps/tokengen to get an access token with the scope user:read:subscriptions and am getting a 401 unauthorized
The token seems to be working for calls that don't need that scope
are you using your own client?
I'm running it through streamelements front end
I have my client-id registered if that's what you mean
try with score channel:read:subscriptions
still 401
well I just replaced the other scope, didn't include both
I'm just changing the scope via tokengen btw
which Twitch endpoint are you going for? .... the user is for the channels that you sub to; the channel are people that sub to your channel
am I not authorized to look at other users subscriptions I guess?
Would I have to get ALL of my subs and sift through the list?
Correct; the USER would have to accept the permission for that endpoint.
gotcha, thanks
kinda sucks that to get the tier of a certain sub I've gotta search a list. Just convincing me more and more this might not be worth speed wise
... ya; it appears they changed that in their API. you could always roll the dice with the old API (https://dev.twitch.tv/docs/v5/reference/channels#check-channel-subscription-by-user)
they say it'll be turned off in Feb next year.
thanks!
oh; wait; you can filter https://api.twitch.tv/helix/subscriptions
that's the endpoint I'm using now
niiice!
๐คฃ that's a an easy question
would that access token ever expire?
I guess would be my question
considering I'm using an external tool to get a token rather than doing it myself
ya; you are suppose to use a 'refresh' token, to update the access token. but it hasn't really been enforced too hard by them.
I made my client a few years ago and I've never had to refresh it; but newer clients might expire after 6 months.
.... eventually they will be hourly; they just don't enforce it.
yea
which is why I was REALLY hoping SE had this info for me already
but at least I know it's doable and not TOO slow
ya; SE doesn't store all of that information, you gotta get it from Twitch. I was thinking it might be buried in the Twitch chat, but it doesn't look like they (Twitch) sends the Tier info in, just a True/False for sub status.
you have been so incredibly helpful, I've been working on this project going on 2 years and am only now dumping some real money and effort into expanding it
your input has been invaluable!
No problem; best of luck ๐ and if you have any more questions feel free to ask!
Hi! I'm SUPER new... to all of this... but I'm determined... I want to make a DBD survivor widget.... What I really need is some sort of understanding how to code showing an image when I use a command in the chat for the widget. So like I type !totem and it shows a totem icon for example. Is there any resources for this somewhere I couldn't find anything online.
is there anyway to modify a SE Bot's counter variable from within the JS widget or would I have to do some roundabout shenanigans with getting the Jebaited API to send a message that updates the counter?
do you have any programming knowledge?
@earnest steeple bumping to help find this in the future; i hid it well ๐คฃ for the JSON object levels
Ty
@elfin arch unfortunately the domain is down
so i don't think this is an option anymore
mine or yours?
@earnest steeple Yeah... sorry bout that 
bro, you used a greekgod emote. It's all good brother. You are a fellow man of culture. ๐
I wrote an example widget that implements the behavior, with the exception that it uses an additional parameter (!totem show / !totem hide).
https://jsfiddle.net/pmqjzetk/1/
https://pastebin.com/1VqDnNhf
To test it, you would need to create a Custom Widget -> Settings -> Open Editor -> Copy the code in the corresponding sections (pastebin doc = 'Fields').
You also might want to replace the content of the 'Data' section with {}.
After that you should be able to upload an image and show / hide it via chat commands.
Please note, that the image isn't stored persistenly ... so when you resize it, hide it or stop streaming, it will disappear until you show it again.
To bring the widget to remember states you could use the SE API (https://github.com/StreamElements/widgets/blob/master/CustomCode.md#se-api).
You might also want to take a look at #widget-share message
It's a widget that allows the streamer to define an "image database" and load those images via chat commands.
The catch is, that you need to define that database as a pastebin-document like:
:[totem] {"default":"https://image.pngaaa.com/422/176422-middle.png"}
:[ruin] {"default":"https://vignette1.wikia.nocookie.net/deadbydaylight/images/3/34/Ruin_perk.png/revision/latest"}
So, every line has the structure :[keyword] {"default":"URL"}
The corresponding chat command would be !slot1 totem
good luck! ๐ฅณ
Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle code editor.
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Thank you! I'll start here!
How do I unpause the alerts in my activity feed?
Trying to test my alert box, but the test will not go through.
Never mind, fixed it!
Is there anyway to have data (like most recent follower) saved to a text file on the client's machine?
how do I post questions based on api without triggering the bot?
Can anybody tell me if it's possible to change this widget so that it shows your current subscribers as the total so far without having to edit it manually when subs expire etc? And how?
Hello. Is it possible to access to more info about the contest with the API? Such as the users participating ant their individual bets.
Random question is it possible to write to field data? I know you can read it foo = fieldData["bar"];...
Administration and developers of streamelements. Please explain why users with 0 seconds have 1 place in the time rating? the system hasn't recognized them yet? parameter: ${user.time_offline_rank}
Thank you so much!
Good morning. Is it possible to change to the old version of Streamelements?
I would like to add new payment methods but on the new version it is not possible.
On the website? And is this for the 'Tip' settings?
Yes, on the website. I only have options to pay through PayPal and I would like to add other options.
On the "old" version it was possible to add new payment methods
I only have that option as well; I would ask in the helpdesk channel that you use ie #helpdesk-twitch or #helpdesk-youtube ... make sure to include your location. I am only seeing PayPal on my and im US; but I do remeber there being other options. The helpdesk team will know.
Okay, thanks
ola peeps, was trying to push the latest YT sponsor name in here but something's off in the code it seems. Can someone help?
window.addEventListener('onEventReceived', function(obj) {
const listener = obj.detail.listener;
const event = obj.detail.event;
if (listener == 'sponsor-latest'){
//newMem();
var myname = obj["sponsor-latest"]["name"];
nameHolder.innerHTML = myname ;
};
});
Sure thing. ๐
Instead of obj["sponsor-latest"]["name"] try event.name
Thanks. It worked
I was checking out the Roll Credits widget and it works great! But I really wanted to have some extra elements on the roll, like Moderators, Hosts, and Raids. I am not savvy with code, does anyone have suggestions on how I could get those added to the widget?
ok guys, not sure if this is the right place but, im very new to all this messing about with html and css stuff, managed to do the following alert with my basic understanding, but when it came to the the sub/resub alerts i found that (i may be wrong with this) i cant have custom css and have it say "USER has just resubscribed for 6 months!" it just says "USER has just subscribed!" is there a way i can make it say "resubscribed for 6 months!" ?
nvm i got it
@rain vine, posting multiple links will result in not being able to post again.
@cunning nest, posting multiple links will result in not being able to post again.
Having some issue with the bot spam filters. Trying to create some regex to block some words but the test functionality just doesn't find any groups. i've compared it against an RE2 regex tester which is happy but this portal isn't
I'm guessing that the StreamElements bot uses JavaScript regular expressions.
Try using this website to test your regex, and choose "ECMAScript (JavaScript)" on the left:
https://regex101.com/
my regex works on that tool - but not on the tester
Oh, um, make sure that the group is on, that the user level is set to Regulars and that the "Regular expression" checkbox is ticked.
Maybe first try with a simple expression just to make sure that the reason it doesn't work is indeed the regex and not something else.
For example, try the expression "^a.c$" in the banned phrase, and enter "abc" as the test message.
Once that works, change to your regex and then test the messages.
If it works for a simple regex but not for what you enter, and the JavaScript regex tester does recognize it, then I don't know what's wrong so I can't help you.
its not matching on that kekw - was extensively testing some anti-slur regex in light of the hate raids.
maybe i over-tested.
SE uses Google RE2 syntax
Does anyone know if there's a way to add a Twitch user to an ongoing raffle via the StreamElements API?
Also, is there a way to modify the song request playlist?
Is there a mod for streamelements around atm? Someone reached out to me with an offer from streamelements and I would like to check the validity of this person (which I dont see anywhere under staff) I have a screen shot of the DM I can post
@rough pineYou can DM me.
@hardy walrus I sent a FR cause it wont let me message you
That's on your end. You need to enable it for the server.
idk where to ask, but is tehre a way for me to create an overlay for someone else and then transfer it to their streamelements account?
Follow these steps to grant managers/moderators access to your dashboard:
- Click on your channel name at the top of the dashboard
- Create a new invite at one of three access levels (Bot Supervisor, Editor, Full Control)
- Send this invite to a mod/manager to give them access to your dashboard. The link is one-time-use and expires after 72 hours if not accepted
Video tutorial: https://youtu.be/zl_h-ttZDF0
Have them make an editor invite.
Hello i contacted you yesterday about the Selements chatbot it was working fine yesterday after fixing it up and now this morning it is not working again
Heyy, someone with knowledge about API can help me? I want to translate a nightbot command to streamelements but don't know how to
Hi there, I'm trying to use the /overlays/{channel}/action/{action} API (https://dev.streamelements.com/docs/kappa/api.yaml/paths/~1overlays~1{channel}~1action~1{action}/put)
I've got my bearer token and channel id, sent the PUT request and got a 201 created response. However nothing happens, my activities are still unpaused and nothing has changed. Am I misunderstanding that this endpoint is for pausing, playing, muting and unmuting the activities on streamelements?
Many thanks for any support you could give. Thank you!
I'm using the boxed text overlay template by lk, and I'm SO close to finishing it. I spent 3 hours- editing the code I understood, designing stuff to my flavor lol, testing it out on and off but I've hit a dead end. The very last thing I need to do is get rid of this thing white border around the message boxes. It shows up both on OBS and in the overlay editor (a lot more on OBS), and I can't seem to figure out how to remove it. I tried scanning over the code and spotting things that could be it. After some troubleshooting, I haven't found the answer. Can someone please help me?
If I want to make a custom widget, can I do it in a local dev environment or do I have to do it in a custom overlay in the widget editor only?
I'm wanting to set up a Monthly Subscriber Goal for my overlay. I see how to go into the StreamElements dashboard and reset the goal progress manually (under Widget Data > Goals). However I'm wondering if I can write a script to automate this on the 1st of the month. Is there an API endpoint for manipulating that widget/goal data?
@native pecan
sick! thank you!
I was inspired by @young shard's presentation yesterday
heck yea! also note that console.log does work in the widget editor, it's how i debug most things :P
good to know! thanks! ๐๐พ
V21.8.5.765 I've been going in circles with installing this update for the last 36 mins LOL. I opened OBS > downloading update > installing > Buckle up! we're ready to go! message with launch OBS.live when I click finish > click FINISH........ and the process repeats. Ummmm Help please ๐ Edit to add.... my stream description or chat isn't in docks, and I have no chat screen in obs. I am live and having to log into twitch via cell phone to see chat.... also browser source isn't avail.
So im having a Massive problem trying to figure something out for a giveaway wheel. Using the wheel by pjonp to start but I'm still a little bit a noob when it comes to this stuff. I'd like to be able to start giveaways give them a timeframe to enter. While entering have it pull the names and put the twitch user in a spot on the wheel, and then have a function to spin it possibly remove that name after winning and spin again. or have it pull up random users from chat. @ruby thistle
heyo ๐ i wanted to ask if you guys would know of any way to make a smashgg merch store alert? I have a partnership with them currently and want an alert system through stream elements if possible. currently the service doesnt have an alert system set up but they have an open api.
hello guyz, was trying to display the all time YT sponsor count on a widget.
Can you confirm if the following code is correct??
window.addEventListener('onSessionUpdate', function (obj) {
const data = obj.detail.session;
var mycount = data["sponsor-total"]["count"];
nameHolder.innerHTML = mycount;
});
I feel like it will show only session count but I want the all time count instead. Can you help?
I'm not familiar with the YT side of SE, but according to the docs your code should work.
Hey there, is there a console so i can see any errors that occur during widget development?
You can use browser tools to do this (usually F12) and debug through the browser
When will the application for Oauth2 credentials will be available?
Unfortunately there is no ETA. At the moment you should use JWT Token for that
If they have a way to consult the information you want via API, you can code an alert using JS, CSS and HTML. You can use the Streamelements API documentation and the SE Overlay Editor documentation (both links on this channel title)
this seems familiar ๐คฃ .... are you using the "Chatter Wheel"? #widget-share message ... if so; the default raffle mode command is !wheelword word and users that type word in chat are added.
im sorry @elfin arch i had the other one and not chatter wheel I wound up finding it much later stayed up too dang long I appreciate your answer.
No problem ๐ Happy streaming
I made a custom widget. It's not showing any errors and it works fine in the browser, but it won't show up in OBS (but the other widgets do)... am I missing something?
the image is showing it working in the overlay url in my browser
Hello - I've added the official Gofundme alert and customised it accordingly to my overlays. However, I have no clue how to actually link it to the Gofundme page I need to? Please advise as I have a charity stream coming up next weekend. Thank you in advance!
did you happen to use optional Object chaining (like a.b?.c) or replaceAll() ? i know that OBS doesn't like those.
I've not messed with any code OR brought it over to OBS yet. I'm just trying to figure out how to pair the overlay itself with the fundraiser page I want it to link to. The only options in the overlay editor are fonts and animations, ect. - I don't see any way to actually 'connect' it to a Gofundme.
oh no I did use optional chaining... ok I will refactor and try again ๐ thanks @elfin arch
@knotty ravine if that is the one you are using, right below that Emulate button is a "short-name" input, you get that from your goFundMe link:
Perfect! Thank you, I had no clue what the short name field was for.
Very helpful?
*!
We should add the optional chaining OBS issue to the documentation. I wonder what browser engine OBS uses.
is there a list of OBS quirks somewhere @elfin arch?
not that I am aware of; i just remember those because i've ran into those walls a couple times.
i find them in the OBS console when my code doesn't work, it's kinda a pain to do
There's an OBS console!? Ok perfect! ๐
- Right-click on your OBS desktop shortcut and open the Properties
- In the Target field, add the following to the very end:
--remote-debugging-port=40404(don't forget to add a space before the current path) - Open OBS (or restart if it was open)
- Open your web browser and type in:
localhost:40404 - Click on StreamElements - Activity feed
- Navigate to the Console tab
- Type the following into the console and hit enter:
store.customBot.removeCustomBotIntegration() - Try setting the custom bot name
- Remove the additional flag in step 2 from your shortcut properties.
^ that but stop at 5) ... and find your overlay in the list; it's a guessing game to figure out which is which ๐ ... add a console.log('THIS ONE!') at the top of your overlay code and it will help.
haha wow, thanks!
beleive it or not, i've worked with worse
also; you can check in the OBS Discord, there might be somewhere there that has a more complete list of the unsupported functions.
They will for sure be able to tell you the browser version it uses and that might help to reference back to compatibility
hahah; ya, that is the other one i mentioned above ๐คฃ
FACE PALM lol I didn't realize
well I learned a lot tonight ๐ thanks again
happy with my first ever custom widget
(version 1.0-beta)
haha; those are the 2 that catch me often. and ya; now know how to debug in OBS.
your screen shot looks clean. I love the color border. (you did spell color wrong tho ๐ )
haha I'm Canadian ๐ It's spelled the American way in my code tho!
and thanks ๐
I'm not a designer but I am a front-end dev
heheh; ya. i always have to mention that. Are you doing this for a person project or going to share it with the community share?
I was inspired by @young shard the other day so I want to make one and test it out on my streams and then hopefully share it and one day maybe i can be a guru too!
I still have to add all the fields for customization
ah ya. Zaytri is a front-end dev too i believe. Makes pretty widgets with like React code somehow.
Yeah I started out making my own React for this too but I thought it was overkill. Their featured chat bubbles widget is AWESOME tho
I forgot what pronouns they use so I'll stick to "they/their"
did you see the SE Stream on Wednesday? i think that was the featured widget.
yeah I happened to catch that stream during work. I'm so happy I did!
I rarely watch Twitch while I work
ya. i was working to but caught the VoD; it was a cool new thing they did.
anyways; what you have looks amazing and hope you share it once finished ๐ ... and of course if you have any questions with the field data feel free to ask .... it's pesky JSON and is a PITA
how to do that?