https://github.com/ashmadev/node-dogebot
Trading bot that buys DOGE when Elon Musk tweets about it
https://github.com/ashmadev/node-dogebot
cryptocurrency dogecoin elonmusk
Last synced: 9 months ago
JSON representation
Trading bot that buys DOGE when Elon Musk tweets about it
- Host: GitHub
- URL: https://github.com/ashmadev/node-dogebot
- Owner: AshmaDev
- Created: 2023-05-28T16:23:55.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T12:33:02.000Z (about 3 years ago)
- Last Synced: 2025-03-06T10:27:37.423Z (over 1 year ago)
- Topics: cryptocurrency, dogecoin, elonmusk
- Language: TypeScript
- Homepage:
- Size: 1.14 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Crypto trading bot that follows a Twitter account and buys crypto automatically when mentioned!
## Configuration
Before running the DogeBot application, make sure to provide required configuration.
### 1. Environmental variables
Set up the required API keys by creating a .env file in the config directory. The .env file should have the following structure:
```
TWITTER_CONSUMER=""
TWITTER_CONSUMER_KEY=""
TWITTER_ACCESS_TOKEN=""
TWITTER_ACCESS_SECRET=""
BINANCE_API_KEY=""
BINANCE_API_SECRET=""
```
Replace the empty quotes ("") with your actual API keys obtained from the respective services.
These API keys are necessary for accessing the [Twitter API](https://developer.twitter.com/en/docs/twitter-api). and [Binance API](https://www.binance.com/en/binance-api).
### 2. Dogebot conifg
Create a file named dogebot.config.js in config directory. The file should have the following structure:
```json
{
"twitterId": 44196397,
"allowReplies": false,
"trade": {
"enabled": false,
"balancePercentage": 0.25,
"timeToSell": 5,
"coin": "DOGE",
"pairCoin": "USDT"
}
}
```
Customize the values in the JSON object according to your preferences:
- "twitterId": Replace 44196397 with the Twitter user ID you want to track. You can find the user ID using online tools or Twitter API documentation.
- "allowReplies": Set this to true if you want the bot to respond to replies, or false if you want to ignore replies.
- "trade": Configure the trade settings as per your requirements. Adjust the values of "enabled", "balancePercentage", "timeToSell", "coin", and "pairCoin" based on your trading strategy.
Make sure to review and update the configuration values according to your needs before running the DogeBot application.
## Run with Docker
Build the Docker image by running the following command:
```bash
docker build -t node-dogebot:1.0.0 .
```
Once the image is built, you can run a Docker container with the following command:
```bash
docker run -d --name dogebot-container node-dogebot:1.0.0
```
The DogeBot application should now be running inside the Docker container. You can check the logs of the container using the following command:
```bash
docker logs dogebot-container
```
## License
This project is licensed under the MIT License.