mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-25 19:26:12 +10:00
Initial commit
This commit is contained in:
18
commands/restart.js
Normal file
18
commands/restart.js
Normal file
@@ -0,0 +1,18 @@
|
||||
exports.name = 'Restart'
|
||||
exports.alias = ['restart']
|
||||
exports.helptext = 'Restart DAdmin'
|
||||
exports.helphide = true
|
||||
exports.permissions = ['READ_MESSAGES']
|
||||
exports.category = 'admin'
|
||||
exports.command = (client, msg) => {
|
||||
var r = "220772082055774210";
|
||||
if (msg.member.id == r) {
|
||||
msg.react("✅");
|
||||
msg.reply("Shutting Down.. 😭");
|
||||
setTimeout(function () {
|
||||
process.exit(22);
|
||||
}, 1000);
|
||||
} else {
|
||||
msg.react("❌");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user