Wake up message to owner

This commit is contained in:
= 2021-07-13 21:14:50 -04:00
parent 304b4c1205
commit 6e489068b5

View File

@ -26,7 +26,11 @@ client.once('ready', () => {
// .catch(err => console.error(err));
// })
// .catch(err => console.error(err));
client.users.fetch(process.env.ownerID)
client.users.fetch(process.env.ownerID).then(user => {
user.createDM().then(channel => {
channel.send('I\'m awake.');
});
});
});
client.login(process.env.TOKEN)