From 6e489068b5c675b15d2376ddfe4ec909265f6e10 Mon Sep 17 00:00:00 2001 From: = Date: Tue, 13 Jul 2021 21:14:50 -0400 Subject: [PATCH] Wake up message to owner --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index ce8cad7..c1f6292 100644 --- a/index.js +++ b/index.js @@ -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)