#dev-chat

1 messages ยท Page 59 of 1

mild cipher
#

window.innerWidth and window.innerHeight in the JS

kindred orchid
mild cipher
#

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

kindred orchid
#

I thought there would be something for this like widgetName

mild cipher
#

Are you trying to set it dynamically?

#

Or are you just trying to making a specific size?

kindred orchid
#

a specific size

mild cipher
#

You can just set the size with the position settings in the side panel

weary drift
#

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?

kindred orchid
#

it's not that important btw but would would be better than the default dimensions SE sets

mild cipher
#

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.

kindred orchid
weary drift
#

anybody?

reef crow
#

I'm not seeing any documentation on this but can you set up a webhook to get the same data from the REST API?

ocean minnow
#

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?

sonic mulch
#

Does the session subscriber data count the subs during offline time? When the stream started it shows 1 instead of 0 for some reason.

sonic mulch
#

Nvm I just found out it does

split thorn
#

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

reef crow
#

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?

noble lily
#

How do you share a Overlay that you have created in Streamelements

uneven oxideBOT
#

@noble lily โคต๏ธ

Follow these steps to grant managers/moderators access to your dashboard:

  1. Click on your channel name at the top of the dashboard
  2. Create a new invite at one of three access levels (Bot Supervisor, Editor, Full Control)
  3. 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

young shard
#

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?

noble lily
hardy walrus
#

That's limited to things placed in #widget-share or brands/organizations/certain people.

#

Everyone else has to use the invite method.

sick plinth
#

is it possible to add a whitelist to a node twitch bot? so that i can control who can/cant use certain commands

tribal zenith
young shard
tribal zenith
tribal zenith
sick plinth
#

i see

#

thanks for your input

sonic mulch
#

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?

hardy slate
#

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

tribal zenith
tribal zenith
tribal zenith
sonic mulch
#

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

sonic mulch
tribal zenith
#

but they could of course also be wrong

sonic mulch
#

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?

tribal zenith
#

not really. Maybe @viral patrol but he is probably very busy

sonic mulch
#

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

tribal zenith
#

the recents are limited to 25 entries and if all of them are regular subs, you wouldn't have any data on gifts

sonic mulch
#

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

tribal zenith
#

That wouldn't help for custom widgets, but if it's just to display gifter info you could also use a label in addition

sonic mulch
#

Label in addition?

#

Sorry I'm new to this concept

tribal zenith
#

the overlay editor has some labels you could use in addition to the custom widget

sonic mulch
#

Is it possible to code their behavior such as fade in/fade out?

tribal zenith
#

I think they just have settings for font styling, but not for animations or custom css

sonic mulch
#

I'll check it out tomorrow. Thank you very much : D

tribal zenith
#

np

old dune
#

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"

mighty saddle
tribal zenith
#

it's a perk, but shouldn't be the motivation to become a code-guru

mighty saddle
sonic mulch
#

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

old dune
#

oh thank you!! i'lll give that a try

tribal zenith
#

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

old dune
#

Thank you @tribal zenith ! Should I put that right in to JS?

tribal zenith
#

do you have enough knowledge to read the result from the console?

old dune
#

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

tribal zenith
#

I just copy&pasted the original code, so there shouldn't be any differences ๐Ÿ˜„

old dune
#

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

tribal zenith
#
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

old dune
#

sorry, new to all of this trouble shootin. Where should I access the console to read the data log?

tribal zenith
#

Ctrl + Shift + i in Chrome

#

or F12 and then in the console tab

split thorn
tribal zenith
old dune
tribal zenith
#

does the issue happen on live events or if you load the overlay initially?

#

or both ๐Ÿ˜„

old dune
#

i believe just live

tribal zenith
#

for direct gifts or as part of community gifts?

old dune
#

community. When somoeone gifts a sub, it just says that the person who claimed it has subscribed, not that the person gifted the sub

tribal zenith
#

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

old dune
#

okay, I will try that!! thank you so much for all of your help @tribal zenith

tribal zenith
pulsar willow
#

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!

old dune
#

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! ๐Ÿ™‚

tribal zenith
pulsar willow
pulsar willow
clear current
#

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 ๐Ÿ™‚

clear current
tribal zenith
clear current
#

I hope this makes sense, I'm currently trying to learn how this works in StreamElements

wooden herald
#

Is there a way to override the sub goal on all overlays at once?

tribal zenith
tribal zenith
tribal zenith
# clear current Yeah exactly

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 ๐Ÿ˜„

clear current
split thorn
tribal zenith
clear current
tribal zenith
clear current
hollow ledge
#

Did $eval get taken away on commands?

hardy walrus
#

Never existed

hollow ledge
#

Oh, must have been imported command. No math commands at all with SE? ๐Ÿ˜ฆ

hardy walrus
#

