Wake up message to owner
This commit is contained in:
parent
304b4c1205
commit
6e489068b5
6
index.js
6
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)
|
||||
|
Loading…
Reference in New Issue
Block a user