11 }, |
11 }, |
12 |
12 |
13 { |
13 { |
14 'name': 'testannounce', |
14 'name': 'testannounce', |
15 'description': 'Tests the ticket announcer', |
15 'description': 'Tests the ticket announcer', |
16 'args': '<recipient> <message...>', |
16 'args': '<ticket>', |
|
17 'level': 'admin', |
|
18 }, |
|
19 |
|
20 { |
|
21 'name': 'checkbt', |
|
22 'description': 'Polls the bug tracker for new tickets', |
|
23 'args': None, |
17 'level': 'admin', |
24 'level': 'admin', |
18 }, |
25 }, |
19 ] |
26 ] |
20 } |
27 } |
21 |
28 |
22 def cmd_ticket (bot, args, replyto, **rest): |
29 def cmd_ticket (bot, args, replyto, **rest): |
23 Bt.get_ticket_data (bot, replyto, args['ticket'], True) |
30 Bt.get_ticket_data (bot, replyto, args['ticket'], True) |
24 |
31 |
25 def cmd_testannounce (bot, args, **rest): |
32 def cmd_testannounce (bot, args, **rest): |
26 Bt.announce_new_issue (bot, Bt.get_issue (args['ticket'])) |
33 Bt.announce_new_issue (bot, Bt.get_issue (args['ticket'])) |
|
34 |
|
35 def cmd_checkbt (bot, **rest): |
|
36 Bt.poll() |