Simple basic ones are possible with a 3rd party api.

hollow ledge
#

Do you have a link to an API for example?

hardy walrus
#

Gimme a sec while I find the link

hollow ledge
#

Thx!

hardy walrus
#

${customapi.https://twitch.center/customapi/math?expr=******************}

#

Everything in the last part is where the variables/numbers would go.

hollow ledge
#

thx!

#

Damn, doesn't look like you can send use a SE variable in that.

hardy walrus
#

Oh yes you can.

#

Just have to do very carefully.

hollow ledge
#

I see that actually now, just got it xD

#

Thank you again! Appreciate it

sonic mulch
#

Is there an endpoint to get the amount of gifted subs gifted by a specific user?

hardy walrus
#

Definitely not something we have out of box a doubt there's something from twitch's end anyways.

rose brook
#

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.

indigo flume
#

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

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.

indigo flume
#

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

rose brook
#

Ahhh right ok! That makes sense. Thank you xx

bold coral
#

Quarterly question time: Any word on SE.API OAuth applications opening up again?

hardy walrus
#

No ETA though we're looking forward to "reopening" in the not so far future @bold coral

slow matrix
#

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

ocean minnow
#

Hi hello, how do i share an overlay ive made? xD

ocean minnow
#

ive tried https://streamelements.com/dashboard/overlays/share/<editor code> but that just logs me out of SE

broken coyote
ocean minnow
# broken coyote 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.

hardy walrus
grizzled cradle
slow matrix
#

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

broken coyote
#

oO your having all kinds of problems

frank grotto
#

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 BabyRage)

slow matrix
#

My guess is it's something to do with the conversion

frank grotto
#

but the bits are converted correctly

#

it's just the subs that are off

#

by a lot

slow matrix
#

how is it being converted? static value? Because subs cost different amount in different places

#

could also be due to decimals?

frank grotto
#

yes it has a section where i put the current usd/eur

frank grotto
slow matrix
#

I mean, sure

frank grotto
#

if it's not a problem ofc

slow matrix
#

yeah, but not promising anything, I have things to do ๐Ÿ˜‰

frank grotto
#

yeah don't worry, when you have time

#

can i send it in your pm?

slow matrix
#

sure go ahead

supple zealot
#

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 rarepepe

#

Best i can do to not be muted is Input prefix Mike Output Hello Mike Input prefix Output Hello RandomChatter

rose brook
rose brook
#

^ You can ignore that. I've figured it out ๐Ÿ™‚

plucky fog
#

Hello, I hope you are well, someone can tell me how I can share the overlays that I have made?

elfin arch
elfin arch
#

@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;

")}

elder iron
#

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)?

vale crypt
#

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)

uneven oxideBOT
#

@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

vale crypt
elder iron
elfin arch
#

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

elder iron
elfin arch
#

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 ๐Ÿ™‚

elder iron
# elfin arch what do you need the text file for?

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.

elfin arch
#

Are you exporting this data to another program? or is this just for a visual on your stream?

elder iron
#

Just a visual

elfin arch
#

Then i think you'll you just want it as a custom Widget/Overlay

elder iron
#

Yes ๐Ÿ˜€

#

Do you know where I can find the information I need to do it in CSS?

elfin arch
#

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

elder iron
# elfin arch Do you know 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 ๐Ÿ˜„

hollow ledge
#

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

elder iron
#

Thank you tho for helping me out @elfin arch

elfin arch
tribal zenith
#

isn't a label configurable enough?

elder iron
elder iron
#

What should I put into HTML?

kindred orchid
#

@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

untold cypress
#

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?

hardy walrus
#

@untold cypress gimme a sec.

#

You'd have to manually adjust each session but I've got something to work.

untold cypress
#

ok cool. yeah i could have the broadcaster do that

hardy walrus
#

${customapi.https://twitch.center/customapi/math?expr=${channel.subs}-NUMBEROFSUBSATBEGINNING}

#

Replacing that with the sub count before start.

untold cypress
#

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.

hardy walrus
#

You'd need an api to parse it as or doesn't natively do that.

#

It simply spits back what it's asked for.

untold cypress
#

ah

#

is there a streamelements api manual?

hardy walrus
#

Outside of the docs linked in the channel topic anything you'd need to parse specifics is entirely managed on the server's end.

untold cypress
#

sorry im a dunce, where's the channel topic

#

oh n/m i see it

#

thanks so much sudo!

winter spruce
#

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

hollow ledge
#

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?

low idol
#

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

sacred badger
#

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

gaunt bridge
#

Hey does anyone know if there's a way to do custom cooldown messages for commands? Or do I have to custom code it

elfin arch
#

๐Ÿ‘ ...only minor thing is the 'x' for follower. but great example! ๐Ÿ’ฏ better then the default code in the 'custom widget'.

kindred orchid
#

Will fix it

lost zealot
#

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 โค๏ธ

hardy walrus
#

@lost zealot not possible due to security reasons.

lost zealot
gaunt bridge
tribal zenith
gaunt bridge
#

The fact Stream Elements doesn't have a cooldown message in any form really perplexes me

tribal zenith
#

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

gaunt bridge
#

When you say query my server, you mean doing an API call to Stream Elements?

tribal zenith
#

No, external

gaunt bridge
#

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

tribal zenith
#

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

gaunt bridge
#

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

elfin arch
#

@gaunt bridge .... just to be clear; there is a built in cooldown

gaunt bridge
#

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

elfin arch
#

oohh... ah.. ya. sorry for jumping in on that then.

gaunt bridge
#

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

elfin arch
#

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.

gaunt bridge
hardy walrus
#

But that requires the command to be done via whisper.

exotic mica
#

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)

