@@ -0,0 +1,1858 @@
+package com.nincraft.ninbot.components.owner;%0A%0Aimport com.nincraft.ninbot.components.command.AbstractCommand;%0Aimport com.nincraft.ninbot.components.common.MessageUtils;%0Aimport com.nincraft.ninbot.components.common.RolePermission;%0Aimport com.nincraft.ninbot.components.config.ConfigConstants;%0Aimport com.nincraft.ninbot.components.config.ConfigService;%0Aimport lombok.val;%0Aimport net.dv8tion.jda.core.entities.Message;%0Aimport net.dv8tion.jda.core.events.message.MessageReceivedEvent;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.io.File;%0A%0A@Component%0Apublic class OwnerCommand extends AbstractCommand %7B%0A%0A    private ConfigService configService;%0A%0A    public OwnerCommand(ConfigService configService) %7B%0A        length = 3;%0A        name = %22owner%22;%0A        description = %22Owner commands%22;%0A        permissionLevel = RolePermission.OWNER;%0A        hidden = true;%0A        this.configService = configService;%0A    %7D%0A%0A    @Override%0A    protected void executeCommand(MessageReceivedEvent event) %7B%0A        switch (getSubcommand(event.getMessage().getContentStripped())) %7B%0A            case %22restart%22:%0A                restart(event.getMessage());%0A                break;%0A            case %22logs%22:%0A                showLogs(event);%0A                break;%0A            default:%0A                break;%0A        %7D%0A    %7D%0A%0A    private void restart(Message message) %7B%0A        MessageUtils.reactSuccessfulResponse(message);%0A        System.exit(0);%0A    %7D%0A%0A    private void showLogs(MessageReceivedEvent event) %7B%0A        val announceChannelId = configService.getSingleValueByName(event.getGuild().getId(), ConfigConstants.ERROR_ANNOUNCE_CHANNEL);%0A        if (announceChannelId.isPresent()) %7B%0A            val announceChannel = event.getJDA().getTextChannelById(announceChannelId.get());%0A            announceChannel.sendFile(new File(%22ninbot.log%22)).queue();%0A        %7D%0A    %7D%0A%7D%0A

Add owner command