mirror of
https://github.com/yuzu-emu/Command-fix
synced 2024-11-24 16:28:14 +00:00
Added check to make sure Github issues / PRs are not low numbers.
This commit is contained in:
parent
d540ce2d12
commit
93e721aac5
1 changed files with 6 additions and 0 deletions
|
@ -21,6 +21,12 @@ exports.execute = function(message) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We do not want to automatically match old issues / PRs.
|
||||||
|
// This usually happens when someone messes up pining another person or
|
||||||
|
// in general conversation.
|
||||||
|
// ex: You're #1!
|
||||||
|
if (match[1] <= 2000) { return; }
|
||||||
|
|
||||||
let url = `https://github.com/citra-emu/citra/pull/${match[1]}`;
|
let url = `https://github.com/citra-emu/citra/pull/${match[1]}`;
|
||||||
request(url, function (error, response, body) {
|
request(url, function (error, response, body) {
|
||||||
if (!error && response.statusCode == 200) {
|
if (!error && response.statusCode == 200) {
|
||||||
|
|
Loading…
Reference in a new issue