Giter Club home page Giter Club logo

sstk-labworks-bot's Introduction

SSTK Labworks Bot

Preparation

  1. Create Telegram Bot via t.me/BotFather.
  2. Create Firebase Project (Web App).
  3. Create .env file inside bot directory.
  4. Put the Telegram Bot Token inside the bot/.env file.
  5. Prepare random secret from OTP Login, put into bot/.env file. Do not forget to yarn install inside bot directory.

.env:

TOKEN=<Telegram Bot Token>
OTP_SECRET=<OTP Secret>
  1. Prepare bot/external/ directory, do all the steps in bot/external/README.md.
  2. Deploy the Firebase project (inside firebase/ directory).
  3. cd to bot directory.
  4. Run yarn build.
  5. Run yarn start.
  6. Scan the qrcode.png file generated inside bot/external/ using Google Authenticator.
  7. Open the server in http://localhost:3000.
  8. Login into the dashboard using Google Authenticator generated OTP.

For future execution, you only need to do steps 9-13 (step 11 is not needed if you're not changing the OTP_Secret).

sstk-labworks-bot's People

Contributors

iep avatar dependabot[bot] avatar mwafa avatar gpratama avatar

Stargazers

 avatar

Watchers

 avatar

sstk-labworks-bot's Issues

Upcoming spark plan cloud function deprecation

Information

  1. Firebase FAQ; Functions Runtime

  2. These changes for Cloud Functions for Firebase will follow this timeline:

    • By June 22, 2020, all developers using the Node.js 10 runtime will need to update to the “Blaze” pay-as-you-go billing plan and enable the Cloud Build API in order to continue deploying functions.

    • By February 15, 2021, all developers using the Node.js 8 runtime should update to the Node.js 10 runtime and update to the “Blaze” pay-as-you-go billing plan. Developers will no longer be able to create new functions or update existing functions that use Node.js 8.

    • By March 15, 2021, Node.js 8 runtime will be shut down for Cloud Functions for Firebase. Functions using Node.js 8 will be disabled after this date.

    What do I need to do?

    • By June 22, 2020, all developers using the Node.js 10 runtime will need to update to the “Blaze” pay-as-you-go billing plan.

    • By February 15, 2021, all developers using the Node.js 8 runtime should update to the Node.js 10 runtime and update to the “Blaze” pay-as-you-go billing plan, referred to in the point above.

Action To Do

As per above two information given, we need to change Cloud Functions used in this project to another alternative for example Heroku or Vercel then use the Firebase SDK there. Another alternative is to upgrade the plan from Spark to Blaze that needs to input a credit card.

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.