if(message.equalsIgnoreCase("!random")) { Random generator = new Random(); int randomNum = generator.nextInt(); sendMessage(channel, "Random: " + randomNum); }