@@ -0,0 +1,1517 @@
+package com.nincraft.ninbot.components.fun;%0A%0Aimport com.nincraft.ninbot.util.MessageUtils;%0Aimport lombok.val;%0Aimport net.dv8tion.jda.core.entities.MessageChannel;%0Aimport net.dv8tion.jda.core.events.message.MessageReceivedEvent;%0Aimport net.dv8tion.jda.core.hooks.ListenerAdapter;%0Aimport org.apache.commons.lang3.StringUtils;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.Random;%0A%0A@Component%0Apublic class Dadbot extends ListenerAdapter %7B%0A%0A    private Random random;%0A%0A    public Dadbot() %7B%0A        random = new Random();%0A    %7D%0A%0A    @Override%0A    public void onMessageReceived(MessageReceivedEvent event) %7B%0A        if (!event.getAuthor().isBot()) %7B%0A            parseMessage(event);%0A        %7D%0A    %7D%0A%0A    private void parseMessage(MessageReceivedEvent event) %7B%0A        val message = event.getMessage().getContentStripped();%0A        if (StringUtils.isNotBlank(message) && message.split(%22 %22).length %3E= 1) %7B%0A            String first = message.split(%22 %22)%5B0%5D;%0A            if ((first.equalsIgnoreCase(%22I'm%22) %7C%7C first.equalsIgnoreCase(%22im%22)) && checkChance()) %7B%0A                hiImDad(message, event.getChannel());%0A            %7D%0A        %7D%0A    %7D%0A%0A    private void hiImDad(String message, MessageChannel channel) %7B%0A        String stringBuilder = %22Hi%22 +%0A                message.substring(message.indexOf(' '), message.length()) +%0A                %22, I'm Dad!%22;%0A        MessageUtils.sendMessage(channel, stringBuilder);%0A    %7D%0A%0A    private boolean checkChance() %7B%0A        return random.nextInt(100) %3C= 10;%0A    %7D%0A%7D%0A

Add Dadbot