From e2ee403ee2df0b8484aeb86c70893361ca8e8268 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Sat, 31 Dec 2016 17:16:08 -0500 Subject: [PATCH] Corrected URL formatting. --- triggers/github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/triggers/github.js b/triggers/github.js index 7548800..8ac7961 100644 --- a/triggers/github.js +++ b/triggers/github.js @@ -11,7 +11,8 @@ exports.trigger = function(message) { exports.execute = function(message) { let match = regex.exec(message.content); if (match) { - let url = `https://github.com/citra-emu/citra/pull/${match[0].substring(1).trim()}` + let url = `https://github.com/citra-emu/citra/pull/${match[0].trim().substring(1)}` + logger.info(url); request(url, function (error, response, body) { if (!error && response.statusCode == 200) { message.channel.sendMessage(`Github Pull Request: ${url}`);