SHARE
TWEET

JS code

a guest Aug 20th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. client.on('message', message => {
  2.     var prefix = "b!";
  3.     if(message.author.bot) return;
  4.     var name1 = message.mentions.users.first();
  5.     var suggest = message.content.split(' ').slice(2).join(' ');
  6.     if(message.content.startsWith(prefix + 'new')) {
  7.         if(message.author.bot) return;
  8.         if(!message.guild.channels.find('name', '❃・announcement')) return message.channel.send('Create Room : ❃・announcement').then(msg => msg.delete(5000));
  9.     if(!name1) return message.reply('Type : b!new @user').then(msg => msg.delete(3000))
  10.         message.delete();
  11.     if(!suggest) return message.reply('Type : b!new @user [command]').then(msg => msg.delete(3000))
  12.         message.delete();
  13.     var abod = new Discord.RichEmbed()
  14.     .setTitle(** • news**)
  15.     .addField(' • Room Name :', ${message.channel.name}, true)
  16.     .addField(' • How To Use Command :', ${suggest}, true)
  17.      .addField(' • Shared By :', ${name1}, true)
  18.     .setFooter(${message.author.username}#${message.author.discriminator}, message.author.avatarURL)
  19.     .setTimestamp()
  20.         message.guild.channels.find('name', '❃・announcement').sendEmbed(abod)
  21.     message.reply('Thanks For Send This Command').then(msg => msg.delete(3000));
  22.     }
  23. });
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