/FileExtraction/Java_unseen/DarkiBoi_Osiris/src/main/java/me/finz0/osiris/command/commands/AutoReplyCommand.java
package me.finz0.osiris.command.commands;

import me.finz0.osiris.command.Command;
import me.finz0.osiris.module.modules.chat.AutoReply;

public class AutoReplyCommand extends Command {
    @Override
    public String[] getAlias() {
        return new String[]{
                "autoreply"
        };
    }

    @Override
    public String getSyntax() {
        return "autoreply <message (use \"_\" for spaces)>";
    }

    @Override
    public void onCommand(String command, String[] args) throws Exception {
        if(args[0] != null && !args[0].equalsIgnoreCase("")){
            AutoReply.setReply(args[0].replace("_", " "));
            Command.sendClientMessage("AutoReply message set to " + AutoReply.getReply());
        } else {
            Command.sendClientMessage(getSyntax());
        }
    }
}
