#dev-chat

1 messages Β· Page 63 of 1

feral nest
#

Does the alert box escape any quotes or similar in the {{message}} variable? I'm concerned that if I do const message = "{{message}}"; a person's message might include a ", ' or ` character, in which case no matter how I try to capture the variable their message could break out of the string bounds, and, worst case, inject whatever content they want into my overlay

#

... I just realised this is a dumb question because I can test it, brb

#

okay it looks like capturing the message in a ' or " string is safe, but capturing it in backticks (string templates) is unsafe

#

cool

elfin arch
terse crest
#

Okok I see you, bot MrDestructoid

#

^

elfin arch
feral nest
elfin arch
#

The hype bar / hypeboss bar color can't be changed inside of the SE editor ..... but lx shared with me a trick a while back . +@severe shell . It can be overridden in OBS when you import the source; OBS Custom CSS; add: ```css
.bit-boss-wrapper[data-status=healthy] .health-inner {
background: #ffa500;
}
.bit-boss-wrapper[data-status=medium] .health-inner {
background: #ff7034;
}
.bit-boss-wrapper[data-status=weak] .health-inner {
background: #8b0000;
}

adjust background colors as you need.
quiet kindle
#

Hello. I work for streamers who order overlays from me. I wanted to know if there is a way to export an overlay from my own SE account for them to import to theirs. This would be much more convenient than asking them for their code, etc.

hardy walrus
#

@quiet kindle as of right now there's 2 options though only 1 immediately

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

quiet kindle
#

Thanks a lot !

wheat jackal
#

I'm getting an error when I'm trying to replay a gifted sub (of 5) in dashboard/activity

arctic tiger
severe shell
#

Where it says G2Esports, you should put the account ID. Go to the same place you get your JWT and copy the Account ID

broken coyote
severe shell
jolly scroll
#

Hi there! Someone gifted 50 subs in my stream today, however the creditroll only shows 25. How can I fix this?

severe shell
jolly scroll
zealous basin
#

so I tired that linear wave @terse crest in css editor, it doesn't pop up a transparent name, just a big gray box with the linear wave name.

zealous basin
#

I just copy and pasted

terse crest
#

You supposed to adapt it for your needs, not just Ctrl-c Ctrl-v it

zealous basin
#

well yea.. obviously. I did the color frame portion, and keyframed it, but I can't figure out how to remove the background

wheat jackal
arctic tiger
wheat jackal
misty garden
#

I just imported my alerts over from Streamlabs with their custom CSS, but none of the images/webm videos display and the text just shows at the top of the screen. Are there standard adjustments that need to be made to the Streamlabs imported code to get it to talk to Streamelements assets?

#

This is what things are looking like straight from the Streamlabs side

sacred urchin
#

I am unable to view the tipping page, the image is what occurs, same goes for when i open up the actually tipping page

#

if anyone can help, it'd be appreciated

inner lagoon
#

I filled out the form to get the overlay share ability last week, any idea how long it takes to hear back?

inner lagoon
#

or alternatively, what i did when i imported my alerts over, is i just turned off the custom css and made adjustments to my alertbox with the streamelements UI until it looked the way i wanted it. your css looks standard where you can easily do that

opaque wasp
#

window.addEventListener('onWidgetLoad', async function (obj) { let data= obj["detail"]["session"]["data"]; lfollow = data["follower-latest"]["name"]; });
is returning the following error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'name')

But I'm 100% sure this was working yesterday. What's going on?

opaque wasp
elfin arch
opaque wasp
elfin arch
#

i dropped it in a widget real quick and your code works. are you using the overlay editor? only thing i notice is a missing declaration for lfollow (let) but that shouldn't cause any issue; are you using a Twitch account and in the Overlay editor?

#

is there a full console.log(obj["detail"]["session"]["data"]["follower-latest"]) Object for you?

opaque wasp
elfin arch
#

πŸ€” ... this is odd. maybe try to log out and log back in?

uneven oxideBOT
opaque wasp
#

The funny part is that I already did it using a link above in the chat, let me try again.

#

Still not working.

elfin arch
#

i'm confused; is that all of you code? are you sure that is the line causing the error? your code copy-pasta'd

#

as expected. no errors; shows last follower from session data

opaque wasp
#

After another logout-login it got back working

#

Idk want went on, thanks tho

elfin arch
#

no problem. really weird. thanks for the heads up if stuff starts erroring out randomly for people. 🀣

pulsar willow
#

@elfin arch Hello, thanks for your help. Turns out I can't 'post a link' because its one of those things where you go through the site & the URL doesn't change with it. To recreate how to get there please follow the URL & see the screenshot above πŸ™‚ https://streamelements.com/dashboard/themes

elfin arch
#

oh. haha. thanks. i didn't realize that was one of the ones in the gallery

pulsar willow
elfin arch
#

hahah. it's #2 on the new list; i should have checked. i'll give a look and see if i can find it.

pulsar willow
elfin arch
#

ahh ya. yours does look cooler. i'll see if it can be added. you want it always 4 places?

pulsar willow
#

My choice at any time would be great but 4 is a good starting point

elfin arch
#

alright @pulsar willow ... so this uses an external package "odometer"

elfin arch
#

make a copy/duplicate for the one that you have now.... just in case I mess it all up 🀣

#

basically; going to change a bunch of the code in it

pulsar willow
elfin arch
#

Nope; but there is some newer code and you'll have to remove a lot of the existing. so it might break or it might work

pulsar willow
#

LETS GO πŸ’ͺ

pulsar willow
#

Done

elfin arch
#

in the custom widget JS tab; delete everything after line 27:

#

and replace with that code.

pulsar willow
#

Where is the JS tab?

elfin arch
#

click on the widget; then Open Editor

pulsar willow
#

Here?

elfin arch
#

ya. click on the custom widget on the left; then it should say open editor (again on the left)

pulsar willow
#

No there

hardy walrus
#

Settings

pulsar willow
#

ok, got it, swapping the code now

elfin arch
#

then change DIGIT_FORMAT to just 'd' and set your MIN_INTERGER_LENGTH.... and 🀞

pulsar willow
#

Thats my line 45

elfin arch
#

find the diget format and min_int_length

pulsar willow
#

ok, found it

elfin arch
#

should be right in there somewhere

pulsar willow
elfin arch
#

yup yup. '(,ddd)' will do commas, like 1,394 and just 'd' will do just numbers, 1394

pulsar willow
#

I have this now but not change in OBS. Should I re-add the URL?

elfin arch
#

ya. because we made a new one (just in case it breaks) so new overlay link

pulsar willow
#

wait

#

I didn't save in the edtor

#

OK, now I have this, how can I get rid off the commas?

elfin arch
#

disregard last message; you edited original.

#

check what you set for the DIGIT_FORMAT again

pulsar willow
elfin arch
#

you either want '(,ddd)' for 1,000 or 'd' for 1000

pulsar willow
#

BOOM You did it! This is great!!!

#

Gonna save that source code too!

elfin arch
#

niiice! thank the gitHub guy he did all the updates, i just had to find it 🀣

pulsar willow
#

Well this is really good, I code in a much different language so tinkering with is was ok just as long as you told me what to do haha

elfin arch
#

haha. ya. this one was easy; just a bunch of copy and paste, luckily

pulsar willow
#

Yeah, well now I can see 4 digits for the 3 viewers I'm likely to get πŸ˜‚πŸ˜‚πŸ˜‚ Thanks again!

elfin arch
#

no problem! 🀞 you roll over into the 100's

pulsar willow
#

hahah lets hope πŸ˜‚πŸ˜‚πŸ˜‚

lunar drift
#

i am having a problem with streamelements...someone help please

elfin arch
#

@lunar drift please post in one of the helpdesks if it is a platform specific question.

uneven oxideBOT
elfin arch
#

@floral sandal; i see you have an API for Trovo viewers, see up some, wondering if I can use yours for Trovo support.

elfin arch
#

the viewerCount widget on SE, it works for Twitch but I need an open API to get it for Trovo

#

can i use yours πŸ™‚

floral sandal
#

Oh, yeah, I have it public and all. I haven't coded them to have an option to only return the number though, so not sure what you intend on doing, but it's available.

elfin arch
wheat jackal
# wheat jackal

this bug is still there. "I'm getting an error when I'm trying to replay a gifted sub (of 5) in dashboard/activity"

elfin arch
#

haha; at least that was the goal @floral sandal ... i'm CORS blocked.

elfin arch
wheat jackal
elfin arch
#

is this a recent event?

#

like within the last 2 days?

wheat jackal
#

Yes. It's other streamer's event

elfin arch
#

are you using Edge as a browser by chance?

wheat jackal
#

no chrome

#

I can try using incognito

#

maybe some extension is blocking it or something

elfin arch
#

ya; try Chrome incognito ....

#

