generated from voidf1sh/discord-bot-template
Enable startup message
This commit is contained in:
parent
b9c073f463
commit
448cec95c2
7
main.js
7
main.js
@ -22,9 +22,9 @@ const statusChannelId = process.env.STATUSCHANNELID
|
|||||||
client.once('ready', () => {
|
client.once('ready', () => {
|
||||||
fn.collectionBuilders.slashCommands(client);
|
fn.collectionBuilders.slashCommands(client);
|
||||||
console.log('Ready!');
|
console.log('Ready!');
|
||||||
// client.channels.fetch(statusChannelId).then(channel => {
|
client.channels.fetch(statusChannelId).then(channel => {
|
||||||
// channel.send(`${new Date().toISOString()} -- Ready`).catch(e => console.error(e));
|
channel.send(`${new Date().toISOString()} -- Ready`).catch(e => console.error(e));
|
||||||
// });
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// slash-commands
|
// slash-commands
|
||||||
@ -43,6 +43,7 @@ client.on('interactionCreate', async interaction => {
|
|||||||
|
|
||||||
process.on('uncaughtException', err => {
|
process.on('uncaughtException', err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
// TODO: This should probably somehow attempt to send attempt to send a message
|
||||||
});
|
});
|
||||||
|
|
||||||
client.login(token);
|
client.login(token);
|
Loading…
Reference in New Issue
Block a user