ddpb d2p include attachment url

This commit is contained in:
Lamp 2018-11-07 13:18:53 -08:00 committed by GitHub
parent ca51de14f7
commit bb26075752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -51,5 +51,7 @@ function send2ddp(message) {
dClient.on("local_message", message => {
if (message.channel.id != "508890674138054667" || message.author.bot) return;
send2ddp(`\u034f${message.member.displayName}#${message.author.discriminator}: ${message.cleanContent}`);
var x = message.cleanContent;
if (message.attachments.first()) x += " " + message.attachments.first().url;
send2ddp(`\u034f${message.member.displayName}#${message.author.discriminator}: ${x}`);
});