Clanwarz-zz / OKlib

A lib for the Sinusbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OKlib

It's OK

This repository contains the SinusBot Script Library OKlib and the JSDoc based javascript file from which the documentation can be generated.

Example

Demo Script that explains how to use the OKlib

registerPlugin({
    name: 'Demo Script',
    version: '1.0',
    description: 'OKlib_Demo',
    author: 'Author <author@example.com>',
    vars: []
}, function(sinusbot, config) {
    require('event').on('load', function(){
        var lib = require('OKlib.js');
        main(lib);
    });
    function main(OKlib){
        //Your code goes here
        //use lib functions now with OKlib.functionName()
    }
});

Build

If you want to build the documentation files follow these steps

npm install -g documentation

Generate html file

documentation build api.js --project-name "OKlib" -f html -o documentation

About

A lib for the Sinusbot

License:Other


Languages

Language:JavaScript 100.0%