zookyy / crypto-sniper

Eryx is a fast and efficient crypto sniper bot written in NodeJS to automatically buy and sell tokens on the supported chains as soon as liquidity is added and trade is enabled.
https://eryx.io
266 stars 103 forks source link

Bun.sh integration #6

Closed philosofonusus closed 2 years ago

philosofonusus commented 2 years ago

Hello, I have your premium version I would like to use it with bun, I face this issue, can you please help me if I could resolve this?

 error: Cannot find module 'crypto'
 code: "MODULE_NOT_FOUND"

      at Q (/Users/daisydream/Projects/CryptoSniper/index.js:163:32)
      at /Users/daisydream/Projects/CryptoSniper/index.js:352:28
      at Q (/Users/daisydream/Projects/CryptoSniper/index.js:169:20)
      at x (/Users/daisydream/Projects/CryptoSniper/index.js:189:126)
      at /Users/daisydream/Projects/CryptoSniper/index.js:193:7
zookyy commented 2 years ago

Hey, you need to run npm install in the dir of the bot.

philosofonusus commented 2 years ago

Hey, you need to run npm install in the dir of the bot.

Crypto is built-in module of nodejs, so it won't do much, I'm trying to add more speed to it with bun, bun has its own similar module like crypto, maybe you could make the bot work with bun? I'm really sorry for a late response

zookyy commented 2 years ago

Well the demo bot is a plain simple bot that executes a buy transaction. I'm not planning to add any other functionality to it than that.