pulsar willow
exotic mica
#

anyone knows if i can use regular expressions in spam-filter?

median halo
#

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.

median halo
#

there is supposed to be a value field... but it's not there and thus not allowing me to do what I need.

peak lynx
#

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 /.

pulsar ridge
#

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

tranquil steeple
pulsar willow
#

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

severe shell
pulsar willow
#

oki doki, will figure that out ๐Ÿ˜„

abstract solar
#

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. twitch

pulsar willow
tranquil steeple
abstract solar
severe shell
sonic pulsar
#

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

severe shell
#

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
nova crest
#

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.

severe shell
scarlet badger
#

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

elder ingot
#

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

severe shell
severe shell
# scarlet badger 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

scarlet badger
#

I deleted some sentences and it works but when I add them back it doesn't

abstract solar
elder ingot
edgy agate
#

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)

edgy agate
#

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.

tribal zenith
hollow ledge
edgy agate
supple zealot
#

Are there logical function?

tribal zenith
tribal zenith
tribal zenith
hollow ledge
#

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

tribal zenith
#

by widget you mean something from #widget-share or the default label?

hollow ledge
#

Default Label Bot Counter

#

oh

quartz coral
#

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.

edgy agate
#

Yes, there is a missing semicolon, but just pretend its there ๐Ÿ˜›

tribal zenith
#

it's a basic race-condition. By the time you try to set the label, the store hasn't answered yet

edgy agate
#

oh, ok. I don't claim to be an expert, just a hobbyist coder.

so how do I fix it?

tribal zenith
#

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

edgy agate
#

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 ๐Ÿ˜›

tribal zenith
#

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

edgy agate
#

ok cool. definite thanks ๐Ÿ™‚
You are an awesome person ๐Ÿ™‚

final gyro
#

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?

uneven oxideBOT
final gyro
gloomy kestrel
#

No problem

frail siren
#

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?

split mountain
#

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!

edgy agate
#

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.

severe shell
severe shell
edgy agate
#

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 ๐Ÿ˜›

frail siren
tribal zenith
tribal zenith
slate badger
#

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.

tribal zenith
tribal zenith
regal plaza
#

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

tribal zenith
regal plaza
#

Oukay ๐Ÿ˜ข

scarlet badger
#

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?

willow canyon
#

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

obsidian anchor
#

how add chat in your overly

prisma meteor
#

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

blissful stone
#

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?

manic verge
#

How to create a streamlabs app for using its api services

undone cedar
#

Is there a way how to resize everthing at once or did i just mess up my whole overly?

hot pumice
#

Just like it does with the "Twitter" module
There is a Twitter module? o_o

noble lily
green pollen
#

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?

plucky obsidian
#

Hello guys, the variable section doesn't appear to me. Can someone help me?

burnt yoke
#

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.

burnt yoke
#

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.

gloomy kestrel
gloomy kestrel
elfin arch
# burnt yoke Not sure which channel to ask this in, but I am working on capturing & parsing a...

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.

manic verge
#

how to create streamelements app to use api service?

hardy walrus
#

What do you mean?

manic verge
#

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

hardy walrus
#

That is currently closed atm. We do plan on reopening in the near future.

manic verge
#

ohh ok

#

How to get notified when it get opens?

slate badger
#

Do gifted subs get added to the session sub total?

#

i'm reffering to this: data["subscriber-session"]["count"]

burnt yoke
# elfin arch This is probably the best channel ๐Ÿ™‚ .... but I have never attempted to or seen ...

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. ๐Ÿค” ๐Ÿ˜•

nimble copper
#

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 ๐Ÿ™‚

slate badger
#

How long does it take for submitted widgets to be approved?

severe shell
tiny wolf
#

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)

flat parrot
#

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! ๐Ÿ™‚

winged shuttle
#

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 !

elfin arch
winged shuttle
#

Well i don't know, got it from youtube

elfin arch
#

