https://github.com/complexlity/tip-warpcast-commenters
https://github.com/complexlity/tip-warpcast-commenters
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/complexlity/tip-warpcast-commenters
- Owner: Complexlity
- Created: 2024-02-22T16:14:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-27T05:18:15.000Z (about 2 years ago)
- Last Synced: 2025-01-26T01:28:36.347Z (over 1 year ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tip Commenters on a specified cast
This contains two scripts that enables tipping people that comment on a warpcast cast
## Pre-requisites
- [node/npm](https://nodejs.org/en) installed on your machine. The version used for testing is 18.7.1 but should work with newer nodejs version as well
- Private key of a wallet containing some ETH on base chain (for gas fees) and [DEGEN](https://www.coingecko.com/en/coins/degen) tokens
## Getting Started
- Clone this repo locally
```
git clone https://github.com/Complexlity/tip-warpcast-commenters.git
```
- Enter the directory
```
cd tip-warpcast-commenters
```
- Install dependencies
```
npm install
or
pnpm install
```
- Add Environmental Variables
```
#.env
# Your address private key
PRIVATE_KEY=
# The default name for the output file
DEFAULT_WINNERS_FILE=winners.csv
# Remove this if you want to also gift the thread owner
EXCLUDE_THREAD_OWNER=true
```
Go into the `.env` file and input you wallet private key.
The other two variables can be left as is
## How to Use
1. Get Replies For A warpcast Url
```
node getReplies
```
`output_file` is optional and defaults to the `DEFAULT_WINNERS_FILE` in the .env
e.g `node getReplies https://warpcast.com/complexlity/0x2213bfa1 commenters.csv`
2. Gift DEGENS to the commenters
Currently, only degen is supported
```
node giftTokens
```
`input_file` is optional and defaults to the `DEFAULT_WINNERS_FILE` in the .env
e.g `node giftTokens 100 commenters.csv`