I built an easy-to-use bot to auto-post from Youtube

Open link in next tab

@pdebie.publishYoutubeToLemmy

https://www.val.town/v/pdebie.publishYoutubeToLemmy

Publish a Youtube feed to Lemmy This allows you to automatically publish a Youtube channel to to a Lemmy community. Example usage: async function publishMyFeed() { try { return @pdebie.publishYoutubeToLemmy({ instance: "lemm.ee", auth: @me.secrets.lemmee, communityId: 23316, youtubeChannelId: "UChZgikssAJkmiQOv_sO-ngQ", lastSyncTime: @pdebie.spacexLemmyDb.lastSync, }); } finally { @pdebie.spacexLemmyDb.lastSync = new Date().toISOString(); } } Get a Youtube channel ID here . Make sure to set your lastSync properly, since otherwise you'll keep publishing new posts!

@pdebie.publishYoutubeToLemmy

cross-posted from: https://lemm.ee/post/579630

Hi all,

I've put together some code on on Val Town that easily allows auto-publishing videos on Youtube channels to a Lemmy community.

It's simple enough that hopefully anyone should be able to set it up, and Val Town has a free tier which should be enough for anyone to publish a few feeds for free. There's a "README" on top showing how it's used.

Anyway, let me know what you think! If you end up using it, I'd love to get some thoughts on how easy it was to set up etc.