1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/plugins/helloworld.py
2013-08-03 00:31:58 +01:00

26 lines
502 B
Python

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()
def prof_on_connect():
prof.cons_show("Connected hello world plugin")
# local functions
def helloworld():
global package_version
global package_status
prof.cons_show("Hello world! (" + package_version + " - " + package_status + ")")