InvenTutor Plugins
DocsTutorialsPluginsComponents
  • 📙Docs
  • 🎬Tutorials
  • 🧩Plugins
  • ⚡Components
  • Plugin Support
  • Active Developer Badge
  • Basic Moderation Commands
  • Birthdays
  • Character Roleplay
  • Free Chat AI
  • Invite Tracker
  • Tags Messages
  • Twitch Stream Notifier
  • In Development
    • ❓About Category
    • ER:LC API Commands
      • Integrate API Into Components
    • Roblox Price Changer
  • Planned
    • ❓About Category
    • ER:LC Roleplay Commands
    • Roblox Group Manager
    • YouTube Video Notifier
    • Bluesky Post Notifier
    • Message Manager
Powered by GitBook
On this page
  • Perks of using 8ERLCGVS
  • Usage Examples
  • Custom Blocks
  • How to Send a Request
  • How to Read the Response
  1. In Development
  2. ER:LC API Commands

Integrate API Into Components

Easily integrate the ER:LC API into your components and plugins!

Last updated 7 days ago

Warning

This is an feature.

To use the ER:LC API externally by utilizing the ER:LC API Commands plugin, use the 8BiToe's ER:LC Global Variables System (8ERLCGVS).

Disclaimer

Using this system requires intermediate knowledge of string manipulation!


Perks of using 8ERLCGVS

  • Easier to understand - Using this system should be easier than learning how to use APIs and formatting their results. Many endpoint results cannot be natively retrieved on Inventor, and this system returns data in a consistent easily-extractable format.

  • Quick Implementation - When creating your own plugins/components that aren't ER:LC focused, you don't have to waste time learning how to use the API. You can quickly integrate ER:LC features into your plugins/components.

  • Respects rate-limits - By using 8ERLCGVS, you don't have to worry about rate-limits. The plugin waits until the rate-limit expires, and then executes your actions.

  • Retrieving last data when rate-limited - When attempting to load data while you are being rate-limited, you will be instead returned the last cached data. All data has an Unix timestamp.

TL:DR - You will save time and headaches :)


Usage Examples

Automatic Game Messages

  • Every 15 Minutes Trigger

  • Send ER:LC API Request (/command, :h Hello!)

Custom Moderation Integration

  • Slash Command Trigger

  • Get Row (Custom database with Discord User ID and Roblox name)

  • Send ER:LC API Request (/command, :ban RobloxName)

  • Ban Server Member

  • Text Reply


Note

A "Check if ER:LC Server API Key is Valid" Custom Block will be made sometime later for integration convenience.

Warning for Plugin Creators

Inventor Library moderators may deny your plugin if it entirely depends on this system. Please make your plugins work without this system, or make your own.


Custom Blocks


How to Send a Request

Use the "Send ER:LC API Request" Custom Block to add a Request to the Request Queue.

Use the uuid tracking Output Variable if you need to track your request.


How to Read the Response

Warning

The plugin checks for Global Variables every minute! (Due to "Global Variable Created" not being a trigger.)

You need to make your systems in a way that check the result every minute instead of immediately expecting a response.

Use the "Receive ER:LC API Response" Custom Block to read the responses of a request.

Reply Examples:

Server Status

Players

Join Logs

Queue

Kill Logs

Command Logs

Moderator Call Logs

Bans

Vehicles

Run a Command

Note

Reply examples will be added later.

Returned data is separated by Newlines and |||. Use string blocks to retrieve these values.

Each separate string is JSON encoded. Use this example to parse the value correctly:

View all available Components on the page.

Bump if you want the "Global Variable Created" trigger added.

this suggestion
⭐ InvenTutor Pro
Components
Players Example
Run a Command Example