Th0rstenf / Rocksniffer-to-Streamer.bot-extension

A set of streamerbot actions interacting with the Rocksmith RSSniffer
MIT License
6 stars 1 forks source link

Read config always at start, at init? #101

Closed Th0rstenf closed 1 year ago

Th0rstenf commented 1 year ago

Discussed in https://github.com/Th0rstenf/Rocksniffer-to-Streamer.bot-extension/discussions/100

Originally posted by **kozaka-tv** April 11, 2023 I do not know, how often this the case would be, but maybe at the beginning it will be a problem for the users. If an user, has setup the app and created a timer, the first time the code runs, the Init will run once, and the configuration (GlobalVars) will be set and not red anymore. Like if I change some cooldown time from 3 to 5 for example, it will stay on 3 till I do not restart SB, or change the code and recompile and save. How could we solve this problem? Read always the config? Have an Init action? Read regularry after each 10 seconds? Idk. Any ideas?