fixed restart cmd

This commit is contained in:
murm 2023-03-15 10:45:14 -04:00
parent 492cdba631
commit d6cb0e3c78

View file

@ -7,9 +7,13 @@ class RestartCommand extends Command {
this.success = false; this.success = false;
return "Only the bot owner can restart me!"; return "Only the bot owner can restart me!";
} }
await this.channel.createMessage(Object.assign({ const content = {
content: "mrmBot is restarting." body: "mrmBot is restarting",
}, this.reference)); msgtype: "m.text",
};
matrixClient.sendEvent(this.channel, "m.room.message", content, "", (err, res) => {
console.log(err);
});
process.exit(1); process.exit(1);
} }