GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 02:52:19 JST Sexy Moon Sexy Moon
    maybe I'll ad a bot @wokenews and every post will be [noun] has gone woke.
    In conversation Wednesday, 24-Jan-2024 02:52:19 JST from shitposter.club permalink
    • lainy likes this.
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 03:58:23 JST Sexy Moon Sexy Moon
      in reply to
      • Trash Panda
      @raccoon you need programming ability so probably yes.
      In conversation Wednesday, 24-Jan-2024 03:58:23 JST permalink
    • Embed this notice
      Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 03:58:24 JST Trash Panda Trash Panda
      in reply to

      @Moon@shitposter.club @wokenews@shitposter.club Speaking of bots, is it hard to make one? I'd like to make a bot that posts raccoon pictures.

      In conversation Wednesday, 24-Jan-2024 03:58:24 JST permalink
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 03:59:54 JST Sexy Moon Sexy Moon
      in reply to
      • Trash Panda
      @raccoon do you just want a bot that publishes pictures from a folder? because I think there's a bot that already exists for that that you could use with no proramming ability.
      In conversation Wednesday, 24-Jan-2024 03:59:54 JST permalink
    • Embed this notice
      Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 03:59:55 JST Trash Panda Trash Panda
      in reply to

      @Moon@shitposter.club
      Oh well! Maybe in the future if I ever learn.
      (Let's be realistic, never :P)

      In conversation Wednesday, 24-Jan-2024 03:59:55 JST permalink
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:03:15 JST Sexy Moon Sexy Moon
      in reply to
      • Trash Panda
      @raccoon askfedi about it, I don't know what the script is called but there are multiple ones
      In conversation Wednesday, 24-Jan-2024 04:03:15 JST permalink
    • Embed this notice
      Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 04:03:17 JST Trash Panda Trash Panda
      in reply to

      @Moon@shitposter.club
      It would take some time to build the folder but it would definitely be easier I reckon.
      So it might work.

      In conversation Wednesday, 24-Jan-2024 04:03:17 JST permalink
    • Embed this notice
      Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:07:35 JST Machismo Machismo
      in reply to
      • Trash Panda
      @Moon @raccoon I haven't come across a bot like that yet, I think the one I've seen pulled from danb or something.
      I just use my own which pulls from gelb, it would take a couple of minutes to point it at a folder instead, but it would expect you to install deps (python3, aiohttp basically) and deal with token yourself.
      But I also have a bash script for dealing with tokens that I could offer ツ
      In conversation Wednesday, 24-Jan-2024 04:07:35 JST permalink
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:07:35 JST Sexy Moon Sexy Moon
      in reply to
      • Machismo
      • Trash Panda
      @Zerglingman @raccoon worse comes to worst I can write one in bash.
      In conversation Wednesday, 24-Jan-2024 04:07:35 JST permalink
    • Embed this notice
      Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:09:08 JST Sexy Moon Sexy Moon
      in reply to
      • Machismo
      • Trash Panda
      @Zerglingman @raccoon I've done it before I just didn't save the script. I forget how to do attachment uploads but I can figure it out again quickly.
      In conversation Wednesday, 24-Jan-2024 04:09:08 JST permalink
    • Embed this notice
      Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:09:09 JST Machismo Machismo
      in reply to
      • Trash Panda
      @Moon @raccoon Yeah you can do it in like 3 lines: while true; curl whatever; sleep 1800;.
      In conversation Wednesday, 24-Jan-2024 04:09:09 JST permalink
    • Embed this notice
      anime graf mays ?️? (graf@poa.st)'s status on Wednesday, 24-Jan-2024 04:09:27 JST anime graf mays ?️? anime graf mays ?️?
      in reply to
      • Trash Panda

      @Moon @raccoon easy couple liner in python utilizing the mastodon.py library

      script.py:

      !/usr/bin/env python3 import os import sys import toml from mastodon import Mastodon basepath = os.path.dirname(os.path.abspath(__file__)) settings = toml.load(os.path.join(basepath,'settings.toml')) mastodon = Mastodon( access_token = os.path.join(basepath,'usercred.secret'), api_base_url = settings.get("mastodon_url") ) media = mastodon.media_post("image.png") mastodon.status_post("", None, media_ids=[media], sensitive=False, visibility='public')

      settings.toml:

      mastodon_url="" mastodon_user=""

      usercred.secret is just your bot's token generated from https://tools.splat.soy/pleroma-access-token/

      then you can just chmod a+x script.py and run ./script.py $filename

      this will require that you have a library of images tho not pulling them directly

      In conversation Wednesday, 24-Jan-2024 04:09:27 JST permalink

      Attachments





      Sexy Moon likes this.
    • Embed this notice
      Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:11:58 JST Machismo Machismo
      in reply to
      • Trash Panda
      @Moon @raccoon Oh yeah good point, attachments are different. To /api/v1/media or something. 4 lines.
      In conversation Wednesday, 24-Jan-2024 04:11:58 JST permalink
      Sexy Moon likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.