i've seen 'sideways chat' mentioned before; but i've never seen the widget.

elfin arch
#

it's on my list to 'port' to Trovo ... but i can't find it in the server ๐Ÿค”

winged shuttle
#

Sorry for the link, i hope it's the good one

elfin arch
#

๐Ÿคฃ ... it's all good. that is a long link.

winged shuttle
#

Can't share the video itself but yeah : "Create Minimal Overlay" by Nutty ๐Ÿ™‚

#

The link is in description

elfin arch
#

i'll fire it up and take a look. i've heard this mentioned but didn't see it in #widget-share

hardy walrus
#

Might just be a hijacked one OpieOP

elfin arch
#

๐Ÿคฃ @broken coyote ^ "the Mr. Beast of widgets" @ 10:20

winged shuttle
#

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

winged shuttle
elfin arch
#

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 ๐Ÿ™‚

hardy walrus
#

Yeah. It's someone who has code sharing perms as the link is different.

winged shuttle
#

Do you know how to force the fade out / message ?

elfin arch
#

it appears too be working... 1 sec...

winged shuttle
#

well well, thanks you then ! For me it wasn't working, lemme try again...

elfin arch
#

ya; give it another shot. the messages are fading for me

winged shuttle
#

Ok, seems it doesn't work when Show nickname every msg is on YES NO

#

Can you try that ?

#

sorry, on NO

elfin arch
#

yup yup... 1 sec

#

ooo; that is adding repeat messages together

winged shuttle
#

yeah, that's a little weakness i guess, but fine

elfin arch
winged shuttle
#

Activating that prevent the animation out

#

even if a different account writes in between

elfin arch
#

looking into the code leads here on line 174:

winged shuttle
#

That's where am lost ๐Ÿ˜„

#

Can be fixed ?

elfin arch
#

like remove the user messages one by one?

winged shuttle
#

yeah, remove the ones send at X seconds

#

but keeping that display of the nickname once for chained messages

elfin arch
winged shuttle
#

fantastic !

#

how ?

#

๐Ÿ˜„ (you rock)

elfin arch
#

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) {

winged shuttle
#

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 ๐Ÿ™‚

elfin arch
#

๐Ÿ™‚ i've heard this one mentioned a few times but never knew where it came from.

winged shuttle
#

Nutty said it was developed for him basically

#

Is there a way to change the animation IN, like to a Fade In ?

elfin arch
#

...oh... there is no animation In options

winged shuttle
#

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 !

elfin arch
#

ya no problem.

elfin arch
swift mango
elfin arch
#

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.

swift mango
#

๐Ÿ‰

#

interesting

#

I had found a link somewhere with a google form for submitting a widget

#

is that also abandoned?

elfin arch
swift mango
#

ok, so I guess I'll use that then

elfin arch
#

the header there ^ for submit link

swift mango
#

there are widgets there, but not very many

elfin arch
#

the active widgets are in #widget-share ... ^ see the header in that channel*

swift mango
#

ok, thank you for clarifying, I will proceed and use the form then once I finish it ๐Ÿ˜„

elfin arch
#

๐Ÿ™‚ 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 ๐Ÿ™‚

swift mango
#

is there a way I can share my widget with someone without submitting it?

#

by just sending them an URL or something?

hardy walrus
#

Nope.

swift mango
hardy walrus
#

That's limited to certain approved individuals/brands.

swift mango
#

but I tried and it didn't work

#

oh

elfin arch
#

once you create a widget and submit it to the widget share; you may have that ability ๐Ÿ˜‰

swift mango
#

๐Ÿ˜

#

thank you

elfin arch
#

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

slate badger
#

How long does it take to be accepted to the widget share? I submitted a few days ago

pulsar willow
#

how do I change to Pounds and not USD

#

???

#

im using the se hype progress bar widget

tranquil steeple
slate badger
tranquil steeple
slate badger
#

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)

whole mural
#

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

slate badger
#

Silly question, have you clicked Save in the top right?

whole mural
kindred orchid
#

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

whole mural
# kindred orchid ` $('#Subcount').text(data["subscriber-{{goalrange}}"]["count"] + '/' + fieldDat...

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?
kindred orchid
#

Yeah sorry I meant in the JS

#

mine is at 40 - 43 but yeah it's the same

#

just replace the 4 lines

whole mural
#

awesome, thanks

kindred orchid
#

my pleasure

whole mural
#

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

kindred orchid
#

in the CSS edit left: 12px; of #current and #follower to be something higher like 40px @whole mural

whole mural
#

awesome, thanks

kindred orchid
#

no problem

mystic locust
#

hey can i get help with programing something?

modest shard
#

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

pulsar willow
#

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;

};

broken coyote
nova hedge
#

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?

elfin arch
# pulsar willow Hi brainiacs, I've been thinking of a way to have large numbers shortened in SE....

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;

};

