Wiki source code of IRC Bot
Last modified by Vincent Massol on 2012/11/28 15:12
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | #set ($ircbot = $services.ircbot) | ||
3 | #if ($ircbot.hasPermission()) | ||
4 | {{info}}You can control the IRC Bot from the [[Bot Command Center>>IRC.IRCBot]].{{/info}} | ||
5 | #end | ||
6 | {{/velocity}} | ||
7 | |||
8 | Here are the IRC logs archived by the IRC Bot: | ||
9 | |||
10 | {{velocity}} | ||
11 | #set ($columns = ['doc.creationDate', 'channel', 'doc.name']) | ||
12 | #set ($columnsProperties = { | ||
13 | 'doc.creationDate' : { 'type' : 'text' }, | ||
14 | 'channel' : { 'type' : 'text' }, | ||
15 | 'doc.name' : { 'type' : 'text', 'link' : 'view'} | ||
16 | }) | ||
17 | #set ($options = { | ||
18 | 'className': 'IRC.IRCBotArchiveClass', | ||
19 | 'translationPrefix' : 'ircbot.livetable.', | ||
20 | 'rowCount': 10, | ||
21 | 'defaultOrder': 'desc' | ||
22 | }) | ||
23 | #livetable('ircarchives' $columns $columnsProperties $options) | ||
24 | {{/velocity}} |