Update README, .env

Remove Docker
This commit is contained in:
OneRobotBoii
2024-02-16 20:45:36 +07:00
parent 81f406cffe
commit 37d78cb999
4 changed files with 9 additions and 38 deletions

View File

@ -1,14 +0,0 @@
# Ignore node_modules folder
node_modules/
# Ignore npm debug log
npm-debug.log
# Ignore yarn debug log
yarn-debug.log
# Ignore yarn error log
yarn-error.log
# Ignore .env file
.env

View File

@ -6,6 +6,5 @@ QUOTE_AMOUNT=0.1
COMMITMENT_LEVEL=finalized
USE_SNIPE_LIST=false
SNIPE_LIST_REFRESH_INTERVAL=30000
DISCORD_WEBHOOK=https://discord.com/api/webhooks/ex/am/ple
AUTO_SELL=false
SELL_DELAY=2000

View File

@ -1,23 +0,0 @@
# Use node.js as base image
FROM node:latest
# Set the working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the working directory
COPY package*.json ./
# Install the dependencies
RUN npm install
# Copy the source code to the working directory (except the files in .dockerignore)
COPY . .
# Copy the .env.copy file to .env
RUN cp .env.copy .env
# Expose the port
EXPOSE 3000
# Start the application
CMD ["npm", "run", "buy"]

View File

@ -40,6 +40,15 @@ You can update the list while script is running. Script will check for new value
Pool must not exist before the script starts.
It will buy only when new pool is open for trading. If you want to buy token that will be launched in the future, make sure that script is running before the launch.
## Auto Sell
By default, auto sell is disabled. If you want to enable it, you need to:
- Change variable `AUTO_SELL` to `true`
- Update `SELL_DELAY` to the number of milliseconds you want to wait before selling the token
This will sell the token after the specified delay. (+- RPC node speed)
This feature is **experimental** and should be used with caution. Make sure you understand the risks before enabling it. There is no guarantee that the token will be sold at a profit or even sold at all. The developer is not responsible for any losses incurred by using this feature.
## Common issues
If you have an error which is not listed here, please create a new issue in this repository.