Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Dec 3, 2024
1 parent f580667 commit 5c4727e
Show file tree
Hide file tree
Showing 9 changed files with 327 additions and 523 deletions.
15 changes: 2 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
FROM node:20
FROM python:3

ENV NODE_ENV=production
ENV USER_ID=

WORKDIR /app

RUN apt-get update -qq -y && \
apt-get install -y vim wget

ADD . /app/

# install dependencies
RUN npm install --omit=dev
RUN npm install pm2 -g
RUN pm2 install pm2-logrotate
RUN pm2 set pm2-logrotate:compress true
RUN pm2 set pm2-logrotate:dateFormat YYYY-MM-DD_HH-mm-ss
RUN pm2 set pm2-logrotate:rotateInterval '*/5 * * * *'
RUN pm2 set pm2-logrotate:max_size 10M
RUN pm2 set pm2-logrotate:retain 2
RUN pip install -r requirements.txt
RUN chmod +x /app/entrypoint.sh

CMD ["/bin/bash", "/app/entrypoint.sh"]
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
<img alt="image" src="https://github.com/user-attachments/assets/55afee11-765c-42ff-9460-3c1cac1252d4">
</a>


Auto ping bot for [NodePay](https://app.nodepay.ai/register?ref=ffWdlWvILxU2eSW), with multi accounts and multi proxies support.

[https://app.nodepay.ai/](https://app.nodepay.ai/register?ref=ffWdlWvILxU2eSW)

[手把手中文使用教程](https://mirror.xyz/0xe8224b3E9C8d35b34D088BB5A216B733a5A6D9EA/S5Pjq_SlQoJvLwyV0Q0wSpqo7h_2-V0uPwaiyhDG-r0) | TG Channel: https://t.me/+ntyApQYvrBowZTc1
[手把手中文使用教程](https://mirror.xyz/0xe8224b3E9C8d35b34D088BB5A216B733a5A6D9EA/S5Pjq_SlQoJvLwyV0Q0wSpqo7h_2-V0uPwaiyhDG-r0) | TG Channel: <https://t.me/+ntyApQYvrBowZTc1>

## Features

Expand Down Expand Up @@ -102,7 +101,6 @@ docker run -d \
overtrue/nodepay-bot
```


### Check running stats

```bash
Expand All @@ -113,7 +111,6 @@ docker ps
docker logs -f <containerid>
```


### Manual Installation

> You need to have Node.js installed on your machine to run the bot manually.
Expand Down Expand Up @@ -148,19 +145,19 @@ socks5://username:password@hostname2:port
1. Run the `nodepay-bot` by executing the following command:

```bash
npm run start
pip install -r requirements.txt
```

1. If you want to run the bot in the background, you can use the `pm2` package:

```bash
npm install -g pm2
pm2 start app.js
python3 main.py
```

## Note

- Run this bot, I don't guarantee you will get the reward, it depends on the Getgrass website.
- Run this bot, I don't guarantee you will get the reward, it depends on the nodepay website.
- If you dont familiar with the python, you can use the docker to run this bot.
- You can just run this bot at your own risk, I'm not responsible for any loss or damage caused by this bot. This bot is for educational purposes only.

## Contribution
Expand Down
285 changes: 0 additions & 285 deletions app.js

This file was deleted.

7 changes: 1 addition & 6 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
#!/bin/bash

pm2 flush
pm2 delete all

pm2 start /app/app.js

pm2 logs
python3 main.py
Loading

0 comments on commit 5c4727e

Please sign in to comment.