From 42050d0e743a9614a0fa571602dfc3ae1dbc0d59 Mon Sep 17 00:00:00 2001 From: David Duarte Date: Mon, 11 Jun 2018 13:04:48 +0200 Subject: [PATCH] Listen `ready` event once, Fix #3 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a721ede..253670a 100644 --- a/index.js +++ b/index.js @@ -16,7 +16,7 @@ const RM = new Event() const ESBot = new Discord.Client() -ESBot.on('ready', () => { +ESBot.once('ready', () => { TwitterPlugin.init(ESBot.channels.find('name', 'tweets')) console.log('ES Bot up and ready')