JRoy / happybot

A multi-purpose, feature-full, and powerful, highly guild-specific, Discord Bot written in Java.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can we kill happybot every hour or something

JRoy opened this issue · comments

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?

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 I know, this was supposed to be a joke

a bad one at that