1
submitted 2 years ago by [email protected] to c/[email protected]

Den här är en enkel AutoMod som kan (inget annat än att) schemalägga trådar. Den konfigureras med en konfigurationsfil. Om botten inte används med Docker måste man skapa en mapp i src som heter config och kopiera dit sin config.yaml.

Jag har planer att lägga till moderationsfunktioner till botten så den bör köras av instansens administratör, annars kan botten inte utföra dessa funktioner när den saknar moderatorprivilegier.

Konfigurationsfilen nedan är för en bot som skapar trådar på /c/fedditnu måndagar och fredagar kl. 7. Botten kan hantera (så vitt jag vet) obegränsat med trådar. Rubriken och meddelandet i inläggen går att ändra, de här kopierade jag från /r/Sweden och är bara exempel.

Om det finns behov för variabler såsom dagens datum i rubriken kan jag integrera dem i framtiden.

config.yaml

lemmy_base_uri: https://feddit.nu/
timezone: 'Europe/Stockholm'

scheduled_posts:
  - community: 'fedditnu'
    title: 'Frittsnack fredag'
    content: |
      Äntligen fredag! Vad har du gjort denna vecka? Vad vill du göra under helgen?

      Den här tråden skapas automatiskt varje fredag kl. 7.
    external_link:
    frequency_unit: 'weeks'
    frequency: 1
    day: 'friday'
    time: '07:00'

  - community: 'fedditnu'
    title: 'Exempeltråd måndag'
    content: |
      Den här mysteriösa tråden saknar ett ämne, men vi kan göra något åt det. Vi tar gärna emot era förslag för trådens ämne!

      Den här tråden skapas automatiskt varje måndag kl. 7.
    external_link:
    frequency_unit: 'weeks'
    frequency: 1
    day: 'monday'
    time: '07:00'

29
submitted 2 years ago by [email protected] to c/[email protected]

Happy July 1st! Starting today, free third-party Reddit apps will no longer be usable, but as much as we don't want to admit it, some of us still miss the content on Reddit, and it can be hard to resist the "just browse Old Reddit with an adblocker" loophole. Before we get into yet another "crossposting bots on the Fediverse" debate, here's a quick summary of what this bot is and is not intended to do:

Intended Not intended
Allow users to consolidate their link aggregation and discussion feeds onto an open-source, non-proprietary site "Increase activity" in a community by compensating for the lack of real users
Encourage ex-Redditors to spend more time on the Threadiverse when they are able to access their favorite content here Serve as a "bridge" between Reddit and the Fediverse. Threads are archives and messages will not be synced back to Reddit
Preserve thoughtful, valuable and informative content, and make them accessible without a privacy-hostile corporate platform

(Please don't leave comments on the Reddit archive threads on the demo instance.)

Leddit is a fork of lemmit.online and does not use the Reddit API at all. Unlike lemmit.online which is a public service, Leddit is meant to be self-hosted on a personal instance as syncing comments is a very slow process that will get rate-limited on a normal instance.

Based on my demo instance that syncs posts and comments from two subreddits with a combined subscriber count of about 1 million, this takes about the same amount of time that lemmit.online takes to sync only posts from more than 100 subreddits.

An example of a thread that is automatically created and updated by Leddit can be seen here. The header message and position can be customized. Leddit preserves the comment thread's structure and identifies the OP in the comments.

For shorter threads, all comments are synced, but comments in longer threads that are hidden below "show more comments" are not synced as they consume additional requests to Reddit with very little content in return.

If there's interest, I can also add a feature that allows the bot to archive entire subreddits instead of retrieving the newest posts. Please feel free to ask for support to set up your personal bot and instance in the Leddit Lounge community.

4
submitted 2 years ago by [email protected] to c/[email protected]

Happy July 1st! Starting today, free third-party Reddit apps will no longer be usable, but as much as we don't want to admit it, some of us still miss the content on Reddit, and it can be hard to resist the "just browse Old Reddit with an adblocker" loophole. Before we get into yet another "crossposting bots on the Fediverse" debate, here's a quick summary of what this bot is and is not intended to do:

Intended Not intended
Allow users to consolidate their link aggregation and discussion feeds onto an open-source, non-proprietary site "Increase activity" in a community by compensating for the lack of real users
Encourage ex-Redditors to spend more time on the Threadiverse when they are able to access their favorite content here Serve as a "bridge" between Reddit and the Fediverse. Threads are archives and messages will not be synced back to Reddit
Preserve thoughtful, valuable and informative content, and make them accessible without a privacy-hostile corporate platform

(Please don't leave comments on the Reddit archive threads on the demo instance.)

Leddit is a fork of lemmit.online and does not use the Reddit API at all. Unlike lemmit.online which is a public service, Leddit is meant to be self-hosted on a personal instance as syncing comments is a very slow process that will get rate-limited on a normal instance.

Based on my demo instance that syncs posts and comments from two subreddits with a combined subscriber count of about 1 million, this takes about the same amount of time that lemmit.online takes to sync only posts from more than 100 subreddits.

An example of a thread that is automatically created and updated by Leddit can be seen here. The header message and position can be customized. Leddit preserves the comment thread's structure and identifies the OP in the comments.

For shorter threads, all comments are synced, but comments in longer threads that are hidden below "show more comments" are not synced as they consume additional requests to Reddit with very little content in return.

If there's interest, I can also add a feature that allows the bot to archive entire subreddits instead of retrieving the newest posts. Please feel free to ask for support to set up your personal bot and instance in the Leddit Lounge community.

view more: ‹ prev next ›

Andreas

0 post score
0 comment score
joined 2 years ago