Updated Python plugin for API changes

This commit is contained in:
James Booth
2016-02-23 21:24:50 +00:00
parent 9e7f472b23
commit 0557eff53b
8 changed files with 99 additions and 132 deletions

12
say.py
View File

@@ -38,6 +38,14 @@ def _cmd_say(arg=None):
prof.cons_show("Usage: /say on|off")
def prof_init(version, status):
prof.register_command("/say", 1, 1, "/say on|pff", "Enable or disable say.", "Enable or disable say.",
_cmd_say)
synopsis = [
"/say on|off"
]
description = "Read all messages out loud"
args = [
[ "on|off", "Enable/disable say" ]
]
examples = []
prof.register_command("/say", 1, 1, synopsis, description, args, examples, _cmd_say)
prof.register_ac("/say", [ "on", "off" ])