/Bot

De r/place bot voor r/PlaceNL.

Primary LanguageJavaScript

NEDERLANDSE VERSIE ONDERAAN DE PAGINA

PlaceNL Bot (English)

The bot for PlaceNL and their allies! This bot connects with the command server and gets it's orders from there. You can see the orderhistory here.

User script bot

Installation instructions

before you start, make sure your cooldown has run out!

  1. Install the Tampermonkey browserextention.
  2. Click on this link: https://github.com/PlaceNL/Bot/raw/master/placenlbot.user.js. If everything went well you'll see Tampermonkey ask you to add it. Click Install.
  3. Reload your r/place tab. If everything went well, you'll see "Accesstoken ophalen..." in the top right of your screen. The bot is now active, You'll be able to see what the bot is doing through these messages.

Cons of this bot

  • When the bot places a pixel, it will look as if it wasn't placed, while the bot has already done that (and thus you're in cooldown). You can see the cooldown in the topright of your screen.

Headless bot

You can get an access token

  1. Go to r/place
  2. Open the browser console (F12 -> Click on console)
  3. paste this code and press enter:
async function getAccessToken() {
	const usingOldReddit = window.location.href.includes('new.reddit.com');
	const url = usingOldReddit ? 'https://new.reddit.com/r/place/' : 'https://www.reddit.com/r/place/';
	const response = await fetch(url);
	const responseText = await response.text();

	return responseText.split('\"accessToken\":\"')[1].split('"')[0];
}

await getAccessToken()
  1. The text between quotes (") is your access token.

Installation instructions

  1. Install NodeJS.
  2. Download the bot via this link.
  3. Extract the bot anywhere on your desktop
  4. Open a command prompt/terminal in this folder Windows: Shift+right mousebutton in the folder -> Click on "open Powershell here" Mac: No clue, sorry! Linux: Is this neccisary?
  5. install the dependencies: npm i
  6. execute the bot node bot.js ACCESS_TOKEN_HIER
  7. BONUS: You can repeat these steps for any amount of accounts you'd want. Keep in mind to use different accounts.

PlaceNL Bot

De bot voor PlaceNL! Deze bot verbindt met de commando server en krijgt daar order van. De ordergeschiedenis kan je hier bekijken.

User script bot

Installatieinstructies

Voordat je begint, zorg dat je pixel wachttijd is verlopen!

  1. Installeer de Tampermonkey browserextensie.
  2. Klik op deze link: https://github.com/PlaceNL/Bot/raw/master/placenlbot.user.js. Als het goed is zal Tampermonkey je moeten aanbieden om een userscript te installeren. Klik op Install.
  3. Herlaad je r/place tabblad. Als alles goed is gegaan, zie je "Accesstoken ophalen..." rechtsbovenin je scherm. De bot is nu actief, en zal je via deze meldingen rechtsbovenin je scherm op de hoogte houden van wat 'ie doet.

Nadelen van deze bot

  • Wanneer de bot een pixel plaatst, ziet het er voor jezelf uit alsof je nog steeds een pixel kunt plaatsen, terwijl de bot dit al voor je heeft gedaan (en je dus in de 5 minuten cooldown zit). De cooldown wordt daarom rechtsbovenin je scherm weergegeven.

Headless bot

Je access token verkrijgen

  1. Ga naar r/place
  2. Open de browser console (F12/Element inspecteren -> Click op console)
  3. Plak de volgende code en druk op enter:
async function getAccessToken() {
	const usingOldReddit = window.location.href.includes('new.reddit.com');
	const url = usingOldReddit ? 'https://new.reddit.com/r/place/' : 'https://www.reddit.com/r/place/';
	const response = await fetch(url);
	const responseText = await response.text();

	return responseText.split('\"accessToken\":\"')[1].split('"')[0];
}

await getAccessToken()
  1. De tekst tussen de quotes (") is je access token.

Installatieinstructies

  1. Installeer NodeJS.
  2. Download de bot via deze link.
  3. Pak de bot uit naar een folder ergens op je computer.
  4. Open een command prompt/terminal in deze folder Windows: Shift+Rechter muis knop in de folder -> Click op "Powershell hier openen" Mac: Echt geen idee. Sorry! Linux: Niet echt nodig toch?
  5. Installeer de nodige depdendencies met npm i
  6. Voor de bot uit met node bot.js ACCESS_TOKEN_HIER
  7. BONUS: Je kunt de laatse twee stappen zo vaak doen als je wil voor extra accounts. Let wel op dat je andere accounts gebruikt anders heeft het niet heel veel zin.