this post was submitted on 02 Jul 2023
5 points (100.0% liked)

Lemmy App Development

693 readers
18 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 1 year ago
MODERATORS
 

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.

top 2 comments
sorted by: hot top controversial new old
[โ€“] canpolat@programming.dev 1 points 1 year ago

I see that you have the following line in your bot:

auth: @me.secrets.lemmee,

Does that mean you are storing the JWT in your secrets? Doesn't that mean that it will expire after some time? Wouldn't it be better to get the JWT before performing the action? Something like this: https://www.val.town/v/canpolat.getLemmyJwt

[โ€“] canpolat@programming.dev 1 points 1 year ago

Thanks for sharing. This is a great way to write simple bots without dealing with hosting.