No invites fam

This commit is contained in:
Daniel Odendahl Jr
2017-09-02 21:42:33 +00:00
parent fb03917c52
commit cf42de654c
3 changed files with 3 additions and 2 deletions
+1
View File
@@ -22,6 +22,7 @@ module.exports = class SpoopyLinkCommand extends Command {
async run(msg, args) {
const { site } = args;
if (/discord(\.gg|app\.com\/invite|\.me)\//gi.test(site)) return msg.say('Discord invites are safe!');
try {
const { body } = await snekfetch
.get(`https://spoopy.link/api/${site}`);