sogebot / sogeBot

sogeBot - Free Twitch Bot built on Node.js
https://sogebot.xyz/
GNU General Public License v3.0
289 stars 65 forks source link

Problem with global variables in timer responses #724

Closed lommes closed 6 years ago

lommes commented 6 years ago

Expected behavior

I expect global variables in responses to be replaced with their value, e.g. $followers -> 100

Actual behavior

It is converted to plain text: 'Current followers count' and this instead of 100 is written to chat.

Steps to reproduce

Create a timer and select a global variable in response.

Additional informations

2018-02-05T07:46:24.394 >>> ======= COPY DEBUG MESSAGE FROM HERE ======= [exebob] 2018-02-05T07:46:24.411 >>> GENERAL | OS: npm/5.6.0 node/v9.4.0 linux x64 | DB: nedb | Bot version: 6.0.0-SNAPSHOT | Bot uptime: 929.917 | Bot lang: en | Bot mute: false [exebob] 2018-02-05T07:46:24.459 >>> SYSTEMS | timers, customcommands, keywords, points, price, songs, alias, moderation, ranks, raffles, queue, cooldown, highlights [exebob]
2018-02-05T07:46:24.489 >>> WIDGETS | eventlist, ytplayer, raffles, chat, twitch, soundboard [exebob] 2018-02-05T07:46:24.504 >>> API | HELIX 60/0 | KRAKEN 81/17 | TMI 32/0 [exebob]
2018-02-05T07:46:24.520 >>> WEBHOOKS | [exebob] 2018-02-05T07:46:24.525 >>> OAUTH | BOT true | BROADCASTER true [exebob] 2018-02-05T07:46:24.535 >>> ======= END OF DEBUG MESSAGE ======= [exebob]

sogehige commented 6 years ago

How did I miss that...Thanks for report!

sogehige commented 6 years ago

Workaround for this issue is to create timer response through chat, UI is incorrectly saving global variable as description text