private void setRandomNickColor() {
        if (!BotManager.getInstance().randomNickColor)
            return;

        countToNewColor--;

        if (countToNewColor == 0) {
            countToNewColor = BotManager.getInstance().randomNickColorDiff;
            Color newColor = new Color(Color.HSBtoRGB(random.nextFloat(), 1.0f, 0.65f));
            String hexColor = String.format("#%06X", (0xFFFFFF & newColor.getRGB()));
            sendCommand("#" + getNick(), ".color " + hexColor);
        }

    }