Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Recently purchased the social bundle and have gotten great value out of looking at the code and just playing with it and the things I’ll be able to add to my stream, so thank you!

I’m having difficulty getting Discord triggers to work though. On the Settings page what am I supposed to put for the ‘Discord Server’ field? The name? The ID of the server? Leave it blank? Can’t seem to find this info anywhere, and I keep having it say there was a discord error, and it’s reconnecting. Also it does seem to relay messages, but, I can’t get any of the actual triggers to work.

Hi Pixie! You don’t have to fill out the Discord Server ID at all. That’s only used for emojis. If it’s erroring out, you might be giving it the wrong Discord Bot Token or Twitch Username. Make sure you follow this guide (especially the part regarding grabbing the bot token). https://sammi.solutions/extensions/social/discord-relay#pills-setup. Also, in your Open Relay button make sure you checked ‘Discord Trigger’. Hope that helps1

It helps! Thank you, everything’s working. I do see a lot of failures during

    async GetProfileImages(e) {
        await fetch(`https://api.twitch.tv/helix/users?login=${e}`, { headers: { "Client-ID": TWITCH_CLIENT_ID, Authorization: `Bearer ${DiscTwitchRelay.settings.oauthtoken}`, "Content-Type": "application/json" } })
            .then((e) => e.json())
            .then((e) => {
                e.data.forEach((e) => {
                    const t = e.profile_image_url || e.offline_image_url;
                    DiscTwitchRelay.chattersImgUrls[e.login] = t;
                });
            })
            .catch((e) => console.log(e));
    },

but, everything does appear to be working now! I have had an amazing time reading through your code and learning how to interact with SAMMI in new ways and using it to play with things on my stream. Thank you! <3

Huh, weird! Maybe it wasn’t grabbing and passing the token to Twitch properly for some reason. Glad you were able to get it working though, and thank you as well!