CryptoSharon / telegram-hive-account-value-bot

A Telegram bot that calculates the basic value of an account (doesn't take into account sidechain tokens or splinterlands cards)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram-hive-account-value-bot

A Telegram bot that calculates the basic value of an account (doesn't take into account sidechain tokens or splinterlands cards)

Getting Started

Requirement: Nodejs

Optional: Yarn, PM2, Typescript

Installing Nodejs

  • I followed instructions here

Installing yarn and pm2 with NPM

npm i -g yarn pm2 typescript

Install dependencies:

yarn

or

npm install

Add the token

If you're using Typescript:

cd src
vim secrets.json
tsc

Otherwise:

cd dist
vim secrets.json

change "YOUR TOKEN" for your bot token gotten from @BotFather

Run the bot

node dist

Daemonize the bot with pm2

pm2 start dist --name YourBotsName
pm2 startup

Live Bot

@HiveToolkitBot

The only command available right now is

/value accountname

About

A Telegram bot that calculates the basic value of an account (doesn't take into account sidechain tokens or splinterlands cards)


Languages

Language:TypeScript 93.5%Language:Python 6.5%