2013-07-30 18:37:46 -04:00
|
|
|
import prof
|
|
|
|
|
|
|
|
package_version = None
|
|
|
|
package_status = None
|
|
|
|
|
|
|
|
# hooks
|
|
|
|
|
|
|
|
def prof_init(version, status):
|
|
|
|
global package_version
|
|
|
|
global package_status
|
|
|
|
package_version = version
|
|
|
|
package_status = status
|
|
|
|
|
|
|
|
def prof_on_start():
|
|
|
|
helloworld()
|
|
|
|
|
2013-08-02 19:22:00 -04:00
|
|
|
def prof_on_connect():
|
2013-08-02 19:31:27 -04:00
|
|
|
prof.cons_show("Connected hello world plugin")
|
2013-08-02 19:22:00 -04:00
|
|
|
|
2013-07-30 18:37:46 -04:00
|
|
|
# local functions
|
|
|
|
|
|
|
|
def helloworld():
|
|
|
|
global package_version
|
|
|
|
global package_status
|
|
|
|
prof.cons_show("Hello world! (" + package_version + " - " + package_status + ")")
|