mirror of
https://github.com/yuzu-emu/Command-fix.git
synced 2024-11-22 07:05:36 +01:00
Corrected URL formatting.
This commit is contained in:
parent
c5f877262b
commit
e2ee403ee2
@ -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}`);
|
||||
|
Loading…
Reference in New Issue
Block a user