Telegram bot with actual TORN price
.env.example | ||
.gitignore | ||
index.ts | ||
package.json | ||
README.md | ||
utils.ts |
Startup on your own server
- Create telegram bot using @BotFather and get token;
- Create telegram public channel, add a bot to it and give him admin rights (At least,
Post messages
permission); - Copy
.env.example
file content to.env
; - Fill in
.env
fileBOT_TOKEN
value with a string containing your telegram bot token; - Replace in
.env
fileTELEGRAM_CHANNEL_NAME
value with a string containing inner telegram link to your public channel (for example,@torn_prices
); - Replace in
.env
fileMAINNET_RPC_URL
value, if default RPC doesn't work; - Install dependencies:
npm i
- Start script in the background:
npm run start