Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
/ dbm-firebase Public archive

πŸ”₯πŸ—‚ Use the Firebase database on DBM easily and completely.

License

Notifications You must be signed in to change notification settings

cappp/dbm-firebase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Discord Bot Maker Firebase

Use the Firebase database on DBM easily and completely.

Table of contents

Getting started

We will first start by doing what is necessary.

1. We need to login in Firebase website with a Google account. Visit the Firebase website.
2. Click on top right button called "Go to console" to go to console of Firebase.


3. Create a new project and do what is needed.

4. Create a new web app and do what ask.

Note: you do not need to click this option, it is optional:

All done so far. Let's continue.

Configuring DBM bot

Now we will prepare your bot to start using the service. Look carefully.

1. Download the latest release of Firebase integration mods clicking here (note: DBM Mods must be installed first).
2. With the .zip file downloaded, extract it and open the first folder.

Looking at the folders, there will be the folder "actions" and "data", in actions are DBM mods integrated with Firebase, and in data is where we should configure our database in our bot, there will have the file fbConfig.json.

Installing actions folder

1. Open your Steam Library and open the Softwares tab.
2. Choose Discord Bot Maker β†’ Local Files β†’ Browse Local Files
3. Now copy the folder actions you downloaded out of the zip file into that folder you just opened (please overwrite existing ones).

Note: If you don't run your bot with DBM make sure to copy this actions to your bot's directory too! Same for hosted bots! If you don't do this, missing actions will appear as "XYZ is not an Action" in your console.

Installing and setting data folder

1. Copy the data folder to your DBM bot main directory (replace existing files).
2. In the folder of your bot, now go to the data folder and open the file fbConfig.json, in it you will see something like this:

{
  "apiKey": "X",
  "authDomain": "X",
  "databaseURL": "X",
  "projectId": "X",
  "storageBucket": "X",
  "messagingSenderId": "X",
  "appId": "X"
}

You must replace each X for such a thing as you are saying and then just save.

Where find the X values of my Firebase project?

1. Access your chosen Firebase project.
2. Go to where your project settings are.

3. Scroll down and you will see the apps of your project (create one if you don't have one), go to where is "Firebase SDK snippet" and select the "Config" option and copy the value of each field of that and paste it into your fbConfig.json.

Creating database

1. In the main part of your Firebase project, select from the "Database" side menu.

2. On the page you will have two database options, I recommend Realtime (the below), both have slight differences, but Realtime is already great. Click on Create Database.

3. Choose whether the DB will be private to write something to and read to certain people or if it will be open to everyone, use open mode (test mode), since if you have a command that uses database, the user will have to be able to register their datas.

All finished

Now your Firebase database is registered and you can now use the control, check, store and delete mods to control servers, members, and globally your DB in your DBM bot!

You can use the following mods:

  • Control Firebase Server Data
  • Control Firebase Member Data
  • Control Firebase Global Data
  • Check Firebase Server Data
  • Check Firebase Member Data
  • Check Firebase Global Data
  • Store Firebase Server Data
  • Store Firebase Member Data
  • Store Firebase Global Data
  • Delete Firebase Server Data
  • Delete Firebase Member Data
  • Delete Firebase Global Data
  • Store Firebase Member Data List

Issues

If you want to make a suggestion or report a possible bug, open an issue.