mod_bt.py

Mon, 10 Nov 2014 17:42:04 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Mon, 10 Nov 2014 17:42:04 +0200
changeset 81
ce5d27463356
parent 73
d67cc4fbc3f1
child 83
3dab1fd47d51
permissions
-rw-r--r--

- fixed bad RestartError construction

import bt as Bt

ModuleData = {
	'commands':
	[
		{
			'name': 'ticket',
			'description': 'Gets ticket info',
			'args': '<ticket>',
			'level': 'normal',
		},

		{
			'name': 'testannounce',
			'description': 'Tests the ticket announcer',
			'args': '<recipient> <message...>',
			'level': 'admin',
		},
	]
}

def cmd_ticket (bot, args, replyto, **rest):
	Bt.get_ticket_data (bot, replyto, args['ticket'], True)

def cmd_testannounce (bot, args, **rest):
	Bt.announce_new_issue (bot, Bt.get_issue (args['ticket']))

mercurial