Enable startup message

This commit is contained in:
Skylar Grant 2024-06-14 15:02:17 -04:00
parent b9c073f463
commit 448cec95c2

View File

@ -22,9 +22,9 @@ const statusChannelId = process.env.STATUSCHANNELID
client.once('ready', () => {
fn.collectionBuilders.slashCommands(client);
console.log('Ready!');
// client.channels.fetch(statusChannelId).then(channel => {
// channel.send(`${new Date().toISOString()} -- Ready`).catch(e => console.error(e));
// });
client.channels.fetch(statusChannelId).then(channel => {
channel.send(`${new Date().toISOString()} -- Ready`).catch(e => console.error(e));
});
});
// slash-commands
@ -43,6 +43,7 @@ client.on('interactionCreate', async interaction => {
process.on('uncaughtException', err => {
console.error(err);
// TODO: This should probably somehow attempt to send attempt to send a message
});
client.login(token);