File size: 591 Bytes
3c7e34b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | const { createEmbed } = require('../utils/embeds');
const { Colors } = require('../config');
const { db } = require('../database');
module.exports = {
name: 'shutdown bot',
async execute(client, message) {
const embed = createEmbed({
title: 'π Shutting Down',
description: 'WSB is going offline. Goodbye!',
color: Colors.ACCENT,
});
await message.reply({ embeds: [embed] });
// Close database
db.close();
// Destroy client and exit
client.destroy();
process.exit(0);
},
};
|