floral fable
#

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

elfin arch
#

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.

floral fable
#

In order to test a widget, do i need to copy the widget.json content in both of those tabs?

elfin arch
#

then if you want to share your settings with someone or import someone elses settings, then use the DATA

floral fable
#

ooooh ok

#

should i erase the content in DATA every time i upload a new custom widget? Or it doesn't matter?

elfin arch
#

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

floral fable
#

i see, thank you very much @elfin arch !

kindred orchid
modest shard
slate badger
#

let data = obj["detail"]["session"]["data"];
let followersThisSession = data["follower-session"]["count"]

#

You can do that on widget load

bitter abyss
#

Hey I wanna submit an update to my released widget Neohud, can someone tell me where I can submit it?

mystic locust
#

hey can i get help for something

hardy walrus
#

@viral patrol since I didn't ping coxDerp

mystic locust
#

can i get some help with programming something in streamelements

slate badger
#

@mystic locust what's the issue?

mystic locust
# slate badger <@!289170601673752576> 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

mystic locust
#

exclude the red i just put that there to make it better to see

slate badger
#

Have you got some html/css already?

mystic locust
#

no i dont know how to do that unfortunately so I was wondering if you guys can help

slate badger
#

Oh, I can't post a link, i'll drop you a dm

mystic locust
#

ok

hardy walrus
#

@slate badger link is okay now. It just got bit on initial post.

slate badger
#

Do I need to request permission to post links or something? Or does that always happen?

hardy walrus
#

Our bot is overzealous and after the initial yeet it either denies or allows. If something fine is denied we switch it to approved.

slate badger
#

Ah ok

tacit epoch
#

hey, just a quick question: Is it possible to trigger a chat command from an alert with delay?

pulsar willow
pulsar willow
#

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

#

?

pulsar willow
#

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

random trench
#

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?

random trench
pulsar willow
#

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

onyx elm
#

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.

coral cape
#

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?

slate badger
#

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)

random trench
#

do i just hit close giveaway when im ready to pick a winner for my giveaway on stream elements or no?

coral cape
#

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

slate badger
#

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

coral cape
#

okay so I have a bot, I want the bot to trigger events

slate badger
#

Then you need to use the Twitch API to do that

coral cape
#

does twitch have custom event? Because I don't actually want to trigger new sub/new follower, I just want dice to roll

slate badger
#

I'm missing something here. I don't get when you want dice to roll?

coral cape
#

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

slate badger
#

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

coral cape
#

oof

slate badger
#

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?

coral cape
#

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

slate badger
#

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)

coral cape
#

well if you hear anything please do ping/dm me

tribal zenith
tribal zenith
echo scaffold
#

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!

coral cape
primal burrow
#

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

flat parrot
# flat parrot Hi team - I saw someone ask a bit ago about OAuth Apps but no update, I just wan...

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 ๐Ÿ™‚

young saffron
#

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?

fossil quarry
#

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?

pseudo siren
#

^ left

hardy walrus
#

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

whole mural
#

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

elfin arch
#

and the comma at end of line 6 might catch ya.

whole mural
#

Thanks

next helm
#

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

next helm
#

Anyone home ? ๐Ÿ˜„

verbal oasis
#

hi

pulsar willow
#

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

pulsar kernel
#

Does anyone know how to change the bar colors in contests widgets?

river oracle
#

Has anyone activated / deactivated layers within the streamelements live overlay with a streamdeck?

tranquil steeple
civic ginkgo
#

Hello, does streamelement's have eval? or anything to replace eval? (custom chat command)

wraith tinsel
#

how would one install an older version of streamelements

sudden elbow
#

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

quartz drift
#

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

thorn bough
#

Hello, how do I change my email in streamelements?

tawny current
#

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

hardy walrus
#

@tawny current it is currently closed atm with plans to reopen hopefully soonish.

tawny current
#

I'd love to get on the waiting list and start talking with you as soon as possible @hardy walrus <3.

hardy walrus
#

There isn't one unfortunately. Simply keep an eye out here.

pulsar willow
hardy walrus
#

@pulsar willow Apologies. Bot didn't like that.

#

In short no can do eval nor planned atm.

pulsar willow
#

Ah okay. Hopefully the ability too is added at some point. I guess we will stick with NB for now. Thank you!

hardy walrus
#

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.

pulsar willow
#

Yea it's understandable for sure. I appreciate the info!

slate badger
marble canyon
#

Hey guys,
i install websocket for OBS but in the Tool section i cant find it. Any ideas?

fresh oxide
#

Hello does anyone have any idea on how I can get 7TV emotes to show on the chatbox?

open raptor
#

Does anyone know why streamelements dashboard doesnt work with Firefox?

uneven oxideBOT
#

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

open raptor
#

thx. is there any intention on making it work with other browswers or just chrome?

