Sat, 11 Apr 2015 21:02:09 +0300
- reworked mercurial repository handling, removed hardcoded values
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()