Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1.  
  2.  
  3. const Discord = require('discord.js');
  4. const client = new Discord.Client();
  5.  
  6. client.on('ready', () => {
  7. console.log(`Logged in as ${client.user.tag}!`);
  8. });
  9.  
  10. client.on('message', async message => {
  11. if(message.content.toLowerCase() === "creeper"){
  12. message.channel.send("aw man")
  13. }
  14. if(message.content.toLowerCase() === "u gay"){
  15. message.channel.send("no u")
  16. }
  17. if(message.content === "L"){
  18. message.channel.send("This is the sad story of love. A story which repeats as long as the crystal ball of time continues to exist, as long as this ball has not crashed into a star, a star from another time. Time will perhaps explode from within because of these sad stories which repeat and fill it to capacity. When time fills with love, overflows with feeling, and chokes with tears and shouted loneliness, its crystal walls will break. But every love story will make a home in the particles of this broken sphere and will, itself, make a new time. And perhaps a day will come when eternity and everything that has been created and everything that has not been created will be nothing but crystal particles which have in their heart a seed of love, a seed of the sad story of love. Then, time will be a woman and a man sleeping in a bubble of time.... stories with endings not quite the same.").catch(O_o=>{})
  19. }
  20. if(message.content === 'gimme meme'){
  21. message.channel.send({
  22. files:["https://cdn.discordapp.com/attachments/525665641307570186/614508831875006485/Screenshot_2019-06-22_at_15.57.00.png"]
  23. })
  24. }
  25. if(message.content === 'gimme cat'){
  26.  
  27. }
  28. if (message.content.indexOf(process.env.prefix) !== 0) return;
  29. const args = message.content.slice(1).trim().split(/ +/g);
  30. const command = args.shift().toLowerCase();
  31.  
  32. if (command === "embed"){
  33. let title = args[0];
  34. let content = args.slice(0).join(' ').slice(title.length);
  35. message.delete().catch(O_o=>{});
  36. message.channel.send(new Discord.RichEmbed().setTitle(title).setColor(0xFF0000).setDescription(content)).catch(O_o=>{});
  37. }
  38. if(command === "say"){
  39. let content = args.join(' ')
  40. message.channel.send(`${message.author} made me say this : ${content}`)
  41. }
  42.  
  43. });
  44.  
  45. client.login(process.env.token);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement