RyanzX15

Youtube Notifier on Aoi.js

Oct 9th, 2022 (edited)
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.93 KB | Source Code | 0 0
  1. //Aoi.js Youtube Notifier
  2. //Before you copy This Please Subscribe my Youtube Channel To Support Me :)
  3.  
  4. //BASIC Youtube Notifier Code
  5. //important: this code is not mine and i didn't create it, i just share it for further development
  6. //creator ids: 743792036771004448 / Sr_sales#7029
  7.  
  8. bot.loopCommand({
  9. $if: "v4",
  10. code: `
  11. $if[$getvar[lastvideo]!=$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].videoId]]
  12.  
  13.  
  14. $setVar[lastvideo;$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].videoId]]
  15.  
  16.  
  17. $title[1;$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].title];$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].link.href]
  18.  
  19.  
  20. $image[1;$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].group.thumbnail.
  21. url]
  22.  
  23. $description[1;$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].group.description]
  24.  
  25. $footer[1;$jsonRequest[https://api.factmaven.com/xml-to-json/?xml=https://www.youtube.com/feeds/videos.xml?channel_id=[YOUR.YOUTUBE.ID];feed.entry[0].author.name]
  26.  
  27. $addTimestamp[1]
  28. $color[1;#ff0000]
  29. $endif
  30. `,
  31. channel: "[YOUR.CHANNEL.ID]",
  32. executeOnStartup: true,
  33. every: 3600000
  34. })
  35.  
  36. //how to change To your youtube channel?
  37. //you can change on [YOUR.YOUTUBE.ID]
  38.  
  39. VARIABLE:
  40.  
  41. lastvideo: "",
  42.  
  43.  
  44.  
  45. //how to finds your youtube channel id ?
  46. //you can see it on https://www.youtube.com/channel/YOUR ID
  47. //or first you click user pict on your channel or go to you channel and copy the id /channel/here
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
Tags: Aoi.js
Advertisement
Add Comment
Please, Sign In to add comment