Custom Commands / Webhooks
You can add custom commands for your guild, by registering a webhook in the settings page. The webhook must return text/plain "OK" to work properly. Answers to the chat should be written over the REST-API. All necessary data for command processing are supplied in the request body as json object. An example is shown below:

A sample php script to catch the webhook would look like:
Base URL

http://zerotwo.mystex.de:2828/

Authorization

X-ZeroTwo-Auth

Each request which targets an /guild/ endpoint needs to contain a X-ZeroTwo-Auth header with a valid token.
Send simple message

Base-URL + guild/chat/send

This route requires Authorization

Requires a JSON request body (POST)

Json must contain:

message - String

channelId - String - Channel to which the message is send

A successful call to this method will send a simple message to the target channel. An example, how to use it, will be pasted below.
Send embed message

Base-URL + guild/chat/embed

This route requires Authorization

Requires a JSON request body (POST)

Example json:

{
        "channelId":"12345",        #string, required
	"title": {
		"text":"",          #string, optional
		"url":"",           #string, optional
	},
	"thumbnail":"",             #string, optional
	"image":"",                 #string, optional
	"color":1,                  #int, optional
	"description":"",           #string, optional
	"footer": {
		"text":"",          #string, optional
		"iconUrl":"",       #string, optional
	},
	"fields": [                 #array, optional
	{
		"name":"",          #string, optional
		"value":"",         #string, optional
		"inline":"",        #boolean, required
	}
	]
}
A successful call to this method will send an embed message to the target channel. An example, how to use it, will be pasted below.