mod_bt.py

Wed, 31 Dec 2014 15:49:11 -0500

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Wed, 31 Dec 2014 15:49:11 -0500
changeset 114
0d1fd111cb22
parent 83
3dab1fd47d51
child 124
7b2cd8b1ba86
permissions
-rw-r--r--

- .idgames now works with the page system

import bt as Bt

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

		{
			'name': 'testannounce',
			'description': 'Tests the ticket announcer',
			'args': '<ticket>',
			'level': 'admin',
		},
		
		{
			'name': 'checkbt',
			'description': 'Polls the bug tracker for new tickets',
			'args': None,
			'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']))

def cmd_checkbt (bot, **rest):
	Bt.poll()

mercurial