that is normally an Edge error (from what I've seen)

wheat jackal
#

yeah no, still same thing

wheat jackal
# elfin arch ya; try Chrome incognito ....

I was checking that in the first place, because when I was monitoring live. When sub gift was gifted, children of the event didn't have bulkGifted key in them. So they were gifted: true, but didn't have bulkGifted

#

but now when I can't even replay runned gifted subs, I feel like something else is broken

#

I can try different browser and even different pc, but i doubt it will help

elfin arch
#

"bulkGifted" is the event from the Gifter

wheat jackal
#

sorry *isCommunityGift

elfin arch
#

So let's say i gift 10 subs to you; you will get 11 events .... first event is "PJONP bulkGifted = true .... then yup, 10 events of isCommunityGift

wheat jackal
#

But it's still weird that I can't replay gifted sub events

elfin arch
#

you mentioned it was on a streamer's account, is that not one of your own accounts.

wheat jackal
#

not my own account

#

shared access

elfin arch
#

ahhh. haha; ya so you logging in and out doesn't help much. they would need to try and relog

wheat jackal
#

really?

#

huh

elfin arch
#

well; maybe...

#

i guess; first question does it work if the streamer hits the replay button?

#

... trying to narrow down the issue here; do the replay alerts not work for streamer? is only the gift sub one not working? ... or are the replays not working for managers/editors

wheat jackal
elfin arch
#

do you know if they work from the streamer account?

wheat jackal
#

Also is it normal that when I replay bulkGifted children events, they don't have "isCommunityGift" key

wheat jackal
elfin arch
wheat jackal
elfin arch
#

can you get them to grab their accountId; gonna request a staff to look into it.

uneven oxideBOT
elfin arch
#

and then; i think final question; is it just the "GIFTER" event that is broken? do the children subs work?

wheat jackal
#

so they are just gifted

elfin arch
#

yup yup; i'm adding that for sure; cause it should have that.

#

can you check if the replay event has a name and sender in the event from the feed

wheat jackal
#

yes they do have name and sender

elfin arch
#

does the sender match the person that sent the gift?

wheat jackal
#

yes

elfin arch
#

Thanks for the info; passing on for staff to look into.

dark kindle
#

Hey @wheat jackal,

Could you please confirm with the streamer if this error appears only when replaying the alerts? Are the alerts showing properly when live?

cinder charm
#

can anyone help, i am looking to create a scroll bar at the bottom of my screen that includes (and updates) latest follower, Sub, etc. all in one bar not separate, can this be created within S.E or is it an external Browser source/widget

wheat jackal
valid crater
#

I'm aware that this isn't the right place but I need to figure out if this is a Linux issue, and figured some of you are Linux users. After converting these clips to VP9 and uploading them to StreamElements to use them for my alerts, I can't get the SOUND to work in OBS. The file itself and the video within the web editor, the sound and video work perfectly. The problem occurs between StreamElements and OBS but I cannot figure it out. And yes, I have tried using the Control Audio via OBS option, it doesn't change anything

tacit dust
#

could someone please help me with the 404 leaderboard problem?

tranquil steeple
#

Hi.
I was tinkering with a couple of custom widgets and wanted to make a master-widget to set and comunicate some shared settings across all the slave-widgets.

I used SE_API.store.set('key', 'val'); to set the value from the master and then listen for a kvstore:update in the slave widgets. And this worked just fine.

However, I then wanted to update a field in the master-widget with SE_API.setField('key', 'value'); together with a button press and realized that this actually updated all the slaves since the field names are the same for all of them.

This made everything much easier. Now I don't need to add extra handlers in the slaves.

But this seems "dangerous" to me and it was very unexpected. I thought SE_API.setField('key', 'value'); only updated the field for the widget running the code.

The documentation (https://github.com/StreamElements/widgets/blob/master/CustomCode.md#se-api) doesn't seem to mention this feature, hence my surprise.

TLDR: Is SE_API.setField('key', 'value'); supposed to set the fields of every widget in an overlay with a matching key?

terse crest
pulsar willow
#

Does anyone know a better way to dynamically add an outlining to an img than the following? (The image has alpha.)

CSS:

           drop-shadow(5px -5px 0px black)
           drop-shadow(-5px -5px 0px black)
           drop-shadow(-5px 5px 0px black);```

It's the accepted answer to a corresponding stackoverflow question, but I'm not the biggest fan of the results.
pliant adder
#

Hello all, does anyone here have this issue of where having different variations of a follower alert sometimes cuts out the rest of the alert text?

#

Here is a video of what I mean

#

I think it may have to do with the CSS/HTML of my Smash Bros alerts. The other ones work just fine

sacred urchin
tiny hound
#

does anyone have a fix for this widget, it stops working as soon as anyone types anything in chat..??

sacred urchin
#

my chrome isnt allowing me to view the tipping settings or the actual tip page, it works on other browsers but not this one for some reason? any ideas on why ?

broken coyote
#

or you can leave it on YES and add

if (obj.detail.listener === "message") return;

to line 155 in JS

pulsar willow
#

dont know if this is the place, but is the price for earnings on a stream being weird for the emails? as mine dont add up is says 4* 5$ subs but says it equals 24.92 should i be concerned? or just kind of a weird thing

charred pewter
hardy walrus
#

@pulsar willow Due to the regional and affiliate/partner differences it's sent based on the previous breakdown and USD amounts.

pulsar willow
pliant adder
#

My question is then why would the default follower notification play even though there are variants of it?

manic mauve
#

Hi. I am trying to join my dashboard but everytime I click on Go to dashboard the page reloads and nothing happens.

#

It is same with profile and other..

#

Okey I solved it I guess. It isnt still working on Chrome but it works on Microsoft Edge

pulsar willow
young shard
silk kite
#

I'm not sure where else to ask; I set up SE Pay, but every time I try to go "Tipping Settings" I get a brief flash of something before the screen just goes empty?

#

I've tried refreshing, reopening the tab, etc. but it always just flashes before going blank

#

( @ me if you have/know anyway to fix this please πŸ™‚ )

terse crest
silk kite
#

Aw, it didn't fix :/

pliant adder
#

im confused

young shard
pulsar willow
# young shard try this https://stackoverflow.com/a/69196391, yes it requires javascript but it...

thank you πŸ‘

I modified it to:

const r = 4;                         /* width of outline in pixels */

const n = Math.ceil(2*Math.PI*r);    /* number of shadows */
const color = "black";

var str = '';

/* append shadows in n evenly distributed directions */
for(var i = 0;i<n;i++) {
    const theta = 2*Math.PI*i/n;
    
    str += ` drop-shadow(${ r*Math.cos(theta) }px ${ r*Math.sin(theta) }px 0px ${ color }) `;
}

document.getElementById("test-id").style.filter = str;

https://jsfiddle.net/zyLh9dom/

cosmic plaza
#

does anyone know if the tip or other donation messages are read out by a TTS voice and if they are can it be configured?

inner lagoon
#

I filled out the form to get the One-click overlay share link ability about 2 weeks ago and have not heard back.

inner lagoon
#

Any idea how long it takes to hear back? every time i ask in here i get no response

zealous lodge
#

[HELP] Since I set my country to Canada from anonymous I've begun to experience a "could not add song: internal server error" in response when requesting songs even made by my brother on youtube music

alpine crest
#

Can someone point me to the documentation for the overlays api? Just trying to learn how to call a custom field

inner lagoon
#

its in the channel topic btw

alpine crest
#

I had the feeling. Still kinda new to discord haha

inner lagoon
#

PizzaMark β€” Today at 5:34 PM
I filled out the form to get the One-click overlay share link ability about 2 weeks ago and have not heard back.
PizzaMark β€” Today at 6:16 PM
Any idea how long it takes to hear back? every time i ask in here i get no response****

broken coyote
#

Not sure what you submitted. But you need to submit a widget @inner lagoon

broken coyote
#

ah. news to me. didnt know that existed

slate crag
#

Hi All, can someone direct me to the list of environment variables that I can use inside of the widget called "Awesome Shoutout"?

broken coyote
slate crag
#

Thank you

cursive folio
spiral jacinth
#

Hello! I’m trying to make some timers that show who the top gifter and top cheers in chat, but I don’t know what variables to use.

haughty bramble
#

Hello guys, I'm looking into making a commandA to call out commandB, do you know if that's possible?
Example:
!hit - user has been hit ${count} times
!block - user has blocked the hit - and this command to call out a command which does -1 from the "!hit" command

It is a bit complex, I've look in a few docs, but so far can't find a way to call out another command
I can't really think of an simpler way to explain it

ionic hearth
#

Hello, I'm trying to add a custome alert and it doesn't show. I changed the resolution from the 4 opinion and nothing. I tried custom on 1920 Γ— 1080 nothing. Your help will mean a lot!

snow birch
#

hey team! I'm trying to make an animated overlay but when I try to add a video, it doesn't allow me to add .mp4 or .webm files. any assistance would be super helpful

hardy walrus
#

@snow birch browser or obs.live?

severe shell
# haughty bramble Hello guys, I'm looking into making a commandA to call out commandB, do you know...

You can set the same variable name for both commands, but the !block would subtract one, for example:

!cmd add hit user has been hit ${count "${user.name}_hit"} times
!cmd add block user has blocked the hit and the new hit counter is ${counter "${user.name}_hit" -1}

${user.name}_hit will create a variable called c4ldas_hit, dim4oU_hit, depending on who ran or was marked for the comamnd... You can work around that to meet your needs. You can also test with ${touser}_hit, I don't know exactly how you want the command, but you have options

severe shell
haughty bramble
snow birch
drifting vortex
#

Hello, so I just streamed and got a sub but for some reason it didnt get recorded in the stream activity part?

severe shell
# ionic hearth Help?

From the preview window, the image does not appear, it is just an empty field. Can you send the image to check?

severe shell
severe shell
severe shell
ionic hearth
severe shell
#

@ionic hearth Gif images have a strange behaviour on alerts, so I would recommend that you convert to .webm format, which is a video and also support transparency. I did the job for you, but you can use the https://ezgif.com/gif-to-webm to convert when you want

#

Also, for the image, I suggest that you use the first layout option

ionic hearth
#

Alright that makes sense. So convert my image and change the text layout once I do. Thank you

severe shell
drifting vortex
sly beacon
#

I have a question with a follower animation. I want to add a gif at the same time as an audio track, I've tried everything, but I can only use the gif with the regular follow sound or the video without the gif. Is there a way to play the gif and video in the background without it being seen?

severe shell
sly beacon
severe shell
sly beacon
#

This is what I see

severe shell
# sly beacon This is what I see

Are you trying to add a video or audio file? Because if you click on UPLOAD SOUND, it will only give you the option to add audio files

sly beacon
severe shell
# sly beacon That's exactly what I want to do. I want to add that audio file to the gif I hav...

The screenshot you sent only contains video files, not audio files, you are on VIDEOS tab. If you want to only get the audio from the video, you will need to extract the audio first. You can use https://mp3cut.net/, upload your video file and it will give the option to save only the audio part.
In case you already have an audio file, you just need to click on Upload (top right of your screenshot) and upload the audio file. Then you will be able to choose it from the "SOUNDS" tab

sly beacon
inner lagoon
#

PizzaMark β€” Yesterday at 5:34 PM
I filled out the form to get the One-click overlay share link ability about 2 weeks ago and have not heard back.
PizzaMark β€” Yesterday at 6:16 PM
Any idea how long it takes to hear back? every time i ask in here i get no response

pulsar willow
#

what are the payments options for SE.pay?

broken coyote
inner lagoon
real summit
#

Is there a way I can make lines in the chat box descend? Lines of text entries from viewers going down instead of up?

young shard
snow epoch
#

if you're on twitch, pretty sure either BTTV or FFZ has that option

#

yeah, bttv

real summit
uneven oxideBOT
#

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

real summit
verbal vigil
#

Hello again, I have some trouble with the Step Goal Widget by @simple wraith I lov ethe idea but if I set my goals I won't see anything. The Goal will only appear if they are reached. f.e. i put my Donation Goal to 0 --> Nothing appears. I Put it on 150€, the goal for 100€ appears, but I won't see the nex goal 250€. How can I fix this?

simple wraith
#

think this depends on the step-multiplier.

simple wraith
#

Sometimes the "steps" or gaps from goal 1 to 2, 3, etc. are too big, i.e: 100, 500, 1000. There's an aditional field "multiplier" that's used to dirty-math-multiply the fading option to "tease" the next goals and get them to show, if that's the case.

verbal vigil
#

okay if I decrease the Steps from the goals, i see it

verbal vigil
#

Okay, nevermind - got it^^ Opacity multiplier

#

Thank you for your help and for this awesome widget!

simple wraith
#

It's been a while since i've fiddled/updated it, so i've been doing it from the top of my head. Glad to hear this solves it πŸ‘

strong tulip
#

does streamelements has any API?

#

I want to make contests by request

hardy walrus
#

First link in channel topic.

strong tulip
#

holy f

#

sorry and ty

#

if discord would introduce channel popouts on first enter it would be cool

hardy walrus
#

If you're on desktop you can easily see it regardless of window size. Mobile on the otherhand is a bit special due to sizing "issues".

pulsar willow
#

Any recommendation to stretch letters height in overlay editor through CSS ? Maybe font recommendations ?

young shard
pulsar willow
blissful imp
#

Is there a way to get rid of the '8 ball says' in the 8ball command/module... (not sure if im asking in the right place)

misty vault
#

hii when i do a recording on OBS live, I dont know where the recording saves on my Imac...is there a typical place it should save too?

torn bough
#

Quick question - I changed my name on twitch and had to relog into all of my accounts. BetterTTV is no longer showing up in my stream elements chat overlays? Was curious if anyone else has experienced this problem and could help. BTTV IS working and all of my accounts HAVE been resigned into. Chat can see the emotes on Twitch itself, its just not showing on SE

warm glen
#

Hi, I wanted to switch to Stream Elements but I have my old donation integration tied to SL API (custom website written in PHP), and after I look into Stream Elements API Docs I realized that I would need an actual app to be able to apply for an API key (company name, logo, redirect URL which I don't have because the app is not public I don't allow users to sign in and use the app as their donation portal if they want it they will have to host it themselves the source is public on github), will Stream Elements ever allow users to create their own API key? and use with their custom donation portal?

warm glen
terse crest
terse crest
warm glen
inner lagoon
inner lagoon
#

Yes I will keep asking until someone confirms that this form is actually still being used and someone is going through the applications. I have a twitch partner thats been waiting on this share link to share it with the masses

broken coyote
#

soooo.. your not needing the link. they do?

inner lagoon
#

i need the link to share with them so they can distribute it

broken coyote
#

do they have a share link access?

inner lagoon
#

and i work a fiverr gig making widgets for people and without the one-click sharing ability my only option is to apply for each individual widget or have them manually paste the code in\

inner lagoon
broken coyote
#

so. the application is for their info, not yours?

inner lagoon
#

no?

#

i made the widget. i need the ability to make a link to share it

broken coyote
#

so they are just going to share your link

inner lagoon
#

yes

broken coyote
#

why didnt you just submit it to #widget-share ? you'd get it posted on their, get the code guru role, and get share link access

#

also get a sweet hoodie

wet basin
#

I middle of Stream and had stop but Raid Shadow of legends sponsored link not working for plarium.com l have or there website

oak plume
#

@viral patrol thank you for the only working way I've found to have patreon alerts on stream. I'm looking at the JS and Data for the widget, but unable to see where I can make the alert last longer.

steady cave
#

So im using the API with just the JWT Token and have most of what i need working. (Node app running the code and sending it to nodered via socket.io) but i cant seem to get info on "Sound Effects" redemptions but i can for normal "Stream perks" redemptions.
Everything is passing through the event variable

    console.log(data);
    serverio.emit('event', { data });
});```
Is there a different variable needed to see Sound effect redemption data?
inner lagoon
#

and like i said, because i do more custom widgets for people and will need the ability to quickly make a link

#

and some widgets are private

shy remnant
#

When is the merch section getting new merchandise in?

terse crest
viral patrol
marsh furnace
#

Can someone help me with how to import a widget that i built using html/css to streamelements?

marsh furnace
broken coyote
#

you can dm me the code you have and i can throw it together

marsh furnace
#

Ok!

#

thanks

#

i will send you

zealous dust
#

This may be a simple question, but does anyone know how to change settings so that the "Memo" field in Paypal can be modified when someone tips? Having an issue where multiple streamers use StreamElements, but harder to determine who the tips are for

modest lynx
#

Hi, I don't know if that is the right channel or if anybody can even help me LUL but I wanted to use the Cod Tracker Command for Warzone (which successfully works with nightbot) with StreamElements. Is there a way to transfer/rework the command?

sullen ether
#

Hello, I'm just wondering why my top tippers list is not updated, also doesn't reflect to my tip goal widget in my overlay. I've tried to reset the session data, but it still didn't update. But it got recorded on my tip list. Anyone knows why? See pictures below:

steel skiff
#

Like some other posts here - not sure if this is the right channel but -- is there any way I can use a chat command control the contents of a text source? (I'm using vanilla OBS but will possibly switch to OBS.Live).

I want to allow a mod to update a scrolling text during the stream.

paper nacelle
#

so i just switched to streamelements from streamlabs. i've been having an issue where streamelements isn't tracking new follows. Not only are the stats and analytics not showing new follows, the alerts are not being triggered for new follows. all other alerts work except that one

smoky cloak
#

Hello, I have made the move from streamlabs over to stream elements recently. I am asking for some help. I am trying to, but unsuccessfully trying to add new quotes in my stream. the quotes I had in slobs I was able to import in but, now when trying to add all that happens is that an old quote populates instead. I have looked in the dashboard and there is no commands listed to be able to add in chat by myself or my mods? also is there a way to make a scrolling thank you list credits to be used for end of stream?

restive horizon
#

Hello, i have little problem with partner program... Can you help me ?

#

i deleted any special characters from
description about me and there is still a mistake somewhere

river oracle
#

@here why does streamelements version of obs connect to so many random ips?

broken coyote
steel quartz
#

Hey All, Is there a feature request form for things like chat bot functionality?

uneven oxideBOT
#

@steel quartz ‡️

Check out the StreamElements ideas board: https://strms.net/ideas. You'll be able to add ideas, upvote ideas you agree with and track their progress with email notifications. Adding and upvoting ideas also helps the staff know which ideas should be prioritized so please take some time to upvote.

stable solar
#

When I try to use my stream activity into OBS the only option that i have to login is twitch, trovo is not available.

uneven oxideBOT
#

@stable solar ‡️

StreamElements menu, on top of OBS > Logout > Login

pulsar willow
#

hi are there any integrations with the charity platform just giving.com ?

cobalt sierra
#

When making API PUT requests to /contests/{channel}/{contestId}/winner, what needs to go in the request body to say which option won?

stable solar
#

This happen to me with trovo login

#

the page always load as blank

knotty zenith
#

quick question, is taking the code for another widget, adding some features on top of it, and submitting it allowed? or can it only be for personal use at that point?

#

to be more specific, it's the stream marathon timer by LX that i'm editing. i'm just trying to add some extra features and quality of life improvements after seeing a streamer struggle with it a bit and if it works out good i wanna share it with the community.

hardy walrus
knotty zenith
#

i wasn't completely sure if that was his discord tag or not but guess i do now lol

azure jolt
#

Does anyone have a method for getting the length of the audio played in an alertbox widget in js?

misty escarp
#

Hey guys! I'm trying to set up a rotator widget, however i'm currently stuck trying to get it to show the top 3 gifters, cheerers, and tippers of the month (similar to the leaderboard on top of twitch chat). is that doable?

azure jolt
#

Can you access SE_API from an alertbox in any way?

terse crest
#

only from custom widgets

terse crest
azure jolt
#

Managed to work around it by reversing the logic. Would be nice to have some version of the variation ui for custom widgets

terse crest
#

You can achieve almost anything using custom widgets, variations are not the hardest thing

viral patrol
humble field
#

Hello, I need some assistance changing my banking info for S.E.Pay.

oblique torrent
#

Hi quick question how do i share an overlay? I just finnished one and i want to give it to a friend so they can use it but i find no way to share it

pulsar willow
unreal matrix
#

i'll paste it here as well as im not sure which it belongs to

#

hello! i'm helping a friend with converting a custom widget meant for streamlabs to a streamelements widget in overlays
we're not running into any issues in regards to visuals but the data isnt updating
i assume this is because the variables differ between the two services but i'm not well-versed enough in JS to tell where
would anyone be willing to assist?
Thanks in advance!

#

sorry for the repost!

severe shell
#

Check if you find what you want on the link, otherwise you can share some pieces of you code and the good devs maybe can give you a hand.
If you put your code between triple back quotes ( ` ) will be easier to read.

unreal matrix
#

Thank you!

#

Let me share some of the code

#
  $('#title').html(obj.detail.titel);
  $('#goal-total').text(obj.detail.amount.target);
  $('#goal-end-date').text(obj.detail.to_go.ends_at);
  $('#goal-current').text(obj.detail.amount.current);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
     $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(obj.detail.amount.target + '');
  $('#goal-current').text('' + obj.detail.amount.current);
});

document.addEventListener('goalEvent', function(obj) {
  $('#goal-total').text(obj.detail.amount.target);
  $('#goal-current').text(obj.detail.amount.current);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(obj.detail.amount.target + '');
  $('#goal-current').text('' + obj.detail.amount.current);
});```
#

this is the version from the streamlabs widget

#

it doesn't seem to update for the SE widget

severe shell
unreal matrix
#

oo ty

#

i just put 1

#

this is what i have tried to no success

  $('#title').html(obj.detail.titel);
  $('#goal-end-date').text(obj.detail.to_go.ends_at);
  $('#goal-total').text(data["tip-goal"]["amount"]);
  $('#goal-current').text(data["tip-session"]["amount"]);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(data["tip-goal"]["amount" + '');
  $('#goal-current').text('' + data["tip-month"]["amount"]);
});
window.addEventListener('onEventReceived', function (obj) {
  $('#goal-total').text(data["tip-goal"]["amount"]);
  $('#goal-current').text(data["tip-session"]["amount"]);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(data["tip-goal"]["amount" + '');
  $('#goal-current').text('' + data["tip-month"]["amount"]);
});```
broken coyote
#
window.addEventListener('onWidgetLoad', function (obj) {
  $('#title').html(obj.detail.titel);
  $('#goal-end-date').text(obj.detail.to_go.ends_at);
  $('#goal-total').text(data["tip-goal"]["amount"]);
  $('#goal-current').text(data["tip-session"]["amount"]);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(data["tip-goal"]["amount" + '');
  $('#goal-current').text('' + data["tip-month"]["amount"]);
});
window.addEventListener('onEventReceived', function (obj) {
  $('#goal-total').text(data["tip-goal"]["amount"]);
  $('#goal-current').text(data["tip-session"]["amount"]);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(data["tip-goal"]["amount" + '');
  $('#goal-current').text('' + data["tip-month"]["amount"]);
});
#

I assume this originally came from code pin. I say this because they spelled "title" wrong lol. And I converted what I believe to be this widget already

unreal matrix
#

oh really!

#

where could i find that?

#

thank you both so much !!

severe shell
# unreal matrix thank you both so much !!

I would also suggest that the first thing you do is add a console.log(obj) below window.addEventListener etc etc etc so you can see possible values on console provided by onWidgetLoad and onEventReceived.
Based on that, you can check the values you want. But you will also have them here:
onWidgetLoad: https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-widget-load
onEventReceived (this will always depend on the type of event, if it is a tip, you can emulate a tip event on SE overlay editor): https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event

unreal matrix
# broken coyote I assume this originally came from code pin. I say this because they spelled "ti...

hey sorry to bother you again but I still can't seem to get it to work even after editing the text with the documentation!

  console.log(obj)
  let data=obj["detail"]["session"]["data"];
  let recents=obj["detail"]["recents"];
  let currency=obj["detail"]["currency"];
  let channelName=obj["detail"]["channel"]["username"];
  let apiToken=obj["detail"]["channel"]["apiToken"];
  let fieldData=obj["detail"]["fieldData"];
  $('#title').html(obj.detail.titel);
  $('#goal-total').text(data["tip-goal"]["amount"]);
  $('#goal-end-date').text(obj.detail.to_go.ends_at);
  $('#goal-current').text(data["tip-session"]["amount"]);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
     $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(data["tip-goal"]["amount"] + '');
  $('#goal-current').text('' + data["tip-session"]["amount"]);
});

document.addEventListener('onEventReceived', function(obj) {
  console.log(obj)
  $('#goal-total').text(obj.detail.event.amount);
  $('#goal-current').text(obj.detail.event.amount);
  var total = $('#goal-total').html(),
      current = $('#goal-current').html();
    $('#total-bar').css('width', current / total * 100 + '%');
  $('#goal-total').text(obj.detail.event.amount + '');
  $('#goal-current').text('' + obj.detail.event.amount);
});```
this is what i edited, please let me know if there's something wrong
broken coyote
#

Send me the original working SL widget and I'll convert it @unreal matrix

unreal matrix
#

Thank you!

hollow thunder
#

so im confused, if i set my bot timers to 10 for everyone of them, will they all go off at the same time? not sure how to properly set their intervals without spamming chat

terse crest
#

Is there a way to update my internal SE nickname? I mean it appears right everywhere except for when people add me as an editor they see my old name

alpine nimbus
#

Hey, it seems you have a bug in your home-page.
the avatar is not displayed ( nothing is displayed )

severe shell
severe shell
terse crest
opaque wasp
#

Is it possible to create a widget that shows current pool/prediction stats within Streamelement?
In attach there is a widget I've found on an italian stream.

hollow thunder
flint furnace
#

Can anyone help with a js switch script for alertbox?

wicked canyon
#

Is there a way to set up an image or gif that changes when you receive donations/followers/supporters? (Or likes and shares if on FB Gaming)

tiny hound
#

how do I change this response? I can't find it anywhere. I want it to say !enter instead of !ticket 1

hardy walrus
#

Unfortunately not possible.

tiny hound
#

oh nooo cuppRuined

terse crest
azure jolt
#

Can you do TTS from a custom widget?

terse crest
azure jolt
#

Ah so using the browser/os inbuilt

broken coyote
azure jolt
#

ty ❀️

fleet lintel
#

Hey I just bought a elgato game capture HD I have set it up with the software and set it up on obs but obs is capturing the full e lgarto software only thing I could think of is to crop the window but it's not letting me is they any way of only capturing the game screen on obs

hardy walrus
terse crest
broken coyote
#

Doesn't work on current obs

#

You would have to keep chrome open in order for it to work

terse crest
#

I mean chrome version

hardy walrus
#

@broken coyote Next OBS is getting bump to 95 so maybe PauseChamp

broken coyote
#

I'd ball out some 3.1

broken coyote
hardy walrus
#

There's newer builds than that but that's the initial introduction of 95

broken coyote
#

Hahahahahaha I thought you were talking about windows 95

hardy walrus
silk kite
#

If it helps, I can apparently look at it on firefox but NOT chrome

silk kite
worldly junco
#

Hello I am looking for using streamelents bot with python and I want bot to get information from twitch api ... Where should I begin also I want to use data which bot is collecting

atomic sentinel
#

Good morning. I am getting a white screen every time I log into Stream Elements and go to the dashboard. I use chrome & even tried Explore. I was able to get on it with my phone & noticed when I clicked on 1 of my merged accounts other than Twitch and Trovo it did the same thing and now it is the same way on mobile as well. On the left is what happened when I click go to dashboard. Can anyone help me fix this issue?

atomic sentinel
#

This has been handled.

cloud geode
#

is "checkbox" a field type, currently Stream Elements is reporting its an invalid type?

terse crest
#

Mb check for typos

cloud geode
#
  "showTime": {
    "type": "checkbox",
    "label": "Show Time"
  },
#

ahhh

#

that last comma

#

doesn't like a trailing comma

terse crest
#

Yep, pretty strict around here

cloud geode
#

also is "onEventReceived" the best handler to listening to settings changes?

terse crest
#

No, onWidgetLoad

cloud geode
#

ah the widget is supposed to reload after a settings change?

terse crest
#

Yep

cloud geode
#

okay im noticing slider and text box trigger a reload

#

but checkbox doesn't

#

when flipping it on/off

#

I need to hit Save and the manually reload page

terse crest
#

Idk if it's a bug or feature

#

And so I use dropdowns with yes/no instead pepeL

cloud geode
#

good idea haha

wanton meadow
#

Hey again. I still haven't heard from anyone regarding GIFBot being approved for the API yet. Is there something else I should be doing?

hardy walrus
#

Lemme see if I can poke someone.

cloud geode
#

what the best way of "releasing" a finished overlay?

#

like sharing it

native wharf
#

How do you all set up development environments when creating overlays? I'd like to be able to test alignments and animations without having to push all of the parts to streamelements and work in the overlay editor.

#

For context, I'm building a new set of alerts on a 1920x1080 canvas, but if I line everything up in vscode/chrome, it doesn't line up when I move the code to the streamelements dashboard

vague cipher
#

Does anyone know the full limitations of the SE_API object for custom JS widgets? Is it just the methods shown in CustomCode.md?

terse crest
vague cipher
#

Can you access the chatbot via that object?

terse crest
#

No, it's for storing the data from your widget

vague cipher
#

does that data persist between sessions? or does it get removed?

terse crest
#

It works like a database, so it doesn't get removed

vague cipher
severe shell
native wharf
#

Ah hell, it was in the pinned messages. I'm extra dumb. I'll check there first in the future

cold adder
#

Hi, so I started participating in the Raid : Shadow Legends sponsorship opportunity and a few of my followers said they downloaded the link, finished the tutorial, reached level 15 and after all this, I still am only at 1 out of 5 warriors. Is there any way I can reach out to someone to let them know about this?

uneven oxideBOT
#

@cold adder ‡️

Please contact us via email for support with your campaign or sponsorship. You can use our contact form here: https://streamelements.com/contact Thank you.

gloomy kestrel
cold adder
gloomy kestrel
#

You're welcome. yay

steady cave
#

Is there a different way to get OAuth2 credentials? im not making a app for multiple people just myself for more control and to be able to do advance automations on my stream.

white steppe
steady cave
#

Yeah I have my main stuff working fine with the normal API stuff and have a app running doing more automated stuff. But with the OAuth2 api you can have more control and info. I wish they make a personal app application instead of a full out app for others. It's only for me 😭

hot trout
#

if it's just for you just use the jwt?

steady cave
#

That's what I'm using, but there's more you can do with the OAuth2

elfin arch
steady cave
#

So right now one thing I can't seem to figure out is the Sound effect redemption. They don't show any info of them being used unlike normal redemption. Could you maybe point to somewhere that shows all the options available for JWT? The docs are confusing

elfin arch
#

I'll take a look; the sound effects should be in with all the other redeems

steady cave
#

That's what I thought too, normal redemption show up fine just not the sound ones. I'm listening to "event" and everything shows up there. Just not the sound effects.

Also would you be able to do bot control over the JWT too?

elfin arch
#

Are you listening to the webhooks for the event?

steady cave
#

Yeah

elfin arch
#

I gotta find my webhook code and fire it up. And also ya; should be able to control bot too.

steady cave
#

I'll give you 2 WHOLE cookies is you find this info peepochat

elfin arch
#

i like cookies @steady cave. I see:

#

that is for sound with type: effect and a normal redeem:

steady cave
#

Hmm might need to change my code a bit then. Maybe event:effect?

#

i have this for the connections

    console.log(data);
    serverio.emit('event', { data });
});

socket.on('event:test', (data) => {
    console.log(data);
    serverio.emit('test', { data });
     //Structure as on https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event
});```
#

I'll do 1 cookie for now then the other when I figure it out πŸ˜† cookieCat

elfin arch
steady cave
#

Let me give that a try, hopefully this works

steady cave
hot trout
#

if you think you should be getting something through the websocket (which is not the same as a webhook btw) you can enable debugging in socket.io

#

and it'll print everything that happens to the console log

elfin arch
#

from @hot trout : https://socket.io/docs/v3/logging-and-debugging/

hot trout
#

ya

steady cave
#

lol ill give that a try too. need to learn what those functions can be used for too vibepopcat

elfin arch
#

I still think the 'effect' should come through the normal event though ... it is missing some info like cost amount

dreamy wasp
#

Does anyone know if it’s possible to take the β€œLevel Up Widget” and make it based of subs instead of donations?

tight inlet
#

Hey. How do i create a one click widget share NODDERS

#

For my users

severe shell
tight inlet
#

@severe shell thanks mate. JUst to be sure, how do i share the widget if i do the second application?

shadow turtle
#

when making a custom chat command, how do i add spaces between lines/sections of the command? In the editor it looks how i want it but when testing the commands there are no spaces in between each line of text, it all runs together looking like one big paragraph. is there a fix for this I'm unaware of?

severe shell
tight inlet
#

Yeah i just want to get an idea before i apply so i'm not applying for something i don't need πŸ˜„

severe shell
hot trout
#

I assume they look to see that there's no malicious or external (other than well known libraries) code being loaded

#

I noticed places like nerdordie have streamelements "installers" but they seemed to just load a url

#

I was looking into how to do that myself as copying and pasting code into a web editor is not my idea of a fun time

bronze sail
#

Hi all! I have MrBoosts goal overlay and I changed the font and the line spacing between the goal and bar is too close and I want to move the bar down a bit.

hidden crown
#

Hi guys can i speak with the developer/programer?

#

we streamers have problem with paypla. if people want to donate money they have one option with paypla to paypla. there is no option to donatee money from credit card to paypal. but sometimes they can becouse credit card buton apears. and after one our disapearts.. strange. people areloosing money. becouse some people dont want to create paypal acount. they want donate fast with a credit card to paypal. like streamlabs. i you press donation butoon you have an option paypal to paypal. or credit card to paypal. can developer look at this ? PLEASE ❀️

#

at this moment its working . but sometimes the buton disapears...

#

im speaking with a lot of streamers in my country they have the same problem.

#

its gone right now

#

:))))

proud spade
#

That's a paypal URL, I don't think there's anything StreamElements can do to edit/update that.

hidden crown
#

i fount onther donation alers web site. and look im choosing paypal and then

#

at the top there is money

#

226 euros

#

why then i try to donate from streamelements donate buton with credit card sometimes apears sometims doest. and if im using donationalerts web site. trying to donate pay with credit card buton is. and at the top money shows 226 euros?

#

this is something bad with url ?

#

please develepers help us. becouse a lot of my friends dont want to use streamelements. becouse they are losing donetion money. becouse people dont want to create paypal acount .. the want fast donate money from credint card to paypla

hot trout
#

this channel is for developers, not "ask the developers"

left rampart
#

I'd appreciate some advice. I've built some free streamer tools that integrate with SE via JWT tokens or Jebaited. Now that it's available, I'd like to transition to direct oAuth, but I'm also starting work on v2. Should I submit what I have now? Mostly want to avoid applications closing again before v2 is ready. Of course, v1 could also benefit from it.

gray wind
#

Help! I went to edit my overlay to change an alert sound, all was fine, copied the modified alert box to my other scenes, but now suddenly they all load in and then several things jump to the wrong place, like move up half the screen. It's like a fraction of a second after they load.
It's even the gallery overlays that a copied into mine, not just custom ones. It's everything I click on...

drifting steppe
#

why does tts start after the alert box vanishes?
i want it to start when the text shows with the alert box

ancient gate
#

any ideas as to why the streamdeck kappagen buttons arent working for me?

dreamy wasp
# broken coyote It is

Do you know if that is something that exists or will need to be contracted for development?

tight egret
#

Someone who knows if there is a coinpusher game that can integrate with streamelements to get points when you win coins or anything similar ?

left rampart
#

I kinda miss the old channel name... less confusion over what to put here.

drifting relic
#

Hey, I'm a software engineer by day that's part of a twitch stream and somebody's asked me to write an api that does something with stream elements around the concept of Loyalty points. I'm reading the api docs and considering what direction to go with what language/framework/hosting to use and I'm just wondering how much of this is a solved problem before I go write some stuff. I'm a little unclear on what the concept of loyalty points is as I couldn't find a great explanation in the api docs and from what I can gather I'm essentially going to write some software that does some communicating with StreamElement's api in some sort of way with the https://api.streamelements.com/kappa/v2/loyalty/{channel} endpoint. Any pitfalls I should avoid that you all have learned from. Any gotchas I'm not aware of. Is streamelements' api aware in any way of twich user ids or is it more of an interface for just the channel's twitch instance? I'm missing a lot of information here and running and gunning in my free time so please forgive my overall ignorance. I'm only part of my stream because I'm funny and I happen to code for a living so I got handed this task but I've not ever streamed myself or in all honestly never really used twitch and obviously streamelements.

#

Languages/platforms: I'm considering python (aiohttp is my jam), ruby on rails (oooh rails 7 and heroku could be fun...). and I guess maybe express.js. The auth example was in GO which I've never dabbled in other than helping a colleague write some unit tests so maybe I could use this as an excuse to learn it.

elfin arch
drifting relic
#

Yeah, I’m trying to figure out what I’m creating too πŸ₯΄. I’ve gotten a bit more clarity since I posted this earlier and it seems I need to just wire up a way for viewers to spend loyalty points for some custom items in our loyalty store by clicking on a button in an iframe on our channel. Sounds like I need to figure out how and what is already persisted about a viewers loyalty points from the api docs and then fill in any gaps on my end regarding the transaction if it isn’t all handled by the stream elements api already and then I’ll need to have a pubsub or other kind of listener that alerts us that somebody has β€œdone the thing” in the chat like in your examples.

drifting relic
#

Hmm, so is there an existing way of alerting when there's been a purchase made from our store?

hot trout
#

<@&364840891023622144> nitro scam link above

left rampart
elfin arch
# drifting relic Yeah, I’m trying to figure out what I’m creating too πŸ₯΄. I’ve gotten a bit more ...

When you say an iframe on your channel, are you talking about doing a Twitch extension? It sounds like you will want to do a POST call from the UI to your sever/API, that should send the Twitch userID & name; but I believe all of the loyalty is tracked by just username (so name changes on Twitch cause issues). When you get that in your server you would need to get a call to check current points and compare to cost; then do what ever you need and send that info to an overlay(?) if that is the end result

median basin
#

im trying to display a counter that counts 250 per sub, 50 per follow and 1 per bit. adds them all together and displays it was wondering if someone can help me

#

as an overlay

valid swift
#

Hi all... I'm trying to find documentation on an IF/OR type bot variable I thought I saw but can't find now. Something along the lines of if there is a ${1} use that otherwise use something else. Can anyone tell me if I'm dreaming this up? I would love a link to any documentation about bot logic commands not just replaceable variables. Thanks!

#

Or should I just assume that the best way to add logic is through custom APIs?

severe shell
severe shell
median basin
#

i fell asleep

valid swift
drifting relic
#

@valid swift is php what people are using for custom APIs?

dusty marsh
#

i'm trying to change the cheer sounds for variations but it keeps playing the standard and the new sound, does anyone know what i'm doing wrong?

severe shell
dusty marsh
severe shell
#

Hmm, maybe you have two overlays on your OBS that have cheer alert enabled.

dusty marsh
#

i just tried muting obs and it's still there, it feels really weird too because i can't see any other audio options in the settings

severe shell
dusty marsh
#

yes that worked thank you!!

spark lava
#
Is it possible to have a command pull from a user's watchtime and convert that into a percentage from 1% to 100% with the goal percentage able to be edited.

100% to be 100 hours.

Example ↓
!command
StreamElements: HGERBO is at 7% of 100%
valid swift
hot trout
#

@spark lava to the best of my knowledge the only way to do that is to use a custom API which means programming a web service for it that talks to the streamelements api to pull the data

#

the streamelements bot does not have any way of running code in commands

spark lava
#

Okay

#

thank you

elfin arch
valid swift
#

Oh that makes sense... It would be nice to work in js. I will probably fork that. I got what I needed in PHP but I am always looking to expand.

drifting relic
hot trout
#

I run most of my bot APIs on cloudflare workers

#

(also javascript)

drifting relic
elfin arch
#

I don't have any SE API calls in there; but there is an example of a Twitch API call to get online stream team members

hot trout
#

uh well CF workers let you run javascript code on cloudflare's servers all over the world so you don't have to run them yourself

#

there are some restrictions mostly to things like CPU time and such esp on the free tier but I've not run into issues with that myself

#

there's also google cloud functions and amazon lambda that serve a similar purpose

#

but they're more general-use and a bit slower in general unless your function sees a lot of use

valid swift
#

are you doing anything with DB on the backend?

hot trout
#

mostly I process json data from somewhere else into a response

valid swift
#

Perfect application then...

hot trout
#

I have one on google cloud functions that queries a google sheet

#

that one's in python though

valid swift
#

I will look into that as well. Thanks for sharing.

drifting relic
#

Does anybody know of any example code with api calls to stream elements regarding loyalty?

elfin arch
#

I got one that pulls the top 3 users, i think, somewhere

drifting relic
#

Sweet, if you can dig it up that’d be sweet. Even if it’s a snippet

elfin arch
#

first one is get points from user name; second is put points to username (+/-); third is bulk and add/removes points to usernames from Array; then get a list of top point users

#

should get you (hopefully) in the right direction, it's old code I did

elfin arch
hot trout
#

yeah it does (afaik) require that you have a domain you can dedicate to it though

#

unless you use the workers.dev domain they give you but that has some downsides wrt caching if you were to want to use that

elfin arch
#

ooohh

valid swift
#

It is definitely worth a look.. and optimized for the kind of data transformation and delivery that bot APIs require.

hot trout
#

I once spent like a whole hour trying to figure out why my caching wasn't working and it turned out that the workers.dev subdomain disables it squidc1Fail

#

it all worked fine with my real domain

elfin arch
#

it should be alright then for most things... i'm not sure really how to use caching 🀣

hot trout
#

well it's cloudflare, caching is kinda what they do

#

the original intent is for workers to mostly sit between your client and an origin server, though there is no requirement for an origin server to be contacted so it's perfectly possible for the worker to generate and serve a response autonomously

#

in any case I've been a lot happier with it than google cloud functions cause it's a lot faster to start up

elfin arch
#

only thing I see that might be an issue would be 'secrets' for JWT or Twitch oAuth tokens

hot trout
#

your code is never made public so you should be able to put those in without issue

#

oh they have something for secrets too

#

is there a way that I can post links without my existence being deleted by the bot

elfin arch
#

um.... depends on the domain. github and codepen should be whitelisted

hot trout
elfin arch
#

hahah. looks like that might be alright too

hot trout
#

lul ok we'll see

#

poop

elfin arch
#

haha

#

i'll grab it. 1 sec

hot trout
#

well at least I didn't get muted this time like when I dared link to the socket.io docs

valid swift
#

Wrangler is the CLI?

hot trout
#

yeah

valid swift
#

This is really cool... and sort of mindblowing. I have not been keeping up.

delicate breach
#

Is there any reason SE doesn't store gifted sub information in recents?

ancient forum
#

I'm not entirely sure where to post this so here goes ....
I'm fairly new here, i am trying to create a custom alert for my stream using the EDITOR for the stream elements overlay, if any one here has tried using the custom CODE EDITOR and is familiar with the editor, can anyone tell what is the TAG or DEFAULT NAME for the image or clip place holder with the HTML or CSS CODE editor.
these TAGs (not sure if that's the right term for them) are usually enclosed in braces "{" and "}" or "{{" and "}}"
I am a bit familiar with java script, so I know what they are, just need to know the variable name so I can just call the image I uploaded with it, into my CSS or HTML code.

terse crest
hot trout
#

{image} and {video} for images and videos respectively

ancient forum
hot trout
#

as well you shouldn't

pulsar willow
#

hello, not sure this is the correct channel, i am trying to get a command working where i need it to pick a random viewer/chatter but when i use the ${random.chatter} is not working, it keeps returning stream elements. Can someone give me an alternative or tell me what i am doing wrong. Thank you

hot trout
#

are you doing this while offline and no one has chatted?

pulsar willow
#

i have it open to run both offline and online

hot trout
#

has anyone else talked in the last few minutes

#

oh it's done by two people

pulsar willow
#

it keeps selecting streamelements for some reason

azure jolt
#

Is there a way to mass change css/html/js for all variations?

hardy walrus
#

No.

azure jolt
#

😭

hot trout
#

yes actually but it involves downloading it from the API, modifying that json and then re-uploading it

azure jolt
#

huh, that might be doable

hot trout
#

which may be more work than just doing it in the editor unless you're intending to make a habit out of it

azure jolt
#

I've had to do it by hand 5 times now

hot trout
#

yeah I know the pain

azure jolt
#

Do you know the call to download the json for that alert?

hot trout
#

uh lemme see if I have it in my history still

#

I can't find it but it's in the streamlabs apu docs (see above --^), you can GET the overlay endpoint specifying the overlay id

#

that endpoint accepts PUT as well despite it not being mentioned

#

ah I found it

azure jolt
#

ty ❀️

hot trout
#

curl -H 'Authorization: Bearer token_goes_here' https://api.streamelements.com/kappa/v2/overlays/channel_id_here/overlay_id_here > overlays.json

azure jolt
#

ooh!

#

Thanks!

hot trout
#

and then the upload would be curl -X PUT -H "Content-Type: application/json" -H 'Authorization: Bearer token_goes_here' https://api.streamelements.com/kappa/v2/overlays/channel_id_here/overlay_id_here -d '@overlays.json'

#

obviously I suggest you test your methods on a new overlay

azure jolt
#

I will duplicate first ;D

thorny hazel
#

@elfin arch Im utilizing the prizewheel but when it announces the result in chat it announces 2 different results, any idea why?

#

@elfin arch It actually shows the LAST result and the correct current result

elfin arch
#

If you have it on 2 different scenes and both are active or open in OBS and the website editor, it will do 2 events

thorny hazel
thorny hazel
elfin arch
#

You could sneak a second one in there after if you wanted to though

hot trout
#

any chance woff(2) and/or ttf could be added to the list of permitted file uploads?

verbal yarrow
#

I didnt know were to put this but on se sponsorships for the raid of legends one do I have to complete all 3 bonuses to get payout or just the base?

latent harness
#

How can i use the customapi on streamelemens commands to only send a specific part of an api I want it to show only this part from an api

#

instead of showing the full api response i want it to show only the number of the elo

hot trout
#

you can't, you'd need to make your own api that calls that api and extracts the number

#

if you use nightbot though, that can do it

latent harness
#

oof

#

yeah i got it working with nightbot with no issues

hot trout
#

streamelements unfortunately has no eval which is how nightbot lets you do that

latent harness
#

yeah

hot trout
#

I'm pretty sure nightbot is the only cloud bot that has eval though

hardy walrus
#

Their thing in question doesn't necessarily need eval but json parsing most likely.

#

Even then you're still correct as we don't support that either (yet).

latent harness
#

It would be great if eval or something similar was on SE because i have never made an api

hardy walrus
#

It has been a while since I brought it up to those with the who could do stuff about it but understandably security concerns were the immediate issue with it.

hot trout
#

yeah for your use you only need json parsing and a way to extract fields, it's just that nightbot gives you that through eval

hardy walrus
#

I can try bringing it up again but not sure if there'll be any difference of consideration this time.

still crow
#

@terse crest if you meant move over here because you're about to tell me how to program it myself I have no idea how to do that sort of thing πŸ‘€

terse crest
still crow
#

ah

terse crest
#

left is "stock" events list, right is modified

flint furnace
#

is this also a better place to ask for how to get a sound event in when someone chat for the first time of the day?

still crow
flint furnace
terse crest
# still crow teach me your ways

Your widget on the sent video is also "stock", just with style settings, right? Because seems like it's working fine if direction set to Bottom, and looks like on your video events are coming from the bottom, so I'm not sure why is it so junky

still crow
#

so you're saying the stock default should be as smooth as your modified version?

still crow
#

yeah

#

how did you make yours look that way?

#

there's no options to make it look like that

#

the default customisability is very minimal

terse crest
young shard
hot trout
#

this lets me use a custom ttf font how?

still crow
terse crest
young shard
hot trout
#

yes, but that violates the idea that the whole overlay is in the cloud

terse crest
hot trout
#

most importantly though, I'm using the "black oblique" version of a font and I can't seem to reliably select that using css

young shard
hot trout
#

font-weight: 900 (the max) does it in some browsers but not in the browser source

still crow
hot trout
#

so my workaround now was to grab the ttf file of the specific version I want and @font-face that into my css

young shard
#

that's fair
in that case the only reliable method would be to have it uploaded on some other website and use that link for the src

hot trout
#

well tbh I just renamed it .gif

#

and used that

#

ahem

young shard
#

lmao does that work? nice

hot trout
#

yeah the server doesn't check that it's a real gif and the browser doesn't care about the name

terse crest
hot trout
#

I'm in

terse crest
#

a gb of ram should do the trick

twilit ruin
#

Hi everyone, I wanted to raise a Feature request for "Credit Roll - by Grot".
At the StreamElements Community Board they told me should try here.

The credit roll at the end of the stream sadly does not show the mods that were active during the stream. Other services do this. I really want to thank my mods in this way. Is there any way to implement this in the credit roll?

valid swift
#

Does anyone know if SE is planning to support setting commands with other commands? For example I would love to have a !setcrew command that maps to "!cmd edit crew MAL is playing with ${1:}" Doing "!setcrew Foo and Barr" does correctly output "!cmd edit crew MAL is playing with Foo and Bar" but it doesn't get evaluated so the !crew command is not updated.

pulsar willow
#

idk if i'm suppose to put it here

#

i would like to have that kinda of chatbox

#

can someone help me with that?

severe shell
valid swift
#

Ok ... I suspected that I might need a custom API. I was thinking about doing something like @mild cipher's awesome multi (#command-share message) but this would be excellent as the target command will be native and not rely on an API call.

severe shell
# valid swift Ok ... I suspected that I might need a custom API. I was thinking about doing s...

I didn't know about this multi from him, wow... I'm always discovering something new from him, it's incredible hahah
Well, I created a custom API just to have more advanced commands and one of them is almost what you want. It has a !setduo to update the command !duo (which is consulted using external Google Sheets). For your case it seems simpler than that as it won't need an external "database". If you want I can paste the code here and you can adjust for your needs, let me know.

opaque wasp
#

Any clue why .container isn't getting the color from the variable stored into :root{}?

proud spade
#
:root{ 
  --bg: rgba(29, 28, 28, 0.8);
}
.container{
width: 834px;
height: 166px;
background-color: var(--bg);
}

should work.

opaque wasp
proud spade
#

My 3 brain cells struggled like hell haha. Try to avoid naming your vars as actual properties if you can.

opaque wasp
proud spade
#

Been a long work day πŸ™‚

valid swift
severe shell
dense cypress
#

Does StreamElements even support Media Share / Media Request

proud spade
dense cypress
#

Sure thing

#

Am I allowed to post links in here?

proud spade
#

Give me a bit and I'll have an answer

proud spade
# dense cypress Am I allowed to post links in here?

.
Enable media requests here and set them to autoplay: https://streamelements.com/dashboard/mediarequest/general
Edit the settings to your liking, probably enable autoplay: https://streamelements.com/dashboard/mediarequest/settings
Create an overlay, Add Widget -> Engagement -> Media Request
Add overlay to OBS
Use !sr to request a video in your stream
Go back to https://streamelements.com/dashboard/mediarequest/general and make sure it says "Showing on stream" on the right side, not "show on stream"

dense cypress
proud spade
#

bleh

#

Click "Other" at the bottom of the menu and then "Media request"

dense cypress
proud spade
#

Are you signed in with YouTube?

dense cypress
#

yes

proud spade
#

Must not be enabled for YouTube.

dense cypress
#

let me try an experiment

#

Im gonna log in with my inactive Twitch account and see if its able to-

#

hopefully in a future update of Stream elements, media request can be compatible with YouTube streams

strong tulip
#

Yo, idk if that's how it's supposed to be but

#

getting current giveaway doesn't work

#

doesn't work by this func. also

keen stream
#

trying to modify the html of a widget, is it possible to add a "minimum amount" tag to this?

nova rock
fathom orbit
#

Is there any documentation on how to create settings like SE has for their hypeboss? Dropdown has a description for each mode and then theres both a number and checkbox for the follow damage. Are we able to do similar things or is it special for hypeboss?

solid beacon
#

Is it possible to parse a JSON response from an api within the context of a custom command?

ripe dew
#

I want to add a fade in and fade out to custom alert box, right now it is only animating the 'name' and 'amount', any way of doing this?

terse crest
ripe dew
hot trout
#

@solid beacon no, you need to either use a different bot (nightbot can do it) or create an external api service to do the query and format the response

solid beacon
trail sandal
#

Hello, I was looking at the different !so options is there a way in amazing shoutout or a standard shiutout command to have it play a clip from the person being shouted out twitch channel? I want it to play in the corner of my stream after the shoutout is made, and possibly add a sound effect with it.

solid beacon
#

Is there a way to add number formatting to say the ${channel.followers} variable and the likes? I'd like to add commas to the output of these variables for cleaner-looking numbers in a command response.

#

so instead of 1463 it'd show up as 1,463.

proud spade
#

Regional settings would be nice too, so you could have 1,463 or 1.463.

valid swift
#

I'm not aware of a SE widget that does it, but someone may have it.

valid swift
trail sandal
valid swift
#

Gotcha, yeah it is a separate browser source for me... but since I am newish to SE I still have a lot of in OBS sources and only use the SE overlays for data elements and alerts.

trail sandal
#

Also want to say keep up the good work. Just switched to SE and it is so much cleaner and nicely laid out. Loving it so far compared to my old bot program.

proud spade
#

<@&364840891023622144> in multiple channels.

hollow thunder
#

So i set all my timers to 15 mins for the online interval with 0 chat lines & the bot still seems to be spamming them I tried to set the timer to 5 mins in between them but still feel like it would spam. any suggestions? Wish all timers went off of just one timer setting instead of them all being on separate timers and chat lines πŸ˜„

steep venture
#

Hi there! A couple of questions regarding the Level Up Goal Widget; Could someone please help me with the code if needed?

  • Are you able to change the currency?
  • Can you set a specific amount to a level?
  • Can you swap between Tips and Subs?
elfin arch
pulsar willow
#

Hello

pulsar willow
#

I was looking through the stream overlay on the StreamElements website and found this part on charity and seasonal stuff. I came across a notifier for donations to Extra Life. Can someone please explain how this works?

keen ginkgo
#

hello everyone ! Sorry by advance for my english ! i want to know if is it possible to make a sound(+image/video on stream) by command in chat with stream element ? (i think like wizebot ?) maybe i must custom alerte widget with CSS HTML and JS ?

pulsar willow
keen ginkgo
proven crane
#

How do I make the symbols out of my chat?

#

Its to much seeing name and prime sub ect instead of the text

terse crest
proven crane
#

Jeah I only want to see name and text

#

but some has 3 badgets or 2 and this extends the chat to much

clever stream
#

hey all! Is there a way to add end credits to the end of a youtube livestream?

tame sparrow
#

Or check the widget script and modify the updated currency before it's applied.

terse crest
tame quarry
#

Had this in the help desk-twitch channel but realize it’s probably more for this channel. So will ask it again, sorry for the double post. Quick question, I was hoping to set up a custom command for !dadjoke I know there are some out there that will auto do it, but if I wanted to make my own database of jokes and have it pull randomly from that list, would I have to make my own custom database and API call to that database? I know a little about doing that but wasn’t sure if I was making a bigger problem for myself going that way if there was an easier solution.

valid swift
#

There are a few existing services that can do that for you.

#

Just a moment And I can make a recommendation.

#

Twitch center has a great one...

#

I'm not sure I can post it here. May I pm it to you @tame quarry

random geyser
gloomy kestrel
#

<@&364840891023622144>

tame quarry
#

Wow @valid swift thank you so much!! That looks like exactly what I was looking for. If there was more you can PM me.

proven crane
#

Some guys of you also have sometimes a "sound stuck" when a alert is playing?

#

Like a 1 or 2 sec freeze of your pc

#

im getting out of solutions

flint cedar
#

Hi guys, I am trying to customize a template chatbox overlay. I am having trouble with custom font, because the field ("enable custom fonts") is just not available within my template. Is there a way to add this field to the code? Thank you for your help

solid beacon
#

Is there a varaible available to apply formatting to ${channel.followers} or ${channel.subs} for use in the text output of custom commands, so instead of something like 12345 being reported, I can have an easier to read 12,345 reported instead.

#

That said, is it possible to perform scripting inside of Custom Commands?

elfin arch
#

Updated Level-up Goal - by Annedorko Widget : https://streamelements.com/dashboard/overlays/share/61c3e7b61c95fbbd4fb7c65d
Main changes are:
option to pick the goal (tips,subs,cheers or combined). If combined then there is a multiplier to convert it a "tip". I.E. 1 sub = $2.5.
-Set one of them to 0 to disable (i.e. you only want tips + subs)
Prefix input now; set currency $ or remove it for subs/cheers
Decimal formatting; either so $10.50 for tips or round to whole number (again for subs/cheers)
Main change to the Amounts: each level has it's own amount; once goal 1 is reached, it rolls into goal 2, etc. They are additive so if goal 1 is $10 and goal 2 is $25; then a tip of $20 will fill goal 1, then rollover $10 into goal 2; leaving the bar at $10/$25 for goal 2.

elfin arch
atomic sorrel
#

Hey, I have no clue where I should be asking this and have never worked with streamelements and most programming languages but was wondering if it would be possible to have a nested variable. So instead of having a !d20 command and a !d6 command, if just a !d command would work using whatever argument the user inputs. I tried ${random.1-${1}} but it seems to just be using the default ${random} command.
Additionally I was thinking about having a death count command per current game that is being played. Something that I would imagine would look like ${count ${game}} which doesn't seem to work either.
I'm assuming nested variables just don't work but I figured I might as well ask before giving up

manic thicket
#

Is it possible to have a widget that can integrate Throne Gifts? From their official documentation page, they say to setup as a browser source, but I think it would be a whole lot better if I could just add as a widget for my overlays from StreamElementts Dashboard.

hardy walrus
#

Possible? Yes.
Easy? Probably not unless they have hella good information with an API.

manic thicket
#

I do believe they have API source somewhere, as they can integrate with other platforms.

proper cedar
#

I don't know where to ask this otherwise, but I'm having some difficulty with google. I'm trying to ensure that my alert text stays within the confines of the alert image. I know that I can do this with CSS, I just have no idea how to do it within CSS. Am I in the right channel? If not, could you point me where to ask? If so, anyone mind helping me trudge through it?

hot trout
#

@proper cedar that's actually not easy to do, the easiest would probably be to define the exact width your text can be (i.e. the width of the background image) and set text-overflow in css which will let you cut off text that's too long with '…'

#

ah heck

#

can the bot be a bit more forgiving in this channel? it's absolutely impossible to support developers without links

hardy walrus
#

@hot trout it got whitelisted by the bot afterwards. No problem from now on.

#

All links usually get deleted once and then either approved or denied for later use.

hot trout
hardy walrus
#

Dev link.

hot trout
#

k

kindred hemlock
#

Hi, I would like to get my total number of subs and display it in HTML. How can I do this ?
Thank you in advance for your help πŸ™‚

clever stream
#

hey all! Does the data object that is read on 'onWidgetLoad' event, expire with time.

(data object means the obj param)

    //fancy stuff here
});

To explain with an example, If I stream on YT for 2 hours and load a widget in the end to read the recent subscribers within the 2 hr stream, can I get all the new subscribers within the past 2 hours from that data object?

terse crest
terse crest
#

But keep in mind that there are some things going on with yt itself and all events are sometimes delayed by a few hours

kindred hemlock
cerulean basalt
#

hello i have been googling and trying main ways to do this and im wondering is this in place. So i have made a command on streamelements to give channel points when i go live. but there is no Command Variables for it for example i want to give a certain amount to a viewer and in the twitch chat it show how much i have given to them but its not showing the amount I'm giving.
here is the command i have been trying to do < ${user} has been given ${points} fossils! > but the points are not showing the amount i am giving to that viewer. can someone please help me, really driving me nuts. also i know its on the loyalty area to give points but mine is usually off and i want a quicker and efficient way of doing it quicker when im live streaming.

clever stream
#

hey all! Is there a way to dock the css/js editor in the overlay editor, so that I can edit and see the results without closing it?

hot trout
#

nope

#

you're likely better off developing locally and then copypasting in the result

#

depending on what you're editing

frosty lion
#

Wondering if this was answered? Can't find it using search. I'm modding for a few streamers who are moving from StreamLabs to StreamElements. It would be great if my chatbot (including loyalty features) would still be usable for them.
I sent in the form, but receive an Asana link which doesn't give me access to view the status of the request.

still juniper
#

Hi there! first of all, Merry Christmas! πŸ˜„
quick question: is there a way (through the API or other programatically way) to show an alert to the stream, with custom text/data? I've never worked with the Streamelements API (or Streamelements in general) and quick searching the docs I didn't see anything

hot trout
#

The editor?

still juniper
#

Sorry if I'm asking something obvious, as I said I'm not familiarized with StreamElements (but considering alternatives to my current StreamLabs setup). Not sure if I can interact with the editor via code, the API docs didn't really help me figuring out if what I want is even possible.

For clarification, my end goal is to trigger an alert based on a custom action in the stream (handled on my side), but I want that alert to be queued/managed by the common alerts system (StreamElements in this case), so alerts use the system TTS or don't overlap, for example. With StreamLabs that's possible through an API call, so wondering if StreamElements supports it somehow

Any links to even basic docs are appreciated in case I'm missing key features of SE πŸ™‚

quick bluff
#

hi
is there a quick method for resetting goals status?
for example via HTTP request

valid swift
quick bluff
#

thanks

#

unfortunately i am inexperienced in API. can you make sure that sending the URL reset the total number of goals?

valid swift
#

I'm afraid it would be more complicated than that. If you are not able to use the API probably the easiest is have the session data widget open either from the dashboard (https://streamelements.com/dashboard/session) or the Edit Widget Data in OBS.Live.

tepid basin
#

Can someone help me alter my nightbot command so I can get it work on streamelements?

#

I can't just transfer it, seeing as nightbot argument thingies are different than se's bot

main escarp
#

Hi team! I know, it's not very likely anyone will reply on Christmas day, but I'll just leave my question for whenever anyone's available. Merry Christmas!!

I'm still figuring out the ropes around StreamElements (liking it a lot so far). I was wondering if there's a way to copy a specific image asset from an overlay to a different one. In this case, I have duplicated an overlay from a theme I'm using, but I'd like to use the same chat background on the new overlay I've created based on this theme (one has the cam boarders, the other has the chat and I wanted both). Much appreciated! .

severe shell
hardy walrus
#

@main escarpyou can duplicate the widget itself.

#

Click the widget in the layer list then the 2 boxes on top of another.

tepid basin
hardy walrus
main escarp
#

Thanks @hardy walrus !!!

severe shell
tepid basin
#

Thank you! AG_Bow 1_sing

still juniper
# hot trout The editor?

I've taken a glance at the editor and haven't seen any option/setting/link regarding hooking into the AlertBox to programatically trigger an alert

#

I'd appreciate at least just to know if this is something that StreamElements has support for

slate drum
#

Hi, I'm writing a custom command using customapi and I wanted to know if it were possible to parse the plain text output in the response field?

dapper surge
#

Hey can anyone here help me with the marathon timer on streamelements? Just need a little help with the JS to set a max bit limit

#

Should only take a few minutes

severe shell
severe shell
# still juniper I'd appreciate at least just to know if this is something that StreamElements ha...

The API docs are here:
https://dev.streamelements.com/docs/kappa

If you need to work directly on overlay editor, you can create a custom widget and click on + button > Static/Custom > Custom widget.
On the left panel, you click on Settings > Open Editor and you will have the HTML, CSS, JS, Custom fields to work. And you can use this link to understand how it works:
https://github.com/StreamElements/widgets/blob/master/CustomCode.md

Maybe the resumeQueue can help you with that, not sure

slate drum
severe shell
# slate drum So no splitting or anything of the like?

Nope. The result will be the exact output. For example, the command
${customapi.https://decapi.me/misc/currency?value=25&from=USD&to=NOK} will respond 25 USD = 221.43 NOK. You can add something before and after, but cannot insert or remove anything inside the response

still juniper
#

After spending some time with the documentation I still feel I'm missing some features that are available in the API. For example, I accidentally found out that https://api.streamelements.com/kappa/v2/speech is a valid endpoint for TTS, but I don't see any reference to it in the API docs

ancient forum
#

is there a way to get the chat image profile or icon, which appears on the left side of the chat screen on FACEBOOK, I'm trying to customize the "Boxed chat by Cocahh" for facebook. I tried to look into JS code using the code editor inside Stream elements. I can't seem to find anything that would give me an idea on how to go about it.

hardy walrus
terse crest
elfin arch
#

I wanna add onto that @still juniper. You will need a custom widget/overlay for sure; and to get your custom action from stream, you would either to code that into the overlay or if you are running a local bot then set it up as a websocket server and connect the widget to it to send events. Your widget would trigger from that. To add your widget into the 'global' queue so it doesn't play at the same time as other alerts you want to use: https://github.com/StreamElements/widgets/blob/master/CustomCode.md#resumequeue-method-and-widgetduration-property

still juniper
#

Thank you both for your answers

@terse crest A custom API wouldn't be the problem, I already have that on my server for other stuff, but the thing here is to trigger the SE alerts somehow.

@elfin arch I spent sometime yesterday playing around, and what you say matches my reasoning (I already have a server running so no problems at all to make a ws connection and send some events). But the main problem here is that a don't want a custom alerts widget, I just want to hook into SE default one. I want to have a central system managing all the alerts (so the streamer has a single configuration to go through, among others), and recreating a complete alert box from scratch is out of the scope. What I tried yesterday was to use a custom widget as a "proxy" widget. Such widget sent a CustomEvent of type 'subscriber-latest' (for example). However, the default alertbox widget didn't seem to listen/react to those events, not sure if this is expected or I just didn't set things properly (prob the first one)

terse crest
#

@still juniper I'm afraid you'll need to recreate all of your alerts in a custom widget after all, if you want all of them to be in one place. You can't modify default alert box

elfin arch
#

...well all of the normal alert box could stay the same.

#

the second part; for your custom hook might need to be a custom widget. with the last sentence you had; it is the former. Each widget is sandboxed so you can't trigger an alert from one "window" to another

#

there is some code magic you can do between 2 custom widgets to get them to talk; but the default alert box is heavily neutered when getting into custom code. ... all the code you can input is a few chain downs the 'if/or' flow; so it has to be a 'tip' and = to '$10' before the code runs

still juniper
#

Each widget is sandboxed so you can't trigger an alert from one "window" to another
Are they? I'd swear I had customwidget1 sent the event and customwidget2 would receive it, but maybe I'm wrong. That would explain some things anyway...

elfin arch
#

you might be able to (i've never tried this) but hide the alert you want for your custom alert in a tip that is like $99999 as a variation; then make an API call to POST that as a tip when it happens.

#

i think the alert boxes would pick up on that POST and then trigger the custom code you want inside of the alert box. .... that would save you having to set up the websocket stuff; but does create an awkward UI because it's hidden as a 'tip variation'

still juniper
#

That's definitely something I'll have to test, thanks for the idea! πŸ˜„

elfin arch
#

....cause i'm not sure if that is counted in the 'real' tip information streamers get and don't want to have one with a f'ed up tax report and needing to clean it all out.

#

ideally; you could hide that in a cheer of '0.5' cause it's really hard to cheer 1/2 a bit πŸ˜‰ (and again, never tested; so not sure if there is a sanity check for that)

still juniper
#

good advice there, I'd prob spend next Christmas in jail otherwise hahaha
I guess I'm tied to tips though, cause that's a the only thing I can POST through the API

broken fable
#

Hello all, dunno if iam on the right place. But somehow i can’t pay out the tip. Yes it is more then €5 so that it not the problem. Anyone knows the issues ?

elfin arch
elfin arch
broken fable
elfin arch
broken fable
#

Oke thnx!

pulsar willow
#

Are there any streamelements for it eval or equivalent?

mystic kraken
# elfin arch ideally; you could hide that in a cheer of '0.5' cause it's really hard to cheer...

I just tested with a tip amount of 0 rather than 0.5 and was able to get my variation alert to trigger. I guess "real" tip information would come from Twitch, but using a value of 0 wouldn't mess up any stats. I've been looking at ways of making more custom follower alert variations, without having to reinvent 99% of the wheel by using a custom widget, and doing it in a way that anyone could implement. This may be a way of doing it. Now, I just need to figure out how to send the alert message to SE from a bot.

still crow
terse crest
still crow
#

well I was at the time but I've since found the github with the template

#

so now it's in the html / css / js format

#

I just need to know what to write now

terse crest
kindred hemlock
#

Hi, I'm desperately trying to display the number of subscribers on my custom widget but I can't.
I have read the documentation in the show description but I don't quite understand πŸ˜…

empty rivet
#

Hey - no matter what i do , my chatbot continues to TTS the action (ie. username has gifted x subs to viewers, they have gifted x subs in the channel). I have ticked off all the options to TTS the action, including in the variations..I even ticked it back on, saved, exited it, then unticked it again, saved and exited out...

#

any ideas?

broken fable
#

Still not possible to pay out on Se.Pay are there known issues ?

uneven oxideBOT
normal belfry
#

was thinkin of making a widget that combines subs, bits and channel points

But would having a goal that mixes channel points, subs, and bits [but not asking for money] be against bits TOS?
just a percentage on the bar
or would that be giving monetary value to bits?

terse crest
#

Made that widgets myself and there's a few in #widget-share, don't see any problems here

normal belfry
terse crest
#

You're not selling anything for bits and not exchanging them, just counting. And actual monetary value of bits is publicly available, so it's easy to recalculate into your currency after all

#

Seems for me like you misunderstood the tos. Or am I FeelsDankMan

normal belfry
#

No I think you're right. I'm asking this cuz lookin through a bunch of msgs/posts in this server about this in the past, I've just been seeing mixed msgs everytime

terse crest
#

If you're not in top 10% (I bet you not) twitch doesn't give a single f about you, so I'd not worry

still juniper
# elfin arch let me know if that works πŸ™‚ ... also be sure to include the `isTest = true` in ...

for future reference, my two cents regarding tests:

  • There is no isTest in the tips API call, doesn't seem to do anything (understandably tho - seems only applicable to events within overlays)
  • Despite what's documented, the amount doesn't need to be an integer. Floating number with 2 decimals are supported (in fact you can send more decimals, but amount gets rounded later). So you can send $0.01, $0.02, etc
  • Yes, $0 is also supported. But not only that, you can even send negative values like $-1!
  • There exists the undocumented endpoint DELETE tips/:channel/:tipId, and calling it removes the tip from the revenue history (and thus from the tax info, although I think API tips don't even show up in that info based on my tests, but can't confirm 100% - better be safe than sorry). In fact, calling that endpoint also deletes the fake tip from the activity feed! That means it doesn't count towards totals and aggregates, although it still remains in session data. Pretty clean
  • Tip has to be marked as imported: true for it to trigger the alert automatically (otherwise it's sent to tip moderation queue)

So it's a feasible alternative for my use case. Definitely not the most elegant solution, but saves time and headaches reinventing basic stuff. I'd love tho to have a dedicated API endpoint for this, to trigger custom alerts within the native alert box. I really think SE would highly benefit from that

Big thanks to @elfin arch for the idea and @mystic kraken for their insights!

peak reef
#

I'm not sure where to ask this but I've been having trouble with stream elements website. Any time I try to go to my dashboard, immediately I'm taken to the splash/main page.

slim zodiac
#

Yeah, I was going to spend 50 dollars on their site this weekend but it was really buggy so I just found another way to donate money

#

It was requiring a youtube link, but not letting me select the time indexes I wanted to play. I would have rather just had the option not to include a youtube link if the time index thing isn't going to be functioning.

Or just have that as optional anyway.

paper canyon
#

Hi everyone, season greetings hope you all had a great holiday. I was just wondering if you could help me with the code line that needs to be added to labels (I.E Latest Sub or Top Cheerer) for their profile pic?

terse crest
peak reef
#

Thank you! @severe shell

severe shell
paper canyon
#

checking it out rn

proven crane
#

Have some trouble with the chatbox

#

Enter a username to ignore I type in the exact botname which appears in my chat and it still appears on the chatbox

broken fable
unreal matrix
#

Hey, does streamelements have any javascript eval support, like Nightbot? Trying to parse a json file and randomly choose one of the entries, but we can only figure out how to do so with Nightbot. However, we prefer StreamElements for workflow and usability

shut turtle
#

hi everyone! i need some help with wrapping my head around streamelements widget lingo.

#

i'm looking to make a widget that holds multiple pieces of stream data (latest/top sub, latest/top tip, cheer, custom text, etc), and can scroll them horizontally and update them live just like the existing widgets for those sorts of things

#

i can make a mockup if that would help, but basically what i need to start is help seting up a widget that more or less replicates the latest subscriber widget, but can have more text added to it!

#

any and all advice would be appreciated! i've combed existing widgets and the API guide on github, and maybe i just need more caffeine but to my novice brain it isn't quite sticking!

#

oh, hey - basically i'm trying to make the advanced recent events widget but it scrolls on one row! just found that, lol

hot trout
#

@unreal matrix nope

kindred hemlock
pulsar willow
hollow phoenix
#

Sorry to ask what is surely a stupid question but I cannot see how to make the font size in my alerts dynamic. Can someone point me towards it? πŸ™‡β€β™‚οΈ I saw in one person's screenshot for another issue they literally have a toggle for dynamic font size but I do not seem to have such a toggle.

severe shell
hollow phoenix
severe shell
hollow phoenix
#

It's follower/subs/raid alerts. I want the text to not overflow the box. Does this show what you need, @severe shell ?

tame needle
#

is there a limit to how long the html or javascript can be?

hardy walrus
#

Character wise not really.

#

But there is one if it get's too customized.

severe shell
# hollow phoenix It's follower/subs/raid alerts. I want the text to not overflow the box. Does th...

Okay, these ones does not have dynamic text, the dynamic text are for labels.
My suggestion is that you put the username in one line and the next text in other, for instance:
"Johnny
is now following"

However, if the alert you trying to setup is the ones the user can send a message (resubscriber/bits/tips), you can define the padding for the message, it will be on "secondary text > advanced" for that.

hollow phoenix
hollow phoenix
#

Another question. Is it possible to get the avatar of a user for use in an alert? For example: if @severe shell started following me could I include their avatar in the alert?

severe shell
remote token
#

Sorry to bother you, but can I still use "OBS Studio" with Stream Elements or do I have to download "OBS.Live" in order for it to communicate with Stream Elements?

raw igloo
#

You can use OBS Studio and just use a browser source for the overlay

#

I'm trying to share a widget I've made with other people by creating a link with dashboard/overlays/share in the URL but when people click it, it just sends them back to their homepage, is there something I need to set for permissions?

remote token
hot trout
#

OBS.live (now se.live) is a plugin for OBS Studio

raw igloo
#

Yea personal preference. It's just a plugin so if you like the plugin features then use it if not just stick to OBS Studio.

still juniper
#

Hi. I'm exploring SE websockets for emiting custom payloads. It seems widgets receive event:test events but not event ones. Is this expected? What's the difference between the two, given the goal is to send custom payloads? Is there any reason not to use event:test? Thanks

still juniper
jagged rover
#

anyone know how to change this to say 0/5 rather than 200/5?

kindred hemlock
elfin arch
uneven oxideBOT
#

@jagged rover ‡️

To reset goals:

  • from the Overlay Editor > Session data on top right (monitor symbol) > Goals tab > reset progress of desired goal
  • from the Dashboard > Activity feed on the left > Widget data on the right > Goals tab -> reset progress of desired goal

Note: Goal widgets (progress) only counts up and doesn't go down automatically, if you lose followers/subs.

still juniper
# elfin arch are you doing this inside of an Alertbox again or in a custom widget?

I'm now trying the custom widget approach to handle my own alerts (the tips workaround is a bit messy and doesn't scale well, so exploring alternatives). The goal is to have my custom events queued with the alertbox events (sub, bits, etc), so alerts/animations don't overlap. How to send those events and how to handle the queue is what I'm trying to figure out. I've managed to emulate a cheer-latest event of amount $0 by sending through SE Websockets an event-test. So although the event:test is not queueable itself, the cheer event simulated after is and I can use it to send my custom payload. But still feels hacky. Ideally I'd like to send my own event (if that's even possible). Using my own WS server would be a way, but then I don't know how my widget would hook into the global queue (I'm reading/testing all that I can before asking here but I'm having a hard time grasping the full picture of SE for now, so I apologize in advance)

elfin arch
#

this ties into all the other widgets in the 'main' queue; including the default alert boxs

elfin arch
elfin arch
hearty gulch
#

Good afternoon. Can't use editor in My Overlays. Says Uh-oh...
Overlay does not exist, even though i just added them from the gallery

still juniper
# elfin arch here's a quick example for the SE_API.resumeQueue; queue up a couple follower em...

That I've managed to understood so far about the queue. Issue is that ideally I want to emit my own events, and not use SE's built-in ones (i.e. tip-latest) (again, if that's even possible). And unless I'm missing something or misunderstanding, the queue is "attached" to the OnEventReceived and those built-in events. Because If I send a random event (from my own server even) to my custom widget, I don't see how the rest of widgets would understand they must wait their execution. As I said, I can use one built-in event with custom data, but I just feel there must be an easier or less hacky way to do this - for example, do custom tip widgets from external 3rd pages (e.g. Tiltify) usually queue with the rest of alerts or they just don't care as long as their alert is shown? I don't know if I'm maybe expecting too much from the platform and this is plain not supported/not why people create custom widgets (thanks btw, I really appreciate your time helping)

lament hazel
#

Hi, is there an example of a vote widget?

elfin arch
elfin arch
elfin arch
#

πŸ‘ ... i never tested that with the queue system; but it should work fine inside of it 🀞

still juniper
# elfin arch πŸ‘ ... i never tested that with the queue system; but it should work fine inside...

Checked your code, and indeed that's something I tried (and just re-tried) but unfortunately it doesn't work. I'm suspecting it has to do with the sandboxing of the widgets, since only the custom widget receives the CustomEvent, and it seems the global queue ain't aware of it either. I even tried dispatching a built-in event id instead of the custom one, and it doesn't queue with the alert box (log shows [QUEUE]: Broadcasting event (follower-latest) when simulating in the editor, but not when emitting the CustomEvent within the widget)

elfin arch
still juniper
#

Yep, the widget does queue if I let the editor be the one emulating/dispatching the events (supposing I use one built-in event id), just not when I emit them from within the widget

elfin arch
#

Hmmm, I'll have to check later... Never actually tested that part

elfin arch
unreal matrix
#

anyone know if it's possible to parse data in an api in a SE command?