mod_example

A minimal starting point for your own plug-in. Part of the bundled plug-ins.

mod_example is a tiny reference plug-in. It registers a single command and is meant to be read and copied as the skeleton for a plug-in of your own. It takes no configuration string:

plugin /var/lib/uhub/mod_example.so

Commands

CommandAccessDescription
!exampleguestReplies with “Hello from mod_example.”

The source is src/plugins/mod_example.c. See the plug-in API for the callbacks and hub functions a plug-in can use.