FNLB Devs

Developer Portal

Gateway

Gateway Overview

The gateway reports what your bots are doing right now: who is connected, who is in the party, and which shard is serving them. Creating a bot, editing it, and running a command still go through the API.

Two ways to read it

  1. REST, documented in the gateway reference and explained in REST interface. Use this when you want the current party, presence, or shard list.
  2. The lists only include bots with a live connection. An offline bot still appears in GET /bots on the API, and it does not appear here.

Polling the gateway also keeps you off the API routes that manage bots. The two services have separate rate limits.

Match the API ids

The gateway does not have its own bot ids.

Run a command on the API, then read GET /bots/{botId} if you need the party that command changed. The command response itself is only the bot's text reply.

What people use it for

  • A dashboard of bots that are online, booting, or busy.
  • Party members, outfits, and who is the leader.
  • Shard health: how many bots a cluster was asked to run, and how many are connected.

Next