Scripting within kiwi IRC is still experimental and therefore undocumented.

For client plugins however, there is an example and more information here