Closed diegoveloper closed 4 months ago
Thank you.
I pushed an update for you. Specify chatimg
with a URL in the data object, and it should no longer pull from Twitch the avatar image. It will use whatever is specified instead, if available.
Thank you.
I pushed an update for you. Specify
chatimg
with a URL in the data object, and it should no longer pull from Twitch the avatar image. It will use whatever is specified instead, if available.
Thanks @steveseguin , do we need an update on sampleapi.html
? or where we can send the chatimg?
does this help?
var data = {};
data.chatname = document.getElementById("namesenderfake").value;
// data.nameColor = "";
// data.chatbadges = "";
// data.backgroundColor = "";
// data.textColor = "";
data.chatmessage = document.getElementById("msgfake").value;
data.chatimg = document.getElementById("avatarfake").value || ""; // will use Twitch API to get avatar is not specified
data.hasDonation = document.getElementById("donationfake").value;
// data.membership = "";
data.type = "twitch"; // twitch.png gets used as the source icon, as a result
post({"extContent":data, "apiid":WID});
yes 🙏🏽
On Tue, May 7, 2024, 7:38 PM Steve Seguin @.***> wrote:
image.png (view on web) https://github.com/steveseguin/social_stream/assets/2575698/5fad3096-7b31-4be6-bc94-7ad2883b3cc7
does this help?
var data = {}; data.chatname = document.getElementById("namesenderfake").value;
// data.nameColor = ""; // data.chatbadges = ""; // data.backgroundColor = ""; // data.textColor = ""; data.chatmessage = document.getElementById("msgfake").value; data.chatimg = document.getElementById("avatarfake").value || ""; // will use Twitch API to get avatar is not specified data.hasDonation = document.getElementById("donationfake").value; // data.membership = ""; data.type = "twitch"; // twitch.png gets used as the source icon, as a result
post({"extContent":data, "apiid":WID}); ```
— Reply to this email directly, view it on GitHub https://github.com/steveseguin/social_stream/pull/223#issuecomment-2099525272, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABFL3UFLKMD34KNI3JV2RVTZBFXYXAVCNFSM6AAAAABHL6AB76VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGUZDKMRXGI . You are receiving this because you authored the thread.Message ID: @.***>
Fixed a typo on
request
word.Taking advantage of this PR, one question @steveseguin , how difficult is to add a new field on this form to insert an image link to use as avatar instead of using the Twitch -> account -> avatar.
Thanks for this great tool!