nwithan8 / tauticord

A Discord bot that displays live data from Tautulli
GNU General Public License v3.0
114 stars 22 forks source link

[chore] Only auto-restart bot if specifically the config file has changed #154

Closed nwithan8 closed 10 months ago

nwithan8 commented 10 months ago

Some users seem to use the same mapped folder for both logs and config files, making "watch the /config folder for changes" the same as "watch the /log folder for changes", causing every log event to endlessly reboot the bot.

Rather than explicitly ignoring every single possible log file (the regex patterns promised by the PM2 documentation don't actually work, looking at the source code), we'll only specifically watch for changes to the /config/config.yaml file.