Skip to content

Navigation Menu

Sign up

Developers

Erik Bigler edited this page Sep 10, 2021 · 38 revisions

We welcome all community developers who would like to help with Firebot. If you'd like to participate we recommend starting with some "Entry Level" bugs or feature requests on the issues page. After a commit or two you'll be invited to the Firebot developer discord where we discuss everything.

IDE

We highly recommend you use Visual Studio Code, but you are welcome to use whatever IDE you prefer.

Prerequisites

  • Nodejs v12 through v14

(Note that v16 currently does NOT work)

  • Npm v5 or later

Required packages:
(run with admin privs)

  • grunt-cli (npm install -g grunt-cli)
  • node-gyp(npm install -g node-gyp)
  • windows-build-tools (npm install -g windows-build-tools) OR make sure Visual Studio Community with build tools package is installed

Setup

Windows

Setting up the repo

  1. Clone the Firebot repo to your computer.
  2. Using a shell of your preference (powershell, cmd, git bash), cd to the newly cloned repo directory (ie cd C:\some\path\GitHub\Firebot\)
  3. Run npm run setup (This will install packages, rebuild robotjs, and build node packages for Electron)
  4. After the setup command completes (may take awhile), run npm start
  5. Once it is done building, Firebot should automatically start.

Linux

Preparing development environment on Debian 10.x or newer & Ubuntu 18.04 or newer.

apt install nodejs npm libx11-dev libxtst-dev libpng-dev

The last three packages are needed to compile robot.js / node-gyp.

Installing necessary global NodeJS packages

npm install -g grunt-cli npm install -g node-gyp

Getting the repository

git clone https://github.com/crowbartools/Firebot.git

Making sure everything Firebot needs to run gets installed

npm run setup

Starting Firebot

npm start

Mac

Prerequisites

  • Node
  • Xcode with additional build tools for c++

Install global packages needed for working with and packaging Firebot

npm install --global --production grunt-cli node-gyp

Clone the Firebot repository

git clone https://github.com/crowbartools/Firebot.git

Install and compile all needed Node packages and resources needed to get Firebot running

npm run setup

Start Firebot

npm start

Secrets

Before firebot will start, a secrets.json file will need to be setup.

  • At the root level of the project, you will find a secrets.template.json file. Rename it to secrets.json.
  • In this file are empty strings for oauth client and secret keys for twitch and various 3rd party integrations. The only needed keys for development are the twitch ones (unless you plan to dev features for any of the integrations)
  • To create your own oauth client for twitch, you can register a twitch "application" at: https://dev.twitch.tv/console/apps/create
    • For the name you can call it anything ie FirebotDev
    • Set the callback URL to http://localhost:7472/api/v1/auth/callback
  • Input your client ID and client secret into the secrets.json file.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /