GithubHelp home page GithubHelp logo

klarkc / ssb-bot-feed Goto Github PK

View Code? Open in Web Editor NEW
24.0 3.0 1.0 10.36 MB

Scuttlebutt bot that read RSS feeds and post updates automatically

License: MIT License

JavaScript 90.94% Shell 7.86% Dockerfile 1.20%
scuttlebutt bot rss atom ssb ssb-server ssb-client

ssb-bot-feed's Introduction

ssb-bot-feed

backers

Scuttlebutt bot that read RSS feeds and post updates automatically

Usage

Download and run ssb-server

npm install -g ssb-bot-feed

Syntax:

ssb-bot-feed [feed1] [feed2] [feedN]

Example:

ssb-bot-feed http://www.nintendolife.com/feeds/news

By default It connects on localhost:8008 (ssb-server) and uses ~/.ssb settings.

Full documentation: ssb-bot-feed --help.

Docker

The docker image assumes that you have a ssb-server listening on localhost:8008

~/.ssb is the path to .ssb folder where bot will load secrets and manifest

docker run -d --name ssb-bot-feed \
   --network="host" \
   --restart=always \
   -v ~/.ssb:/root/.ssb \
   klarkc/ssb-bot-feed -h localhost -p 8008 http://www.nintendolife.com/feeds/news

Alternatives

ssb-bot-feed's People

Contributors

dependabot[bot] avatar klarkc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ssb-bot-feed's Issues

Feature Enhancement: Please make message customisable

This code clip here defines the post that will be made to SSB. It would be helpful if it were possible to have this as the default, but allow you to override this blob with your own message.

For example, rather than linking to the whole post, it would be helpful if I could just have

I wrote a blog post: "[${entry.title}](${link})"

${image}

Feature Enhancement: Please truncate description to fit inside the 8k character limit

My blog regularly contains a long body text. Following a recently published post, I found this in my ssb-bot-feed log:

Nov 01 22:28:34 jon ssb-bot-feed[32183]: publishing update for entry: #OggCamp ’19 – A review and Talk Summary
Nov 01 22:28:34 jon ssb-bot-feed[32183]: error publishing: encoded message must not be larger than 8192 bytes

It would be useful to crop the description in the blog post to the length of the available space.

Cannot find package 'ssb-client' when run the latest docker image

$ sudo docker run klarkc/ssb-bot-feed
internal/process/esm_loader.js:74
    internalBinding('errors').triggerUncaughtException(
                              ^

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'ssb-client' imported from /usr/src/ssb-bot-feed/index.js
    at packageResolve (internal/modules/esm/resolve.js:664:9)
    at moduleResolve (internal/modules/esm/resolve.js:705:18)
    at Loader.defaultResolve [as _resolve] (internal/modules/esm/resolve.js:819:11)
    at Loader.resolve (internal/modules/esm/loader.js:89:40)
    at Loader.getModuleJob (internal/modules/esm/loader.js:242:28)
    at ModuleWrap.<anonymous> (internal/modules/esm/module_job.js:73:40)
    at link (internal/modules/esm/module_job.js:72:36) {
  code: 'ERR_MODULE_NOT_FOUND'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.