possumbot/commands/restart.js

14 lines
239 B
JavaScript
Raw Normal View History

2024-08-21 17:00:40 +02:00
import { exec } from "node:child_process";
function execute(client, event, args) {
2024-08-22 17:34:03 +02:00
exec("systemctl restart possumbot");
2024-08-21 17:00:40 +02:00
}
export default {
command: "restart",
name: "restart",
owner: true,
desc: "restarts the bot",
execute
}