helixspiral / mastodon-service Goto Github PK
View Code? Open in Web Editor NEWA simple service that reads off an MQTT queue and publishes to Mastodon
License: GNU General Public License v3.0
A simple service that reads off an MQTT queue and publishes to Mastodon
License: GNU General Public License v3.0
We need to filter out messages that don't have info for Mastodon to process.
Currently we only support one image with the MqttMessage.Image
field, we should add another field MqttMessage.Images
to handle multiple.
Once all services are swapped over to using the new field we can remove the old.
We should add some automation around building and publishing the Docker image.
I've created this reusable workflow that should work well for this: https://github.com/HelixSpiral/reusable-workflows/blob/main/.github/workflows/publish-docker.yml
Since we're passing credentials over MQTT those are getting logged, we should remove this and only log the message specifically.
Currently we're only handling posts without images.
This needs to be updated to handle them: https://github.com/HelixSpiral/mastodon-service/blob/master/main.go#L76
Dockerfile is needed to get it into k8s for testing.
Currently hardcoded to https://botsin.space, this should be a configurable value.
In the MqttMessage struct, ClientID and ClientSecret should both have Mastodon prefixed on them so other clients that need those values aren't confused. We'll be reading off an MQTT stream that publishes to Twitter, Mastodon, Discord, etc.
Lines 3 to 5 in 90e6b55
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.