thaldrin/DiscordModules/Developers/stop.js

20 lines
370 B
JavaScript
Raw Normal View History

2019-11-10 08:42:09 +00:00
const Command = require('../../src/structures/Command');
2019-10-14 11:19:41 +00:00
module.exports = class Stop extends Command {
2019-11-10 08:42:09 +00:00
constructor() {
super({
name: 'stop',
description: 'Stops the bot',
aliases: [],
module: 'Developers',
cooldown: 0,
guildOnly: false,
developerOnly: true
});
}
2019-10-14 11:19:41 +00:00
2019-11-10 08:42:09 +00:00
async command(ctx) {
await ctx.send('Restarting.');
process.exit();
}
2019-10-14 11:19:41 +00:00
};