hardy walrus
#

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.

cursive tinsel
#

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

glossy path
#

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!

young shard
glossy path
#

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

tranquil steeple
#

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?

keen iron
#

how i add to a user watchtime?

uneven oxideBOT
#

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

rugged island
#

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?

pulsar willow
haughty rampart
#

hello! does anyone here have a stat rotator (likes, follows, share, etc.) widget for fb? I only see widgets like this for twitch

tired rock
#

hi guys

#

What is a JWT TOKEN?

median pelican
#

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!

real dune
#

@viral patrol ๐Ÿ‘†

viral patrol
#

ATM I am not around PC. I will be able to look into that tomorrow's morning

raven grove
#

Im new to SE api and I was wondering is there anyway to get the streamelements media request data?

uncut harness
#

StreamElements OAuth2 Application Form is closed?

late carbon
#

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?

hot forum
#

@viral patrol There is a new version of the auto poll widget ? I sent you dm aswell. Thanks!

open needle
#

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?

late carbon
#

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.

elfin arch
viral patrol
late carbon
elfin arch
#

ya. that means your link isn't working. DM me the link you are using in the command.

median pelican
#

@viral patrol gosh amazing thanks so much for that!!

grave hawk
#

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

hot forum
#

@viral patrol About the auto poll widget. Any update ?

shut thicket
#

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

fading oxide
#

Is it possible to put a custom url into a streamelements overlay?

hardy walrus
#

No

foggy bone
#

(about the api) can i access redemptions from a store i have editor on the SE by just having my own jwt?

severe shell
#

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.

burnt kindle
#

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)

willow canyon
#

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

late carbon
#

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?

proud marlin
#

Hi all, so i wanna make a widget that shows your present and future Community challenges, where would i start?

next radish
#

is there a way to get the train count data?

scarlet agate
#

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?

flint cliff
#

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.

uneven oxideBOT
#

@sweet ibex, posting multiple links will result in not being able to post again.

haughty rampart
#

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!

gray sand
#

Hi! not sure if this is the right chat but I have a question with my campaign goals for Riad. Thank you

young shard
#

is this for a StreamElements widget?

young shard
#

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

hollow glade
#

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?

young shard
# hollow glade Hey guys! I'm trying to add a font picker field into my widget, I tried figuring...

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">
hollow glade
#

That didn't work

#

All my fields are gone now

proper wolf
#

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!

hollow glade
#

Nvm I fixed it

hollow glade
young shard
hollow glade
#

Ok I messed something up haha

hollow glade
#

If I was going to do a text size option, what kind of field would I put in? Slider or something else?

young shard
hollow glade
#

Oh ok Iโ€™ll try that tomorrow thank you!

young shard
#

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

floral blade
#

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.

royal spoke
#

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 ๐Ÿ˜…
sturdy bay
#

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

hardy walrus
#

You'd need a custom widget for that for sure.

sturdy bay
#

:/ thank you

flint cliff
#

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

lunar beacon
#

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 ;
};
});

late carbon
#

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

late carbon
#

I've only ever seen maybe like 5 different people with coloured name in here

late carbon
#

wtf is going on in this channel? for some reason some people are showing up like 2-3 times

young shard
mighty bison
#

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 ??

uneven oxideBOT
#

@whole storm, posting multiple links will result in not being able to post again.

flint cliff
fringe sentinel
#

Hello, I have problem with donation goal, I would like change $ to CZK, can you help me pls?

modern pawn
#

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

young shard
#

symbol protection tends to work well for ASCII art

jovial girder
#

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

modern pawn
#

symbol protection blocks harmless stuff too

jovial girder
tender stream
#

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)

elfin arch
quiet eagle
#

Is it possible to have a "Contest" where viewers can "bet" on multiple options.

boreal nest
#

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.

tender stream
#

I guess I posted this in the wrong spot then? I just didn't see a good place to put this question..

elfin arch
#

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.

elfin arch
tender stream
#

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?

elfin arch
#

With the Alert Box, i don't believe you can do both; if you made a custom one then you could.

elfin arch
#

After more than 5 followers and more than 1 sub; cat will appear. Happens 1 time.

tranquil steeple
floral fable
#

hello! I have some questions about chat commands, is this the right channel to ask about it?

naive sorrel
#

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)?

heady blade
#

Hi! Is there a way to redeem an item from the store through the api?

opaque wasp
#

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?
viral patrol
opaque wasp
inland rune
#

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?

slate badger
#

@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

viral patrol
#

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

inland rune
slate badger
#

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

naive sorrel
#

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.

granite raptor
#

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 ๐Ÿ˜ฆ )

naive sorrel
pulsar willow
#

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?

naive sorrel
# pulsar willow hi, is there any way that i can somehow get the StreamElements bot to write to t...

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.

