8000 GitHub - Perska/SBS-chatJS-Plugins: The chatJS plugin database
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Perska/SBS-chatJS-Plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SBS chatJS Plugins

The chatJS plugin API you've been waiting for

This is the place to store your plugins and resources for the chatJS feature of SmileBASIC Source, with a couple of goodies!

How to use

  1. Copy the contents of bootstrap.js to your SBS chatJS.
  2. Add your loadPlugin lines.
  3. Profit!

How to program a plugin

This plugin system adds a couple of useful functions. For example, if you add an init() function in your code, the code will run automatically when the DOM is loaded. No more attaching to window.addEventListener("load") and worrying about if it'll load or not. Also, there's an idiom for commands.push(new Command(...)) called addCommand(name, func, desc). Finally, this adds moduleMessage, which will send a message to the user that isn't centered.

Example

chatJS (after bootstrap data):

loadPlugin("myplugin");

plugins/myplugin.js:

var init = function(){
  systemMessage("Hello, world!");
};

About

The chatJS plugin database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0