SHARE
TWEET

Untitled

a guest Jan 14th, 2020 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if (!message.author.bot) {
  2.         message.channel.fetchMessages({ limit: 1 }).then (messages => {
  3.           const lastMessage = messages.first()
  4.           console.log("#" + lastMessage.channel.name + " " + lastMessage.member.displayName + " : " +lastMessage.content)
  5.         client.guilds.get('665694596378132510').channels.get('666060231855570974').send("#" + lastMessage.channel.name + " | " +lastMessage.member.displayName + " : " +lastMessage.content);
  6.         }).catch(err => {
  7.           console.error(err)
  8.         })
  9.     }
  10.  
  11.     // if (message.author.bot) {
  12.     //     if (command == 'log') {
  13.     //         var channel_name = args[0];
  14.     //         let detail7 = args.slice(1).join(" ");
  15.     //         if (!message.guild.channels.exists('name', args[0])) {
  16.     //             server.createChannel(channel_name,'text').then(channel => {
  17.     //             channel.send(detail7);
  18.     //             })
  19.     //             message.delete(1000);
  20.     //         }
  21.     //         else {
  22.     //             channel.send(detail7);
  23.     //             message.delete(1000);
  24.     //         }
  25.     //     }
  26.     // }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top