Advertisement
xoxfl

Cook - Food Bot

Jun 15th, 2019
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. const Discord = require('discord.js')
  2. const staff = {}
  3. const cheese_pizza = "https://cdn.glitch.com/e40a62d1-9dac-4976-997c-5201d1896aa8%2Fpizza_cheese.png?1537540322627";
  4. const ms = require('ms')
  5. const pepperoni_pizza = "https://cdn.glitch.com/e40a62d1-9dac-4976-997c-5201d1896aa8%2Fpepperoni_pizza.png?1537581252794"
  6. const hot_wings = "https://cdn.glitch.com/e40a62d1-9dac-4976-997c-5201d1896aa8%2Fhot_wings.png?1537581647744"
  7. const drink_image = "https://cdn.glitch.com/e40a62d1-9dac-4976-997c-5201d1896aa8%2Fdrink_image.jpg?1540262548697"
  8.  
  9. module.exports.run = async (bot, message, args) => {
  10.  
  11. if(message.content.includes('cheese pizza')) {
  12.  
  13. message.channel.send('Cooking...')
  14.  
  15. setTimeout(function() {
  16. let cheese = new Discord.RichEmbed()
  17. .setTitle('Done!')
  18. .setImage(cheese_pizza)
  19.  
  20. message.channel.send(cheese)
  21. }, ms("10s"))
  22.  
  23. } else {
  24.  
  25. if(message.content.includes('pepperoni pizza')) {
  26.  
  27. setTimeout(function() {
  28.  
  29. let pepperoni = new Discord.RichEmbed()
  30. .setTitle('Done!')
  31. .setImage(pepperoni_pizza)
  32. let chefRole = message.guild.roles.find("name","Chef")
  33. if(message.member.roles.has)
  34. message.channel.reply("You are not a chef")
  35. message.channel.send(pepperoni)
  36.  
  37. }, ms("10s"))
  38.  
  39. } else {
  40.  
  41.  
  42.  
  43. if(message.content.includes('hot wings')) {
  44.  
  45. message.channel.send('Cooking...')
  46.  
  47. setTimeout(function() {
  48.  
  49. let hotwings = new Discord.RichEmbed()
  50. .setTitle('Done!')
  51. .setImage(hot_wings)
  52. let chefRole = message.guild.roles.find("name","Chef")
  53. if(message.member.roles.has)
  54. message.channel.reply("You are not a chef")
  55. message.channel.send(hotwings)
  56.  
  57. }, ms("10s"))
  58. }
  59. }
  60. }
  61. }
  62. module.exports.help = {
  63.  
  64. name: "cook"
  65.  
  66. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement