Code on PastebinModule Usage:
Set orders:
/tell bot !orders blah blah blah
/g bot !orders blah blah blah
Clear orders:
/tell bot !orders
/g bot !orders
When orders are set, a cron job is setup. When orders are cleared, the cron job is unset. I'm still fuzzy on how exactly this works, I just borrowed the method from RaidTime.php and crossed my fingers, and it worked.
There are three ways to clear orders: via tell, via pgroup, and cron.
Tell, pgroup, and cron all call the same clear_orders function when orders are cleared.
The problem:Orders are cleared and do not get sent out when a user joins the private group when orders are cleared with a tell or via pgroup, but when orders are cleared via cron users still get an orders tell when joining the bot.