😎Getting Started

Installation

Install packages using this command in terminal

npm install

Authenticating with Firebase

To generate a private key file for your service account:

  • In the Firebase console, open Settings > Service Accounts.

  • Click Generate New Private Key, then confirm by clicking Generate Key.

  • Securely store the JSON file containing the key.

  • Rename the file to credential.json

credential.json
{
  "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": ""
}

Getting the bot online

Type the following command in terminal

node .

That's it your bot is now online!

Last updated