torn-price-bot/README.md

11 lines
686 B
Markdown
Raw Normal View History

## Startup on your own server
1. Create telegram bot using [@BotFather](https://t.me/BotFather) and get token;
2. Create telegram public channel, add a bot to it and give him admin rights (At least, `Post messages` permission);
3. Copy `.env.example` file content to `.env`;
4. Fill in `.env` file `BOT_TOKEN` value with a string containing your telegram bot token;
5. Replace in `.env` file `TELEGRAM_CHANNEL_NAME` value with a string containing inner telegram link to your public channel (for example, `@torn_prices`);
6. Replace in `.env` file `MAINNET_RPC_URL` value, if default RPC doesn't work;
7. Install dependencies: `npm i`
8. Start script in the background: `npm run start`