Arbi is a Discord bot which delivers real-time updates on arbitrage trades on Solana. Users can track up to one wallet at a time. Tracking uses Websocket connections to subscribe to real-time updates on accounts.
This project uses pnpm, a fast, disk-efficient package manager. If you dont have
pnpm
installed, you can install it globally by running:npm install -g pnpm
git clone https://github.com/your-username/arbi.git
cd arbi
pnpm install
4. Create a .env
file and populate it with the appropriate environment variables
touch .env
pnpm dev
Command | Description |
---|---|
pnpm dev |
Run the bot in a development environment. |
pnpm start |
Runs the bot in production. |
pnpm build |
Builds the project. |
pnpm format |
Runs prettier formatter on the code. |
pnpm format:check |
Runs a prettier formatting check on the code. |
pnpm lint |
Runs ESLint on the code. |
Variable | Description |
---|---|
DISCORD_TOKEN |
Your Discord bot token secret. |
DATABASE_URL |
Your Postgres DB URL. |
RPC_ENDPOINT |
Your Solana RPC endpoint. |
RPC_WSS_ENDPOINT |
Your Solana Websocket RPC endpoint. |
LOGTAIL_SOURCE_TOKEN |
Your Logtail source token for log transports. |
NODE_ENV |
The current Node environment. |