Skip to content
forked from PlaceNL2022/Bot

De r/place bot voor r/PlaceNL.

Notifications You must be signed in to change notification settings

griffin-lora/Bot

 
 

Repository files navigation

r/fuckcars Bot

Obtain your access token

  1. Go to r/place
  2. Open the browser console (F12/Inspect element -> Click on console)
  3. Paste the following 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 the quotes (") is your access token.

Installation Instructions

  1. Install NodeJS.

  2. Download the bot from this link.

  3. Extract the bot to a folder somewhere on your computer.

  4. Open a command prompt/terminal in this folder

    Windows: Shift + Right mouse button in the folder -> Click on "Open Powershell here"

    Mac and Linux: Open a terminal and cd to the directory you installed into

  5. Install the necessary depdendencies with npm i

  6. For the bot out with node headless.js ACCESS_TOKEN_HERE

  7. BONUS: You can do the last two steps as many times as you want for additional accounts. Make sure you use other accounts otherwise it won't do anything.

About

De r/place bot voor r/PlaceNL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.2%
  • Python 18.8%