Giter VIP home page Giter VIP logo

fediplace-bot's Introduction

Fedi.place bot

This bot lets you automatically print images on fedi.place

Only runs on linux!!! (should be very easy to port though)

Palette

These are the only allowed colors. The API will reject any other color, even 1 bit off.

#ffffff #e4e4e4 #e5d900 #94e044
#888888 #222222 #02be01 #00d3dd
#ffa7d1 #e50000 #0083c7 #0000ea
#e59500 #a06a42 #cf6ee4 #820080

Usage

Downloading the project

  • Clone the project and install dependencies
git clone https://github.com/wait-what/fediplace-bot
cd fediplace-bot
yarn install

Initial configuration

  • Rename config.example.json to config.json
  • Configure offset and size under config.json

Importing the image

  • Place your image image.png in the same directory
  • Run node image.js
  • Copy the output into colors under config.json

Network stuff

  • Rename place.example.sh to place.sh
  • Log in to fedi.place under a chromium-based browser
  • Open development tools (F12)
  • Go to the network tab
  • Place a pixel
  • Right click the place event
  • Select Copy > Copy as cURL
  • Paste the command into place.sh
  • Remove the line that starts with --data-raw
  • Add this line --data-raw "x="$1"&y="$2"&hex=%23"$3"" \

Running the bot

  • You may now run the bot!
node index.js

License

This project is licensed under MIT

fediplace-bot's People

Contributors

wait-what avatar

Stargazers

 avatar

Watchers

 avatar

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.