YouTube subscription counter on voice channel. You will need `channel id` and` YouTube Name`
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
const ytsr = require('ytsr');
const search = `YouTube Name`;// here please paste everything name YouTube
const searchResults = await ytsr(search, {pages: 1});
const channels = searchResults.items.filter((x) => x.type == 'channel');
const data =
'https://www.googleapis.com/youtube/v3/channels?part=statistics&id=UCPUPbAOp-Q-4yvajcMAOyVA&key=AIzaSyBxke3w6_4fiMv27jHlYdWeI0vmfcO0TCA';
const channel = channels[0];
let members = await lib.discord.guilds['@0.1.0'].retrieve({
guild_id: `713423968224411698`,//please paste the ID of the voice channel here
with_counts: true,
});
await lib.discord.channels['@0.2.0'].update({
channel_id: `Chanel ID (stats)`,
name: `┗🎥» ${channel.subscribers}`,//paste the channel look here
});