#dev-chat
1 messages · Page 72 of 1
no its not that token
looks like you need to go to jebaited.net and get a token
im surprised this isn't a built in function in the overlay, i could have sworn it was before but i guess not
i see. and for scope i only need botMsg right?
yup
however when i put in that token into the shoutout 2.0 js it doesnt work but it does work when manually going to the url so youll probably run into the same issue and need to figure out why
this starts to sound like a task for the next day... it is close to midnight here...
so but now i can hardcode the token in the JS code i guess
good luck
thanks. anyway thanks for all the help. if you have any idea bout the scroll issue when saving overlays I would really appreciate a hint. but also i'm out for today
I'm getting this error when trying to use the oauth authorize:
{
"error": "server_error",
"error_description": "The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
}
Do I need to fill the form even for testing with my own account? I don't wanna apply for an application right now cause we are just doing a prototype for thecompany I work before having a full application scope
Check out this message and the answers just below it. TL; DR seems like you need to fill the form even from testing with your account.
#dev-chat message
I managed to grab my token from the dashboard and is now working
thanks anyway
JWT token
yes
There are no way to use custom currency for tips right? I wanted to implement donations with crypto
Hi, is it possible to add a song to sr with it being the first in the queue or changing the queue order
Did you ever figure out a way to embed twitch clips into an overlay?
from what I concluded, it's not possible without some hacky service running on a different website to download the videos (against twitch TOS)
You can use a service like seen.gg to do it.
right but we want to be able to do it in an SE overlay
but there's restrictions on iframe origins or something preventing it
I beg to differ lol
i tried for days... i forget exactly what the issue was but it was some restriction with iframes in SE overlays
This is done from within SE
link doesnt work
Ugh. Silly twitch
i'm still poking at it but i can't get passed the CSP issues that PizzaMark mentioned months ago. at this point i might try to just locally host the html w/ the embed and add that directly in obs
like i said i tried for days. this message gives some insight into the issue I was having, in order to pull a clip file from Twitch you need to pass a "parent" in the iframe and no matter what domain i passed in, it wouldn't work, and i think it had to do with origin details being blocked or something.
i read through that. the twitch documentation says that localhost is an acceptable parent so i'm hoping i can do that to work if i host the html locally.
i mean i have successfully pulled a clip using the documentation on my own website, but when its put in an SE overlay it doesn't want to work
maybe i can use my site to pull the clip and then iframe that in the SE overlay lol
and iframe within an iframe.. does that even work? 
yeah, that works but it shouldn't bypass the CSP issue -- i would expect you'd get the same error
well from twitch's POV its just my site accessing the clip which works.. it wouldn't know about the other iframe hosting it
i think?
if you have it working on your site, you could add that direclty in OBS... not ideal I know but could be workable
care to share some code?
if im going to be 100% not really lol. i say that in the nicest way possible
just wanted to show it can be done
i give everything away for free. gotta keep some stuff for myself
well can you at least say if you used this or something else? https://dev.twitch.tv/docs/embed/video-and-clips/#non-interactive-iframes-for-clips
i have not used any iframes
..interesting...
i used to do it like this. grabbed game image, title, and clips. and color matched the animated background.
you're two clicks away... settings -> open editor 🙂
haha i broke my brain trying to get it to work.. no iframes is really throwing me for a loop here. because you can get the embed url from the Twitch API but in order to play it twitch makes you put it in an iframe
i stopped giving cool stuff away when i would swing by a streamers channel. and they would take credit for my stuff. at that point. i said im not giving stuff away
totally understand, i respect it. just a gentle nudge.
ha oh i get it. i just mainly showed to show to say, don't give up. it can be done
thats actually helpful tbh, was close to giving up
and its all done in the overlay? no code running on another site?
ugh
well good luck, i tried for days, maybe youre a better coder than me haha
i believe i even tried to set up a scraper on my web hosting that goes to the clip page and finds the mp4 file to send back to the overlay.. but i had some issue with that
but since its shared web hosting i couldn't run selenium or something because that needs a chrome runtime.. i forget, this was months ago i worked on it
https://discuss.dev.twitch.tv/t/clips-api-does-not-expose-video-url/15763
#widget-share message
now you have everything you need in order to find a way to embed twitch clips into SE custom widget 🙌🏻
i looked at that widget previously, it uses some external service https://thefyrewire.com/login/instant-replay
also, that twitch forum post is outdated and does not work, i tried it
trust me, inside that widget there is something useful
you know what.. you're right.. when i saw the external service i didnt dig anymore because i figured that website was the one returning the mp4 but it looks like its not
the fyre api just makes the clip looks like...
thanks @opaque wasp i will look more into this. @halcyon shadow ^
oh my god it works
Hey, im struggling to find info around redemption events, so lets say I want a stream perk to trigger a custom widget rather than the regular one, is there a way to do that?
Also I am using StreamerBot and saw that had integration with SE but turns out they can only pull in events on tips/merch purchases, is there no way to pull in events around redemptions of stream perks?
Give me a couple days. I'll get you guys the widget. I feel bad you've suffered for this long
Docs missing information about redemption events, I posted an issue on github where you can find a few infos about it tho
https://github.com/StreamElements/widgets/issues/34
CustomEvent.type: redemption and CustomEvent.type: perk are not mentioned into the CustomCode.md documentation that's an heavy lack since a lot of creative and helpful widget could be devel...
Hi. In the Loyalty settings are only 20 users possible for ignore. Is it possible to increase this?
No it's ok I got it working
See.... I knew you could do it
I accidentally delete my overlay it's possible to restore it?
If you mean from the overlay library then no.
Hey, im not sure this is the right place to ask, correct me if im wrong. Is there a way to reedem somthing from the SE store using API?
Hey, had a sponsorship problem that StreamElements was looking into for me, said it would take up 6 weeks and to expect a response within that timeframe but it has been 6 weeks with no response. Was hoping I could get an update or talk to someone about this. Thanks
What is the ticket number?
Since this is a sensitive matter, we will only contact you via Email for updates on this.
Alright thank you, 227487
hi sorry for bringing up a past topic but I would like to consult with the changes you have done with the emojiRotator.
in summary, I am getting the following error:
error: "ERR_BADAUTH"
nonce: ""
type: "RESPONSE"
The following are the variables I use
JSON.stringify({
type: 'LISTEN',
data: {
topics: [this.topic], <-- channel-points-channel-v1.<channel_id>
auth_token: JWT Token from streamelements
}
}));
my understanding is that since SE is the one accessing the twitch api, I provided the JWT token for it instead.
is this possible? or should I retrieve the authentication token from somewhere else?
Hello!! I'm looking for help with setting up advanced commands in Stream Elements. I want to create a minigame for users in my channel. It's a similar minigame to dueling though it will not use SE Points. If anyone could help me with this please message me. ❤️
Has anyone found a way to create an auction system? When we do viewer games, I'd love for viewers to essentially auction their StreamElements points & the highest bidder wins that "slot" for the auction item (playing in a viewer game).
For the users that bid but weren't the actual "winner" they'd just receive a refund of their StreamElements points
Are there any actual developers in this Discord???
Yes, but, it's also the weekend so responses are bound to be slower. Do you have any examples of what you're trying to make?
Honestly the deeper i get into researching the issue, the more I come to realize that I don't think this is possible which is really unfortunate.
Ultimately, the command system I want to create would have the power of what currently is a module, like dueling, and gambling.
I wanted to create a dogfighting mini-game that would function like this:
Player1 shoots Player2 with a missile.
Missile has % chance to hit.
All players have each successful hit counted and saved.
Players are saved to a leaderboard along with total amount of hits they logged.
Optional Parameters:
Players can choose guns/lasers or missiles.
RNG distances that impact % chance to hit for each.
Other games like lx's "Bank Heist chat game" were realized as custom widgets.
(You can find said example in #widget-share #widget-share message )
In case you're not familiar with custom widgets:
They're composed of HTML, CSS and JavaScript Code (also JSON is involved for the widget interface in the overlay editor -> the "Fields" tab).
I assume you can pretty much ignore the HTML and CSS part, as you only interact with users via chat.
So the game logic is defined in the "JavaScript" tab and any changeable parameters in the "Fields" tab.
Custom widgets cannot post messages to the chat on their own, the above example uses https://jebaited.net/ for that.
Login page
Hello, I'm a relatively intermediate HTML/CSS dev and I'm looking to experiment with custom widgets. I'm trying to calculate (and display) an equation that adds together subscribers and followers, and this is what I have currently in HTML:
<script>document.write(${channel.subs} + ${channel.followers})</script>
Usually something like this would work fine for displaying a number in an HTML page, but for some reason it doesn't output anything at all. Does anybody know why this is? Thank you!
(Sorry, put the question in the wrong chat)
its a problem with the widget not recognize the variables, I think?
probably just gonna make something custom in OBS, Streamelements' structure is simultaneously too oversimplified upfront and too complicated in the code side
I would do something like:
HTML:
<div class="main-container"></div>
JavaScript:
window.addEventListener('onWidgetLoad', function (obj) {
const data = obj["detail"]["session"]["data"];
const followerCount = data["follower-total"]["count"];
const subCount = data["subscriber-total"]["count"];
const mainContainer = document.getElementsByClassName("main-container")[0];
mainContainer.innerHTML = followerCount + subCount;
});
Hey, still haven't gotten a response I would really appreciate if I could please talk to someone about this and figure it out.
Hey, we're still investigating this matter. Once we have an official response and decision, we will let you know. Thank you for your continued patience while we investigate this matter
Alright, do you know a time estimate or is it unknown
I don't want to give a false ETA, so it's currently unknown
Alright
Thanks for being real with me appreciate it
If you guys need to talk to me to help figure stuff out please do
Hi I'm PlueJuice, I want to start making my own custom widgets for YouTube livestream. I researched a bit and found out, that without coding I think I can't do custom widgets. So basically I'm a coding beginner. Am I in the correct channel?
Yes! If you have questions about custom widgets, just shout and we are here to help when possible 🙂
This is my basic idea rn.
My very first problem is. How do I learn coding with html, CSS, JS and Field Json to execute my idea?
So I can use the coding in SE. Sry if my questions aren't specific enough atm.
The current website I'm reading is htmldog.
I made something like that a while back. Except a few more things to it
Woahh that's way to advance for me.
How did you learn coding?
I've been doing coding since angelfire and geocities lol
I'm reading about tags, elements and attributes rn...
And I'm confused how I will apply this.
My suggestion is to get some widgets, learn how they work
Ahh so "reverse engineering" then.🤔
I'll try that out tomorrow.
I liked c4ldas answer for a similar question:
#dev-chat message
It's also a good idea to tackle one problem at a time and to build some smaller prototypes to get a better understanding of how the final version should be structured.
Hey, sorry for the late reply. Here you go #dev-chat message
https://github.com/thekillgfx/SE-PubSub/blob/main/SE-PubSub.js take a look at the commented part below, it contains an example
That's easily achievable via custom widget. You can access user's SE points via API, check out docs under *single user *.
https://dev.streamelements.com/docs/kappa/b3A6NTM5NzE3NQ-channel-user
If you're looking for someone that could work on that for you, feel free to shoot me a DM
thanks! I will look into this, thanks for sharing 👍
Sorry for the ping, but I was just wondering if you'd heard back on this, or if there's anything I can do to help or anyone I could reach out to as well?
I forwarded a request to the staff team, I'm waiting on a response
Hey everyone 🙂
I've been trying to help out a friend setup his stream overlay (long overdue tbh).
I wanted to build a simple custom widget that reads stat APIs and displays them on the overlay. So basically what the FortniteStats template does.
Unfortunately, I am quite new to this, so I may be doing something stupid, but all my API requests seem to be blocked:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://API. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 200.
This seems to occur with my api but also with the unchanged FortniteStats template code. Could this be a problem with my browser's security settings? I've tried a bunch of "workarounds" but they all fail, I'm out of ideas :/. Thanks in advance 🙂
Can the widget code on SE Github be used for commercial purposes? Or it depends since it doesn't have a license?
For reference, I'm using code from custom chat by Lx.
@viral patrol
Hey, I have been working on some custom overlays and I have a question regarding the "sessions". Is it running a session while in the overlay editor?
Hii! I was hoping you could help me with this! What is the CSS code to make the € + amount a different colour?
<span style='color:#000000 !important'>€ amount</span> or assign a class to the span and then controll it via style tab
I'm using the css code in the custom obs field, the code you gave me isn't working
You'll need to edit the code directly via SE's overlay editor for the kind of effect you're trying to achieve.
It's the donation ticker from streamelements, how do I enter the overlay editor?
Where did you get it?
I looked into the HTML generated by this widget and seems like you can not achieve what you want with it.
Oh okay thank you for letting me know! ♥
Hey, so I've got some JS a friend did for a widget of mine and I wanted to change it, but I do not speak JS, lol. The subscriber goal works just fine, but the tip goal (based on tips during the session) doesn't display correctly. Can anyone fix it?
window.addEventListener('onWidgetLoad', function (obj) {
let data=obj["detail"]["session"]["data"];
currencyCode=obj.detail.currency.symbol;
console.log(obj.detail);
console.log(data);
$("#subscriber").text(data["subscriber-total"]["count"]+"/35");
$("#tip").text(data["tip-session"]["amount"]+"/5.00")
if(data["tip-session"]["amount"] > 0 || data["tip-session"]["amount"]==undefined)
{
$("#tip").text(data["tip-session"]["amount"]+"/5.00");
}
else
{
$("#tip").text("0"+"/5.00");
}
});
window.addEventListener('onSessionUpdate', function (obj) {
const data = obj.detail.session;
$("#subscriber").text(data["subscriber-total"]["count"]+"/35");
if(data["tip-session"]["amount"] > 0 || data["tip-session"]["amount"]==undefined)
{
$("#tip").text(data["tip-session"]["amount"]+"/5.00");
}
else
{
$("#tip").text("0"+"/5.00");
}
});```
What does it display right now and what is in the CSS code?
Does it by any chance say "undefined/5.00"?
I don't think that's even possible. Probably SE's events emulator isn't updating tip-session and that's it.
Right now it's blank, here's a screenshot.
Here's the css:
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap');
* {
font-family: 'Quicksand', sans-serif;
overflow: hidden;
margin: 0;
padding: 0;
}
#goal-labels {
font-size: 20px;
letter-spacing: 2px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
color: #f4dd7a;
font-weight: 700;
text-transform: lowercase;
padding: 7px 0 0 0;
}
#goal-labels > div {
display: flex;
justify-content: flex-end;
align-items: center;
}
.subscriber-goal {
padding-right: 30px;
}
#tip, #subscriber {
display: inline-block;
padding: 0 0 0 10px;
color: #ffffff;
font-weight: 500;
letter-spacing: 2px!important;
}
Totally blank! I've got the screenshot just above now
This is more related to the server that provides the API than your browser. It is blocking the access to the API. There is not much you can do for that, unfortunately (unless you have another application to work as a proxy). Here you can find more information about CORS: https://www.youtube.com/watch?v=PNtFSVU-YTI
It seems to be a silly question, but did you create the div for #tip?
I tried your code and it looks fine to me. When you load the widget, are you able to see the tip-session value on console?
In case the value is not there, go to the session data (the screen with the gears icon on overlay editor) > Session Data and add a value to "Tips amount". Save the overlay and refresh the page to check if it works. In case it works, you can change the "Tips amount" to 0 again
will SE ever have patreon integration?
We don't have this answer, but you can use the "Patreon Alerts" widget from #widget-share (there is a video explaining how to use it):
#widget-share message
oh that's awesome, thank you for that
That was indeed the issue! The github templates having the same problem really threw me off, would be cool if they worked out of the box, made me think my setup was broken :/ thank you for taking the time to reply 🙂
Could you make an example of those commands? What kind of event or alert would you like to play?
Ok now I get what you meant. You can easily listen to chat messages via onEventReceived looking for message type listener.
https://github.com/StreamElements/widgets/blob/master/CustomCode.md#on-event
const listener = obj.detail.listener;
const msg = obj.detail.event.data; //you should probably encode this
if (listener === 'message' && msg === '!your_command'){
// trigger what you need
}
});```
Yes, definitely.
Hello, where can I find a list of fields available for custom overlays and more generally documentation about this? I am looking for a dateTime picker type field Edit : i found this type "datetime-local" who does the job but if someone have a doc I still take it 🙂
https://github.com/StreamElements/widgets/blob/master/CustomCode.md#json It states all of the possible field types. The rest is also quite useful in general.
Seems like datetime-local is working properly even if not documented. I suggest you to console.log() its value to see if it returns a string or maybe Date object. Right now I'm AFK so I can't check by myself.
@tranquil steeple @opaque wasp Thanks for your answer, in case someone need it, it return a string
Unsure where to put this, so I'll just put it here and maybe you guys can help me out. Sent in to SE Support on Twitter:
I'm using a custom font in StreamElements. It works in all of my overlays. However, it's not working on my donation goal bar & it's driving me insane. I can't figure it out. I've saved, I've deleted and reapplied the CSS in OBS. I can't figure it out
It's showing up correctly in StreamElements, but OBS is using like Times New Roman or something
My font is installed on both the gaming pc & the streaming PC. The overlay won't show the correct font on either PC in OBS when I bring in the browser source. Idk what I'm doing wrong.
Is there anyone that can help with Alert box inport issues i am having with importing SLOBS to SE.live
specifically the alert box.
@delicate patio You seem to be one of the few Staff online that isn't on DND, so I figured I'd ping you to see if you know anyone who may be able to fix my issue /:
@wintry crest ⤵️
Not all staff are able to assist with support issues. Please refrain from pinging them or sending them DMs unless asked to.
👍🏾
It would be helpful to be assisted by a person rather than a bot, I must say. But, I definitely recognize that there are others that need help besides me as well. I'll be patient :p
Not sure if this is the place to ask this but, how do I share a widget I've made and configured on SE with someone else?
I've used widgets that creators have made and shared in the past, but it doesn't seem to work when I do it... :/
Ignore my previous question, I just found out you need specific permissions to share widgets xD.
The easiest solution is to get the Editor role for the other SE account.
If you now copy the overlay it will ask to which account the copy should be added.
Could someone help me with detecting the tier of a twitch sub? It works perfectly when emulating it in the overlay editor, but it breaks when actual tier1+ subs come in when live.
https://github.com/omgitsmoe/point_goal_widget/blob/master/widget.js#L85
Sorry, I've been away from my PC for the last couple of days! Do you mean to achieve something like this for the tip ticker? If so, you can use this template and replace the colour with your own:
{name}: <font color="#ff0000">{currency}{amount}</font>
YES thank you!!
I was assuming he was just testing within the editor and somehow emulated tips aren't added to tip-session like subscriptions do.
Can I ask how did you come up with this? I tried to help previously but didn't find anything about this.
You are asking the one of the most creative guys from this server!
😄
thank you
Is it possible to change withdrawal adress i mean IBAN because i missclicked and its wrong
They accepted it Lol
Sorry for the late reply! Both the tip and subscriber divs are here:
#tip, #subscriber {
display: inline-block;
padding: 0 0 0 10px;
color: #ffffff;
font-weight: 500;
letter-spacing: 2px!important;
}
I think my big thank you comes from the session data info! That's what I was missing to test things!
I do see that say, $12 is read as just 12 and not 12.00, is that a limitation with StreamElements or is there a way to include the decimals? Either way is fine with me, now I'm just asking for curiosity's sake
@marsh pollen ⤵️
Please contact us via email for support with SE.Pay. You can use our contact form here: https://streamelements.com/contact Thank you.
data["tip-session"]["amount"].toFixed(2) should make it
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed
Thanks so much, I appreciate the help!
I’m not sure where to ask this but how do I change my bank info for se pay?
@stable anvil ⤵️
Please contact us via email for support with SE.Pay. You can use our contact form here: https://streamelements.com/contact Thank you.
Hi, I am having a problem with the credits roll widget. The widget works but it shows the last stream events and not the one I am finishing at the moment.
Hey there, I'm sure if something is in the works but Streaming Games on TIKTOK Live is becoming a thing Faster and faster everyday. It would be GREAT if Stream Elements had some Integrations with Tiktok. like Overlays that communicates the followers, Dono, SUBs, polls and more. Right now. There is nothing for the streamer that using TIKTOK LIVE via Desktop
@somber sentinel ⤵️
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.
hey, how can i change the css code of contest widget?
I would say directly via OBS browser source option, you can see div IDs via dev tool
Hello, quick question, is there any way to easily share a custom widget with others, without having to manually copy/past the code, without submitting it to StreamElements?
Hey guys! I would like to show profile picture on chat overlay. Can I get the picture somehow without fetching a link everytime? This "obj.detail.event.data" doesnt have avatar
@flint sable Getting added added as a channel editor. Otherwise no.
Ahh, okay. That's a shame.
Thanks
I tried to used this, avatar is delay for the next message picture. I mean if I send a message, the avatar will show on the next message.
fetch('https://api.streamelements.com/kappa/v2/channels/'+USERNAME+'/').then(response => response.json()).then((profile) => {
profile_image = '<img src='+profile.avatar+' class="avatar">';
});