Hook the bot reference before onModuleLoaded

That way the function has access to the bot reference aswell.