From 91f5e9c8cd45e4b511106d656e965338f3349ce5 Mon Sep 17 00:00:00 2001 From: 1Computer1 <22125769+1Computer1@users.noreply.github.com> Date: Mon, 23 Sep 2019 12:53:48 -0400 Subject: [PATCH] Give bot a presence --- src/index.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index dd607c3..7c70a9b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,14 @@ const CompilerClient = require('./struct/CompilerClient'); const config = require('../config.json'); const client = new CompilerClient(config); -client.once('ready', () => console.log('Comp_iler ready to go!')); // eslint-disable-line no-console +client.once('ready', () => { + client.user.setPresence({ + activity: { name: '@Comp_iler help' }, + status: 'online' + }); + + // eslint-disable-next-line no-console + console.log('Comp_iler ready to go!'); +}); + client.start();