half linden
severe shell
# granite raptor Hi, I would like to get value from specific command and use the string in javasc...

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

elfin arch
uneven oxideBOT
#

@rich lagoon, posting multiple links will result in not being able to post again.

uneven oxideBOT
#

@pulsar willow, posting multiple links will result in not being able to post again.

uneven oxideBOT
#

@rich radish, posting multiple links will result in not being able to post again.

uneven oxideBOT
#

@hardy sleet, posting multiple links will result in not being able to post again.

lofty cape
#

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!

cobalt niche
#

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

uneven oxideBOT
#

@sleek quarry, posting multiple links will result in not being able to post again.

naive sorrel
wintry quiver
#

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;
}
tender stream
#

Does anyone know a way I could hire a widget maker?? Or is there anyone here that knows code well enough?

elfin arch
#

and for widget commissions; you can check in #art-marketplace. I know that @young shard posted recently

wooden ivy
#

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

elfin arch
wooden ivy
#

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?

elfin arch
#

are you trying to get the Tier for the person that gifted the sub?

#

or the Tier that they gifted to the new sub?

wooden ivy
#

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

elfin arch
#

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

wooden ivy
#

so from that event I couldn't get the tier of the "sender", only their name?

elfin arch
#

correct; the 'sender' object for a gift is the 'tier' that they are gifting to others and not their actual tier

wooden ivy
#

okay. Just trying to avoid making a Twitch API call if possible

elfin arch
#

So if a Prime user gifts a T3 to another user, the gift object would say tier = 3000

wooden ivy
#

right

#

I know that much, was just hoping maybe more info about the gifter was hidden somewhere

#

instead of just their name

elfin arch
#

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..."

wooden ivy
#

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

elfin arch
#

๐Ÿค” .... 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

wooden ivy
#

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

elfin arch
#

take a look through reboot0's wrappers; it could exist somewhere in the obj; but it's nothing i've dug into or used.

wooden ivy
#

ok looking at this now, thanks for the link

foggy gulch
#

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?

wooden ivy
#

@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?

hardy walrus
#

Incrementally add until you get a 413 response blobthinksmart

elfin arch
wooden ivy
#

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

elfin arch
#

are you using your own client?

wooden ivy
#

I'm running it through streamelements front end

#

I have my client-id registered if that's what you mean

elfin arch
#

try with score channel:read:subscriptions

wooden ivy
#

still 401

#

well I just replaced the other scope, didn't include both

#

I'm just changing the scope via tokengen btw

elfin arch
#

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

wooden ivy
#

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?

elfin arch
#

Correct; the USER would have to accept the permission for that endpoint.

wooden ivy
#

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

elfin arch
#

they say it'll be turned off in Feb next year.

wooden ivy
#

thanks!

elfin arch
wooden ivy
#

that's the endpoint I'm using now

elfin arch
#

https://api.twitch.tv/helix/subscriptions?broadcaster_id=xxxx&user_id=xxxxxx

wooden ivy
#

OHHH

#

Nice!

#

I'll try that now

#

GOT IT!

#

You rock!

elfin arch
#

niiice!

wooden ivy
#

now one more question (so sorry)

#

wait

#

nvm I think I'm good

#

lol

elfin arch
#

๐Ÿคฃ that's a an easy question

wooden ivy
#

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

elfin arch
#

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.

wooden ivy
#

ah okay

#

for now I guess I'll just use the static token and see how it goes?

elfin arch
#

.... eventually they will be hourly; they just don't enforce it.

wooden ivy
#

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

elfin arch
wooden ivy
#

your input has been invaluable!

elfin arch
#

No problem; best of luck ๐Ÿ™‚ and if you have any more questions feel free to ask!

velvet cradle
#

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.

late carbon
#

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?

late carbon
elfin arch
#

@earnest steeple bumping to help find this in the future; i hid it well ๐Ÿคฃ for the JSON object levels

earnest steeple
#

Ty

#

@elfin arch unfortunately the domain is down

#

so i don't think this is an option anymore

elfin arch
#

mine or yours?

hardy walrus
#

@earnest steeple Yeah... sorry bout that greekyikes

earnest steeple
pulsar willow
# velvet cradle Hi! I'm SUPER new... to all of this... but I'm determined... I want to make a DB...

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! ๐Ÿฅณ

GitHub

Contribute to StreamElements/widgets development by creating an account on GitHub.

arctic cobalt
#

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!

lofty cape
#

Is there anyway to have data (like most recent follower) saved to a text file on the client's machine?

earnest steeple
#

how do I post questions based on api without triggering the bot?

gilded obsidian
#

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?

hexed vector
#

Hello. Is it possible to access to more info about the contest with the API? Such as the users participating ant their individual bets.

gaunt pulsar
#

Random question is it possible to write to field data? I know you can read it foo = fieldData["bar"];...

