Update main.js
This commit is contained in:
parent
ba96d77cf4
commit
6e2e44dc3d
1 changed files with 3 additions and 2 deletions
5
main.js
5
main.js
|
@ -29,7 +29,7 @@ client.on('message', message => {
|
||||||
|
|
||||||
if (message.content.startsWith("http")) {
|
if (message.content.startsWith("http")) {
|
||||||
author = message.author.username;
|
author = message.author.username;
|
||||||
link = new Discord.MessageAttachment(message.content);
|
link = message.content;
|
||||||
messageId = message.id;
|
messageId = message.id;
|
||||||
yes = true;
|
yes = true;
|
||||||
linkNo++;
|
linkNo++;
|
||||||
|
@ -66,7 +66,8 @@ client.on('message', message => {
|
||||||
toDelete.delete();
|
toDelete.delete();
|
||||||
|
|
||||||
let getChannel = client.channels.cache.get(channelId);
|
let getChannel = client.channels.cache.get(channelId);
|
||||||
getChannel.send(author + "\n" + link);
|
getChannel.send(author);
|
||||||
|
getChannel.send(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
yes = false;
|
yes = false;
|
||||||
|
|
Loading…
Reference in a new issue