From 0d603699acee422db1591ae10cc4aa0841bf9b0e Mon Sep 17 00:00:00 2001 From: spences10 Date: Fri, 16 Jun 2017 17:58:25 +0100 Subject: [PATCH] Resolve reply to self! Closes #67 --- src/api/reply.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/api/reply.js b/src/api/reply.js index 77f9718..a735ede 100644 --- a/src/api/reply.js +++ b/src/api/reply.js @@ -26,6 +26,9 @@ const reply = (event) => { // get user's twitter handler/screen name let screenName = event.source.screen_name + if (screenName===config.twitterConfig.username) { + return + } const response = randomReply() const res = response.replace('${screenName}', screenName);