Giter Club home page Giter Club logo

placebot's Introduction

PlaceBot

Draws to www.reddit.com/r/place.

Installation

pip install git+https://github.com/goatgoose/PlaceBot

Usage

from place_bot import Placer, Color

placer = Placer()
placer.login("username", "password")
placer.place_tile(432, 286, Color.BLACK)

See: examples

Features

  • place a tile at a coordinate
  • maintain image
    • diffs the canvas to a provided image and fills in the differing tiles
  • multi-user support

placebot's People

Contributors

goatgoose avatar laundmo avatar stingray300k avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

placebot's Issues

Handle get_map_url on multiple canvases

_get_map_url currently only works on the first canvas. Figure out how the js is requesting the second canvas URL and replicate the websocket sends. Additionally, _get_map_url should take the canvas id as an argument, and only the relevant canvas should be queried in maintain_image.

Multi-user support

Add support for providing place bot with multiple reddit users. maintain_image should cycle between all users, and have separate timeouts for each user, allowing for more tiles per minute.

Transparency support

Would be another cool feature: maintain_image and so on should ignore and not try to place transparent pixels in the source image.

Detect current place timeout on startup

Currently, the placed timestamp is initially set to 0 for each user:

self.placed_timestamp = 0

However, if the owner of the user isn't keeping track of their reddit account's current timeout, this could lead to problems. Instead, the current timeout value should be queried via the hot-potato API, and set here instead.

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.