Code Monkey home page Code Monkey logo

Comments (7)

lordkitsuna avatar lordkitsuna commented on August 20, 2024

When i was commenting out twitter i accidentally caught the first bracket as well. now the script runs and doesn't show any error but its also not posting anything from Tumblr as i setup. any way to get a more verbose output and figure out what might be going on on that front?

from mastodon-bot.

lordkitsuna avatar lordkitsuna commented on August 20, 2024

Just to be sure it was doing anything i at least did some snooping with tcpdump. I can see the bot call out to the tumblr pages ive setup so its at least trying. Cant figure out why its not actually posting anything to the mastodon instance though.

EDIT: i went ahead and uncommented the default RSS settings and those posted just fine so for some reason its only tumblr that is not pulling in posts any idea what could cause no errors but still not get anything?

from mastodon-bot.

yogthos avatar yogthos commented on August 20, 2024

Hmm, I'll have to take a look. I haven't been using Tumblr functionality myself so maybe the API changed since I added it in.

from mastodon-bot.

lordkitsuna avatar lordkitsuna commented on August 20, 2024

Hey thanks for the quick reply, Starting to think its just something else about my setup. Twitter api got approved and that does not appear to be working either i randomly got it to finally post a single post from one of the tumblrs and then never again. only the RSS seems to work and i cant figure out why. Here is my config for reference

 :twitter {:access-keys
           {:consumer_key "keyhere"
            :consumer_secret "keyhere"
            :access_token_key "keyhere"
            :access_token_secret "keyhere"}
           ;; optional, defaults to false
           :include-replies? false
           ;; optional, defaults to false
           :include-rts? false
           ;; accounts you wish to mirror
           :accounts ["zedrinbot"]}
;;  add Tumblr config to mirror Tumblr accounts
 :tumblr {:access-keys
          {:consumer_key "keyhere"
           :consumer_secret "keyhere"
           :token "keyhere"
           :token_secret "keyhere"}
          ;; optional limit for number of posts to retrieve, default: 5
          :limit 1000
          :accounts ["cyberpunky.tumblr.com" "scipunk.tumblr.com"]}
;; add RSS config to follow feeds
 :rss {"Hacker News" "https://hnrss.org/newest"
      "r/Clojure" "https://www.reddit.com/r/clojure/.rss"}
 :mastodon {:access_token "keyhere"
            :api_url "https://art.kitsuna.net/api/v1/"
            ;; optional boolean to mark content as sensitive
            :sensitive true
            ;; optional visibility flag: direct, private, unlisted, public
            ;; defaults to unlisted
            :visibility "public"
            ;; optional limit for the post length
            :max-post-length 300
            ;; optional flag specifying wether the name of the account
            ;; will be appended in the post, defaults to false
            :append-screen-name? false
            ;; optional signature for posts
            :signature "#mediabot"
            ;; optionally try to resolve URLs in posts to skip URL shorteners
            ;; defaults to false
            :resolve-urls? true
            ;; optional content filter regexes
            ;; any posts matching the regexes will be filtered out
            ;; :content-filters ["."]
            ;; optional keyword filter regexes
            ;; any posts not matching the regexes will be filtered out
            ;; :keyword-filters []
}}```

from mastodon-bot.

yogthos avatar yogthos commented on August 20, 2024

Oh, I think I know what might be happening here. The bot checks the timestamp on the last post from Mastodon, and then only posts things that are after that to avoid reposting old content. In case there aren't any posts, the time defaults to now. So, any older Tumbler/Twitter posts will get filtered out by that.

from mastodon-bot.

lordkitsuna avatar lordkitsuna commented on August 20, 2024

Perfect! that appears to have been it didn't realize it wouldn't back pull but it makes sense now that i think about it. Maybe just mention it in the readme to avoid more people like me :P Thanks for the help

from mastodon-bot.

yogthos avatar yogthos commented on August 20, 2024

Good idea, I'll add a note as it's not really obvious in retrospect. :)

from mastodon-bot.

Related Issues (20)

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.