Can we kill happybot every hour or something
JRoy opened this issue · comments
Josh Roy commented
the jvm lets to collect garbage, meaning our timers get collected. (why don't the jvm garbage collect the entire bot because bot is garbage??!)
Um so:
- Fire a webhook(?) in #general every x hours with the eric andre "we'll be right back" thing.
- Kill Java Process
- The bot restarts with its timers in tack.
- Profit?
okx-code commented
This is honestly just a workaround for bad code. You need to just make sure the timers are referenced to and don't get garbage collected.
okx-code commented
a bad one at that