Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skyfallwastaken/arcade-sniper
Auto-purchase items in the Hack Club Arcade Shop - powered by Playwright
https://github.com/skyfallwastaken/arcade-sniper
hackclub nodejs playwright typescript
Last synced: 2 months ago
JSON representation
Auto-purchase items in the Hack Club Arcade Shop - powered by Playwright
- Host: GitHub
- URL: https://github.com/skyfallwastaken/arcade-sniper
- Owner: SkyfallWasTaken
- Created: 2024-08-01T19:00:15.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T02:21:46.000Z (4 months ago)
- Last Synced: 2024-10-14T03:21:35.404Z (2 months ago)
- Topics: hackclub, nodejs, playwright, typescript
- Language: TypeScript
- Homepage:
- Size: 68.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Arcade Sniper
Arcade Sniper monitors the Hack Club Arcade Shop, and purchases items automatically! It's perfect for getting items as soon as they come back in stock or getting a cheap YubiKey at a 1am sale.
## Configuration
You'll need to create a few files before you start!
### `contracts.json`
```json
{
"completed": []
}
```### `userData.json`
Replace the information with your own.
```json
{
"firstName": "John",
"lastName": "Appleseed",
"email": "[email protected]",
"addressLine1": "10 Downing St",
"addressLine2": "",
"city": "London",
"stateOrProvince": "Greater London",
"postalCode": "SW1A 2AB",
"phoneNumber": "07911123456",
"country": "United Kingdom"
}
```### `item_additional_data/{item_id}.json`
Any additional fields you want to set. So for example, the domain name would have this:
```json
{
"orderNotes": "I want skyfall.dev please!"
}
```### `contracts/{contract_id}.json`
**By default, my contracts will be used.** You should change that!
Example:
```json
{
"item": "yubikey",
"purchase": 2,
"maxPrice": 6
}
```### Environment variables
- `ARCADE_USER_ID`: User ID. It's in the URL when you're in the signed-in view.
- `FILLOUT_SESSION_TOKEN`: Find it in DevTools## Running the sniper
To install dependencies:
```bash
npm install
```To run:
```bash
tsx src/index.ts
```