Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. pricesItemTypes = `[`;
  2.  
  3. for (var i = 0; i < pricesItemQualitys.length; i++) {
  4.  
  5. if (i!==0) {
  6. pricesItemTypes = pricesItemTypes+',';
  7. }
  8.  
  9. pricesItemTypes = pricesItemTypes + "{"+"name: "+"\'"+pricesItemQualitys[i]+"\'"+","+"value: "+"\'"+pricesItemPrice[pricesItemQualitys[i]].tradable.craftable[0].value +" "+pricesItemPrice[pricesItemQualitys[i]].tradable.craftable[0].currency+"\'"+"}";
  10.  
  11. }
  12. pricesItemTypes = pricesItemTypes + "]"
  13. //pricesItemTypes = JSON.stringify(pricesItemTypes);
  14. console.log(pricesItemTypes);
  15. message.channel.sendMessage("", {embed: {
  16. color: 675276,
  17. author: {
  18. icon_url: bot.user.avatarURL
  19. },
  20. title: pricesCurrentItem,
  21. description: 'This is the current price for \''+pricesCurrentItem+'\'',
  22. fields: pricesItemTypes ,
  23. timestamp: "",
  24. footer: {
  25. icon_url: bot.user.avatarURL,
  26. text: 'http://backpack.tf'
  27. }
  28. }});//END RICH EMBED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement