]> jfr.im git - irc.git/blob - software/mircstats/storage.googleapis.com/mircstats/parser/Eggdrop_parser.txt
mv
[irc.git] / software / mircstats / storage.googleapis.com / mircstats / parser / Eggdrop_parser.txt
1 [mIRCStats parser configuration file]
2
3 // File information (these lines are shown in mIRCStats)
4
5 [File Description]
6 Eggdrop (CHECK NOTES FROM FILE!)
7
8 [Author]
9 Ave
10
11
12 // ===== NOTES to EGGDROP PARSER ====
13 //
14 // Current version of mIRCStats needs some date information in the log
15 // until it can start analyzing the contents. In eggdrop-formatted logs
16 // the date information is only on the LAST line, that causes mIRCStats
17 // not to be able to parse any contents.
18 //
19 // In order to parse files, you need to move the last line from the log
20 // to the beginning of the log. The line looks like this:
21 // [00:00] --- Fri Jun 14 2002
22
23 // Another thing: Current version of mIRCStats parses the channelname
24 // from a dedicated "Channelname" line like: * Now talking in #chan
25 // In eggdrop format there's no such line. This causes mIRCStats to use
26 // Log filename as channelname. You might add this line also to the
27 // beginning of the file.
28
29 // So, add these two lines to the beginning of the file (remove comment chars:)
30 //
31 // [00:00] --- Fri Jun 14 2002
32 // * Now talking in #mychannel
33 //
34
35 // ==================================
36
37
38
39 // Allowed variables are:
40 //
41 // Single-word variables:
42 // %nick%, %nick2%, %addr%, %channelname%, %monthname%, %ampm%, %anyword%
43 //
44 // Numeric variables:
45 // %hour%, %minute%, %second%,
46 // %day%, %month%, %year%, %anynum%
47 //
48 // Multi-word variables (only one allowed per line):
49 // %text%, %mode%, %anytext%
50
51 // Main rules:
52 // - Variables have to be delimited by some non-variable characters like [%hour%:%minute%]
53 // (unless they are fixed length ones like %2hour% (2-digit numeric hour).
54 // - You can only use one multi-word variable per line.
55 // - Don't use the same variable multiple times on any line.
56 // - Use "Test Parser" option to verify your new parsing rules ("Log parser"-settings page).
57 // - Check mIRCStats help for more info ("Setting options/Log parser")
58
59
60
61 // ----------------Parser configuration rules start here-------------------------------
62
63 // timestamp parsing rules:
64
65 [timestamp]
66 [%2hour%:%2minute%]
67
68
69 // Parsing patterns in order of probability:
70
71 [Normal line]
72 <%nick%> %text%
73
74 [Action]
75 Action: %nick% %text%
76
77 [Mode change]
78 %anyword%: mode change '%mode% %text%' by %nick%!%anyword%
79
80 [Join]
81 %nick% (%addr%) joined %channelname%.
82
83
84 [Part]
85 %nick% (%addr%) left %channelname%.
86 %nick% (%addr%) left %channelname% (%text%).
87
88 [Quit]
89 %nick% (%addr%) left irc: %text%
90
91 [Session Start]
92
93 [Session Close]
94
95 [Session Time]
96 --- %anyword% %monthname% %day% %year%
97 --- %anyword% %monthname% %day% %year%
98
99 [Own normal line]
100 > %text%
101
102 [Channelname]
103 * Now talking in %channelname%
104
105 [Rename]
106 Nick change: %nick% -> %nick2%
107
108 [Topic change]
109 * %nick% changes topic to '%text%'
110 *** %nick% changes topic to '%text%'
111
112
113 [Kick]
114 %nick% kicked from %channelname% by %nick2%: %text%
115
116
117 [Skip]
118 // skip these lines that conflict with other parsing rules
119
120
121
122 // If you use %monthname% in your parser configuration
123 // you need to define 12 month strings that are converted
124 // into a month number here
125
126 [Month names]
127 Jan
128 Feb
129 Mar
130 Apr
131 May
132 Jun
133 Jul
134 Aug
135 Sep
136 Oct
137 Nov
138 Dec