Accidently pushed that
This commit is contained in:
parent
830e2ace71
commit
142c49557a
2 changed files with 0 additions and 13 deletions
|
@ -1,7 +1,6 @@
|
|||
const { Listener } = require('discord-akairo');
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
const reload = require('auto-reload');
|
||||
const getUrls = require('get-urls');
|
||||
let messageID = require('../../json/starboard.json');
|
||||
|
||||
class MessageReactionAddListener extends Listener {
|
||||
|
@ -15,7 +14,6 @@ class MessageReactionAddListener extends Listener {
|
|||
async exec(reaction) {
|
||||
let messageContent = reaction.message.content;
|
||||
let messageAttachments = reaction.message.attachments.map(u=> `${u.url}`);
|
||||
let URL = [...getUrls(messageContent)];
|
||||
|
||||
let starboardChannel;
|
||||
let staremote;
|
||||
|
@ -51,11 +49,6 @@ class MessageReactionAddListener extends Listener {
|
|||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||
.setTimestamp();
|
||||
|
||||
if (URL) {
|
||||
return channel.send(`in: ${reaction.message.channel}\nhttps://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id}`, {files: [URL[0]]})
|
||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}\n${URL[0]}`));
|
||||
}
|
||||
|
||||
return channel.send(`in: ${reaction.message.channel}`, {files: messageAttachments, embed: starEmbed})
|
||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: starEmbed}));
|
||||
}
|
||||
|
@ -94,11 +87,6 @@ class MessageReactionAddListener extends Listener {
|
|||
.setAuthor(reaction.message.author.username, reaction.message.author.displayAvatarURL())
|
||||
.setTimestamp();
|
||||
|
||||
if (URL) {
|
||||
return channel.send(`in: ${reaction.message.channel}\nhttps://discordapp.com/channels/${reaction.message.guild.id}/${reaction.message.channel.id}/${reaction.message.id}`, {files: [URL[0]]})
|
||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}\n${URL[0]}`));
|
||||
}
|
||||
|
||||
return channel.send(`in: ${reaction.message.channel}`,{files: messageAttachments, embed: shameEmbed})
|
||||
.catch(() => channel.send(`${reaction.message.author.username}, in: ${reaction.message.channel}`, { embed: shameEmbed}));
|
||||
}
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
"discord-akairo": "github:1Computer1/discord-akairo#master",
|
||||
"discord.js": "github:discordjs/discord.js#master",
|
||||
"fpcalc": "^1.3.0",
|
||||
"get-urls": "^9.0.0",
|
||||
"handbrake-js": "^3.0.8",
|
||||
"leo-profanity": "^1.2.4",
|
||||
"mkdirp": "^0.5.1",
|
||||
|
|
Loading…
Reference in a new issue