Conversation
Notices
-
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 02:52:19 JST Sexy Moon maybe I'll ad a bot @wokenews and every post will be [noun] has gone woke. - on-lain ✔ᵛᵉʳᶦᶠᶦᵉᵈ likes this.
-
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 03:58:23 JST Sexy Moon @raccoon you need programming ability so probably yes. -
Embed this notice
Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 03:58:24 JST Trash Panda @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.
-
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 03:59:54 JST Sexy Moon @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. -
Embed this notice
Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 03:59:55 JST Trash Panda @Moon@shitposter.club
Oh well! Maybe in the future if I ever learn.
(Let's be realistic, never :P) -
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:03:15 JST Sexy Moon @raccoon askfedi about it, I don't know what the script is called but there are multiple ones -
Embed this notice
Trash Panda (raccoon@den.raccoon.quest)'s status on Wednesday, 24-Jan-2024 04:03:17 JST Trash Panda @Moon@shitposter.club
It would take some time to build the folder but it would definitely be easier I reckon.
So it might work. -
Embed this notice
Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:07:35 JST Machismo @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 ツ -
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:07:35 JST Sexy Moon @Zerglingman @raccoon worse comes to worst I can write one in bash. -
Embed this notice
Sexy Moon (moon@shitposter.club)'s status on Wednesday, 24-Jan-2024 04:09:08 JST Sexy Moon @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. -
Embed this notice
Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:09:09 JST Machismo @Moon @raccoon Yeah you can do it in like 3 lines: while true; curl whatever; sleep 1800;. -
Embed this notice
anime graf mays ?️? (graf@poa.st)'s status on Wednesday, 24-Jan-2024 04:09:27 JST anime graf mays ?️? @Moon @raccoon easy couple liner in python utilizing the mastodon.py library
!/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
Sexy Moon likes this. -
Embed this notice
Machismo (zerglingman@freespeechextremist.com)'s status on Wednesday, 24-Jan-2024 04:11:58 JST Machismo @Moon @raccoon Oh yeah good point, attachments are different. To /api/v1/media or something. 4 lines. Sexy Moon likes this.