Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Aoi.js Youtube Notifier
- //Before you copy This Please Subscribe my Youtube Channel To Support Me :)
- //BASIC Youtube Notifier Code
- //important: this code is not mine and i didn't create it, i just share it for further development
- //creator ids: 743792036771004448 / Sr_sales#7029
- bot.loopCommand({
- $if: "v4",
- code: `
- $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]]
- $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]]
- $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]
- $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.
- url]
- $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]
- $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]
- $addTimestamp[1]
- $color[1;#ff0000]
- $endif
- `,
- channel: "[YOUR.CHANNEL.ID]",
- executeOnStartup: true,
- every: 3600000
- })
- //how to change To your youtube channel?
- //you can change on [YOUR.YOUTUBE.ID]
- VARIABLE:
- lastvideo: "",
- //how to finds your youtube channel id ?
- //you can see it on https://www.youtube.com/channel/YOUR ID
- //or first you click user pict on your channel or go to you channel and copy the id /channel/here
Advertisement
Add Comment
Please, Sign In to add comment