Giter Site home page Giter Site logo

profitsocialstat_bot's Introduction

ProfitSocial Stat TGbot

HI! I'll help you make a telegram bot for ProfitSocial.

This bot:

  1. Donwload .csv statistic for today/yesterday
  2. Upload stat on Zoho sheets
  3. Drop link in chat (today/yesterday - every 30 min)

How install:

  1. You need account on heroku.com and github.com
  2. Copy this repo on your github
  3. Go to https://dashboard.heroku.com/new-app and create new app (add name, choose region)
  4. Go to "Setting" your app and click "Reveal Config Vars", then add variables:
    PROFIT_LOGIN = ProfitSocial authorization mail
    PROFIT_PASSWORD = ProfitSocial authorization password
    TG_TOKEN = api token your telegram bot
    CHAT_ID = chat id in telegram, where bot will drop lins
    TZ = your Time Zone, example: Europe/Moscow (view all zones https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
  5. Scroll down and click "Add buildpacks", insert this links
    https://github.com/heroku/heroku-buildpack-nodejs.git
    https://github.com/jontewks/puppeteer-heroku-buildpack
  6. Go to "Deploy" tab and choose "Deployment method" > GitHub
  7. Click "Enable Automatics Deploys", if you want update bot in the future
  8. Click "Deploy branch" and wait deploy
  9. Choose "Resourses" tab, then OFF "web" switcher and ON "worker" (logs in "More" > "View logs")
  10. Add your bot in TG chat

WELL DONE!

profitsocialstat_bot's People

Contributors

pa2tie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.