Skip to content

Telegram Bot made for ICO Syndicate fund managers and investors.

Notifications You must be signed in to change notification settings

sudoryan/telegramSyndicateBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegramBot

Features

Managers

  • Deploys Whitelist and Deal Contracts
  • View Deal information (balances, start/end time, exchange rate, ...)
  • Set deal exchange rate
  • Add/Remove Members to Whitelist Contract
  • Add funds

Investors

  • View ICO deals
  • View investment balances
  • Link accounting w/ eth address

Deploy Locally

Set up env_vars in .env.json

{
     "NODE_ENV": "prod",
     "ICOBOT_TOKEN": "",
     "PORT": "8443",
     "FIREBASE_URL": "",
     "type": "",
     "project_id": "",
     "private_key_id": "",
     "private_key": "",
     "client_email": "",
     "client_id": "",
     "auth_uri": "",
     "token_uri": "",
     "auth_provider_x509_cert_url": "",
     "client_x509_cert_url": ""
}

Install and run ngrok

./ngrok http 8443

Run app

NODE_ENV=dev node app.js

Set Telegram Webhook

curl 'https://api.telegram.org/bot[bot_token]/setWebhook?url=[ngrok_https_url]:443/[bot_token]'

Done

Deploy to Zeit

Set up env_vars in now.json

{
    "env": {
        "NODE_ENV": "prod",
        "ICOBOT_TOKEN": "",
        "PORT": "8443",
        "FIREBASE_URL": "",
        "type": "",
        "project_id": "",
        "private_key_id": "",
        "private_key": "",
        "client_email": "",
        "client_id": "",
        "auth_uri": "",
        "token_uri": "",
        "auth_provider_x509_cert_url": "",
        "client_x509_cert_url": ""
    }
}

Install now

npm i -g --unsafe-perm now

Login now

now login

Deploy

now

Set Telegram Webhook

curl 'https://api.telegram.org/bot[bot_token]/setWebhook?url=[now_url]:443/[bot_token]'

Done

About

Telegram Bot made for ICO Syndicate fund managers and investors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published