Skip to content

fejorca/placebot-vzla

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Place Bot

This is a bot I made for the Reddit /r/place event of 2017 April Fools Day.

This bot was coded by https://github.com/Zequez/ and adapted by me to work with the Venezuelan flag.

Installation

You need to have NodeJS installed

git clone https://github.com/kustomrtr/placebot-vzla/
cd placebot-vzla
npm install

Configuration

Change users.example.json to users.json and add your username and password of your account and all your throwaways.

The target.bmp file

The target file must meet the following requirements:

  • Format: BMP
  • Dimensions: 1000x1000
  • Compression: NONE! Should weight about 3mb, 4 bytes per color
  • Colors: exactly the same colors used in the board
  • Transparency: Color #ff00ffff is considered transparent (a bright purple color), and will be ignored by the bots

You can check the colors on colors.js, but is easier to import board.example.bmp to your image editor, and use the eyedropper tool from there. You can use that image as a template and go from there too, covering parts that you don't use in #ff00ffff

With an advanced image editor is recommended to have the board in a separate layer so you actually know what you're modifying.

Target Drawing

The bot downloads the board each time it's time to draw, so it only changes the necessary pixels that don't match the target.

Remote (for multiple people)

You can configure the target to be downloaded from a remote image by settin on config.js:

  • autoupdateRemoteTarget: true
  • REMOTE_TARGET_URL: "http://example.com/remote_target.bmp"

The image will be downloaded before paining and saved to target.bmp.

Local (just for your own bots)

Just use the file target.bmp and set autoupdateRemoteTarget: false on config.js.

Bundle up changes

If you want to wait until multiple users are available to paint and do the changes all at the same time, change the config:

  • bundleAccounts: <Number 1-Infinity>

Usage

  npm run start

It'll keep keep drawing forever and if it can't draw anymore it's gonna wait until something breaks and fix it.

License

MIT

About

Placebot para /r/vzla

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%