TrojanerHD / TrojanerBot

My discord bot
MIT License
4 stars 2 forks source link

Only send live notifications if stream has not been restarted #78

Open TrojanerHD opened 1 year ago

TrojanerHD commented 1 year ago

Currently, the bot sends a notification every time the stream has been restarted (after five minutes of being live). It would be appropriate to add a flag last-live or abuse the started-at tag to store the time the streamer was last live. If that time is less than 10 minutes ago e. g. and the streamer goes live again, don't send a message again and instead start maintaining the old live messages again.