new function protect joinbot