===========
 WEBSERVER 
===========
| 

about
-----
| 

:author:  Bart Thate <bart@gozerbot.org>
:contact: IRCNET/#dunkbots
:website: http://plugins.gozerbot.org
:license: Public Domain
 
| 

description
-----------
| 

maintain the bots webserver

| 

commands
--------
| 


1) web

    show what web adress we are running on

    ::

        <user> !web
        <output> web server is running at http://localhost:8088

2) web-allowip

    web-allowip <ipnr> .. add ip to whitelist and remove from blacklist

    ::

        <user> !web-allowip 127.0.0.1
        <output> 127.0.0.1 allowed

3) web-defaultallow

    set webservers mode to defaultallow .. all ips except those in the blacklist

    ::

        <user> !web-defaultallow
        <output> ok

4) web-defaultdeny

    put webserver in default deny mode .. only allow ips in whitelist

    ::

        <user> !web-defaultdeny
        <output> ok

5) web-denyip

    web-denyip <ipnr> .. remove from whitelist and add to blacklist

    ::

        <user> !web-denyip 127.0.0.1
        <output> 127.0.0.1 denied

6) web-disable

    disable the webserver

    ::

        <user> !web-disable
        <output> done

7) web-disablehandler

    disable web plugin

    ::

        <user> !web-disablehandler quotes
        <output> webserver is not running

8) web-enable

    web-enable <host> <port> .. enable the webserver

    ::

        <user> !web-enable localhost 8088
        <output> done

9) web-enablehandler

    enable web plugin

    ::

        <user> !web-enablehandler quotes
        <output> quotes handler enabled

10) web-lists

    show webservers white and black lists

    ::

        <user> !web-lists
        <output> whitelist: [] blacklist: ['127.0.0.1']

11) web-reload

    web-reload <handler> .. reload a web handler

    ::

        <user> !web-reload dispatch
        <output> dispatch reloaded

12) webserver-cfg (web-cfg)

    plugin configuration

    ::

        <user> !webserver-cfg
        <output> options: webhost="localhost" .. denyplugs=[] .. whitelist=[] .. webport=8088 .. webenable=1 .. showplugs=['infoitems',
        <output>  'karma', 'quotes'] .. blacklist=['127.0.0.1'] .. whitelistenable=1

13) webserver-cfgsave

    save plugin configuration

    ::

        <user> !webserver-cfgsave
        <output> config saved
