All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.mayuna.modularbot.console.StopConsoleCommand Maven / Gradle / Ivy

package dev.mayuna.modularbot.console;

import dev.mayuna.consoleparallax.BaseCommand;
import dev.mayuna.consoleparallax.CommandInvocationContext;
import dev.mayuna.modularbot.ModularBot;
import org.jetbrains.annotations.NotNull;

public final class StopConsoleCommand implements BaseCommand {

    @Override
    public @NotNull String getName() {
        return "stop";
    }

    @Override
    public @NotNull String getUsage() {
        return "Stops the ModularDiscordBot";
    }

    @Override
    public @NotNull String getSyntax() {
        return "N/A";
    }

    @Override
    public @NotNull String getDescription() {
        return "Stops the ModularDiscordBot";
    }

    @Override
    public void execute(@NotNull CommandInvocationContext context) {
        ModularBot.shutdown();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy