BlackyWhoElse / streamer.bot-actions

A collection of actions for streamer.bot coded by BlackyWerSonst
https://twitch.tv/Blackywersonst
84 stars 18 forks source link

[Feature] RewardRedemtion should be added to the chat log #64

Closed BlackyWhoElse closed 2 years ago

BlackyWhoElse commented 2 years ago

Is your feature request related to a problem? Please describe.

Currently, the original twitch chat shows redemptions. It would be cool if we could also show them over our overlay. These could use a different template that would be added to the template.html

Describe the solution you'd like

Describe alternatives you've considered

/

Additional context

grafik

BlackyWhoElse commented 2 years ago
{
  "id": "9d0911db-7884-4e0f-8cf4-c95c5765c2e5",
  "dateTime": "2022-01-31T03:10:23.3611616Z",
  "userId": 0000000000,
  "userName": "<user name of redeemer>",
  "displayName": "<display name of redeemer>",
  "channelId": 0000000, /* broadcaster channel id */
  "cost": 42,
  "rewardId": "41f257e9-9688-4944-9bf6-28cda1c3fa1f",
  "title": "Test Reward",
  "prompt": "",
  "inputRequired": false,
  "backgroundColor": "#63D0A9",
  "enabled": true,
  "paused": false,
  "subOnly": false
}
BlackyWhoElse commented 2 years ago

How to Update my theme?

Add this Reward template to your theme:

<template id="reward">
  <li id="{{msgId}}" class="{{classes}}" style="--rewardColor:{{backgroundColor}}">
    <div class="message">
      <span class="name">{{displayName}}</span>
      redeemed
      <span class="content">{{title}}</span>
      <div class="userInput">{{userInput}}</div>
    </div>
  </li>
</template>
BlackyWhoElse commented 2 years ago

Feature added to theme

BlackyWhoElse commented 2 years ago

Added new style to tarkov grafik