"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = {
    on: "END",
    run: (data) => {
        let message;
        if (data.error) {
            message = {
                status: "ERROR",
                title: "Error",
                details: `Throwed ${data.error.errno} error`,
            };
        }
        else {
            message = {
                status: "SUCCESS",
                title: "Success",
                details: "Command ran succesfully!",
            };
        }
        data.feature.socket.sendMessage({
            message,
            type: "notification",
        });
        return data;
    },
};