abstract solar
#

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}

fickle lake
#

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.

elfin arch
fickle lake
#

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

elfin arch
#

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.

fickle lake
#

Okay, thanks

lunar beacon
#

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 ;
};
});

naive sorrel
viral patrol
lunar beacon
nocturne lantern
#

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?

rich wren
#

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!" ?

rich wren
#

nvm i got it

uneven oxideBOT
#

@rain vine, posting multiple links will result in not being able to post again.

uneven oxideBOT
#

@cunning nest, posting multiple links will result in not being able to post again.

winter stone
#

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

naive sorrel
winter stone
#

my regex works on that tool - but not on the tester

naive sorrel
#

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.

winter stone
#

its not matching on that kekw - was extensively testing some anti-slur regex in light of the hate raids.

#

maybe i over-tested.

mild cipher
#

SE uses Google RE2 syntax

naive sorrel
#

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?

rough pine
#

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

hardy walrus
#

@rough pineYou can DM me.

rough pine
#

@hardy walrus I sent a FR cause it wont let me message you

hardy walrus
#

That's on your end. You need to enable it for the server.

uneven skiff
#

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?

uneven oxideBOT
#

Follow these steps to grant managers/moderators access to your dashboard:

  1. Click on your channel name at the top of the dashboard
  2. Create a new invite at one of three access levels (Bot Supervisor, Editor, Full Control)
  3. 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

hardy walrus
#

Have them make an editor invite.

uneven skiff
#

.... sorry my hands were in the wrong place lmao

#

oh thanks!

sharp junco
#

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

opaque echo
#

Heyy, someone with knowledge about API can help me? I want to translate a nightbot command to streamelements but don't know how to

west forge
#

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!

cunning steeple
#

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?

native pecan
#

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?

uncut rain
#

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?

tranquil steeple
#

@native pecan

native pecan
young shard
#

heck yea! also note that console.log does work in the widget editor, it's how i debug most things :P

native pecan
#

good to know! thanks! ๐Ÿ™Œ๐Ÿพ

cobalt niche
#

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.

gilded reef
#

i cant get my app to switch back to english.

#

how do i reset the wholw thing

royal warren
#

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

fluid jasper
#

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.

lunar beacon
#

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?

tranquil steeple
#

I'm not familiar with the YT side of SE, but according to the docs your code should work.

loud oxide
#

Hey there, is there a console so i can see any errors that occur during widget development?

slate badger
#

You can use browser tools to do this (usually F12) and debug through the browser

manic verge
#

When will the application for Oauth2 credentials will be available?

severe shell
severe shell
elfin arch
royal warren
#

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.

elfin arch
native pecan
#

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

knotty ravine
#

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!

elfin arch
knotty ravine
#

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.

elfin arch
#

that was for the previous question @knotty ravine ๐Ÿ™‚

#

is this the one you used?

native pecan
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:

knotty ravine
#

Very helpful?

#

*!

native pecan
#

We should add the optional chaining OBS issue to the documentation. I wonder what browser engine OBS uses.

native pecan
#

is there a list of OBS quirks somewhere @elfin arch?

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

native pecan
#

There's an OBS console!? Ok perfect! ๐Ÿ™‚

uneven oxideBOT
#
  1. Right-click on your OBS desktop shortcut and open the Properties
  2. 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)
  3. Open OBS (or restart if it was open)
  4. Open your web browser and type in: localhost:40404
  5. Click on StreamElements - Activity feed
  6. Navigate to the Console tab
  7. Type the following into the console and hit enter: store.customBot.removeCustomBotIntegration()
  8. Try setting the custom bot name
  9. Remove the additional flag in step 2 from your shortcut properties.
elfin arch
#

^ 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.

native pecan
#

haha wow, thanks!
beleive it or not, i've worked with worse

elfin arch
#

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

native pecan
#

ah it doesn't like replaceAll

#

I'll stick to es2015 and stay away from esNext

elfin arch
#

hahah; ya, that is the other one i mentioned above ๐Ÿคฃ

native pecan
#

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)

elfin arch
#

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 ๐Ÿ˜› )

native pecan
#

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

elfin arch
#

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?

native pecan
#

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

elfin arch
#

ah ya. Zaytri is a front-end dev too i believe. Makes pretty widgets with like React code somehow.

native pecan
#

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"

elfin arch
#

did you see the SE Stream on Wednesday? i think that was the featured widget.

native pecan
#

yeah I happened to catch that stream during work. I'm so happy I did!

#

I rarely watch Twitch while I work

elfin arch
#

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

native pecan
#

Actually, I did have a quesiton about that...
is there a way that one field checkbox disables another field or a group of fields? Or do I just have to code that myself with a custom button?

#

I also made a generate message button like Zaytri ๐Ÿ™‚