fix for !logs crashing bot