4
0

pisg.cfg.example 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. # pisg.cfg.example - a complete configuration for pisg, ready to copy.
  2. #
  3. # 1. Copy this file to pisg.cfg
  4. # 2. Change the values marked EDIT (log path, format, network, output file, name)
  5. # 3. Run ./pisg
  6. #
  7. # Every option pisg understands is listed below with its meaning. Options are set to
  8. # pisg's own default unless the comment says "recommended". Lines starting with # are
  9. # comments; an option shown commented out is off/unset - remove the # to use it.
  10. #
  11. # Syntax reminders:
  12. # <set Name="value"> a global option, applies to every channel
  13. # <channel="#name"> ... </channel> settings for one channel (they override <set>)
  14. # <user nick="..." ...> per-user settings
  15. # Each <set> must be on one line, and every value must be in quotes.
  16. ##############################################################################
  17. # GLOBAL OPTIONS - apply to every channel below
  18. ##############################################################################
  19. # ---- General options -------------------------------------------------------
  20. # use a different color scheme for stats page - recommended: modern, light/dark theme;
  21. # try midnight, amoled, terminal, or default
  22. <set ColorScheme="modern">
  23. # alternate stylesheets for stats page - extra stylesheets the visitor can switch to
  24. #<set AltColorScheme="midnight.css amoled.css">
  25. # define the language / translation to use
  26. <set Lang="EN">
  27. # define a file as page header - HTML file inserted above the statistics
  28. #<set PageHead="header.html">
  29. # define a file as page footer - HTML file inserted below the statistics
  30. #<set PageFoot="footer.html">
  31. # make pisg silent, suppress messages
  32. <set Silent="0">
  33. # use a cache to speed up log parsing - cache parsed logs here to speed up runs (delete
  34. # it when you change settings)
  35. #<set CacheDir="cache/">
  36. # name of the channel list file for a landing page
  37. <set ChannelIndex="channels.json">
  38. # adds a button at the top of every stats page that leads back to your landing page
  39. <set HomeLink="">
  40. # enable/disable the section bar at the top of the page
  41. <set ShowNavBar="1">
  42. # ---- Options for various statistics features -------------------------------
  43. # number of days to show in "Daily Actitity" - recommended: show the last 14 days as a
  44. # bar chart
  45. <set DailyActivity="14">
  46. # enable/disable "Most Active Times"
  47. <set ShowActiveTimes="1">
  48. # enable/disable "Most Active Nicks"
  49. <set ShowActiveNicks="1">
  50. # enable/disable "Big Numbers" sections
  51. <set ShowBigNumbers="1">
  52. # enable/disable "Latest topics" sections
  53. <set ShowTopics="1">
  54. # enable/disable "number of lines"
  55. <set ShowLines="1">
  56. # enable/disable "words per line" - recommended: also show words per line
  57. <set ShowWpl="1">
  58. # enable/disable "characters per line" - recommended: also show characters per line
  59. <set ShowCpl="1">
  60. # enable/disable "number of words" - recommended: also show total words
  61. <set ShowWords="1">
  62. # show when a user was last seen on a channel
  63. <set ShowLastSeen="1">
  64. # show when a nick was active
  65. <set ShowTime="1">
  66. # mIRCStats like behaviour of time bar
  67. <set ShowLineTime="0">
  68. # ShowLineTime like behavior of words column
  69. <set ShowWordTime="0">
  70. # enable or disable the random quotes
  71. <set ShowRandQuote="1">
  72. # enable or disable the legend of the time bars
  73. <set ShowLegend="1">
  74. # enable or disable the kick line
  75. <set ShowKickLine="1">
  76. # enable or disable the action line
  77. <set ShowActionLine="1">
  78. # enable or disable the shout line
  79. <set ShowShoutLine="1">
  80. # set how many decimals to show
  81. <set ShowFoulDecimals="1">
  82. # enable or disable the foul line
  83. <set ShowFoulLine="0">
  84. # enable or disable the violent lines
  85. <set ShowViolentLines="1">
  86. # enable or disable "Most used words"
  87. <set ShowMuw="1">
  88. # enable or disable "Most referenced nicks"
  89. <set ShowMrn="1">
  90. # enable or disable "Most referenced URLs"
  91. <set ShowMru="1">
  92. # enable or disable channel music charts
  93. <set ShowCharts="0">
  94. # enable or disable op statistics
  95. <set ShowOps="1">
  96. # enable or disable voice statistics
  97. <set ShowVoices="0">
  98. # enable or disable halfop statistics
  99. <set ShowHalfops="0">
  100. # show who changed nick most often - recommended: show who changed nick most often
  101. <set ShowMostNicks="1">
  102. # show stats on which gender talked most
  103. <set ShowActiveGenders="0">
  104. # show most used smileys - recommended: show the most used smileys
  105. <set ShowSmileys="1">
  106. # show channel karma - recommended: show karma (nick++ / nick--)
  107. <set ShowKarma="1">
  108. # show most active nicks by hour - recommended: show the most active nicks by time of
  109. # day
  110. <set ShowMostActiveByHour="1">
  111. # only count stats for top talkers, ignore less-active users
  112. <set ShowOnlyTop="0">
  113. # show graphs in most active nicks by hour
  114. <set ShowMostActiveByHourGraph="1">
  115. # enable/disable the channel overview
  116. <set ShowOverview="1">
  117. # enable/disable the relation map and its tables
  118. <set ShowRelations="1">
  119. # number of nicks on the relation map
  120. <set RelationNicks="30">
  121. # minimum connection strength shown as a line on the relation map
  122. <set RelationMinWeight="3">
  123. # enable/disable the time personalities section
  124. <set ShowTimePersonalities="1">
  125. # enable/disable the "who carries the channel" section
  126. <set ShowConcentration="1">
  127. # enable/disable the signature words section
  128. <set ShowSignatureWords="1">
  129. # ignore specified words - words to leave out of the word statistics
  130. #<set IgnoreWords="badword otherword">
  131. # Control random quote output
  132. <set NoIgnoredQuotes="0">
  133. # specify words considered to be bad/FoulWords language
  134. <set FoulWords="ass fuck bitch shit scheisse scheiße kacke arsch ficker ficken schlampe">
  135. # specify words considered to be aggressive/violent
  136. <set ViolentWords="slaps beats smacks">
  137. # words that keep a URL out of the URL statistics - matched anywhere in a URL, any case;
  138. # * = any characters, ? = one; for spam and unwanted image hosts
  139. #<set BadUrls="imagetwist imgur.com postimg.cc/*">
  140. # minimum numbers of letters for a random quote
  141. <set MinQuote="25">
  142. # maximum numbers of letters for a random quote
  143. <set MaxQuote="65">
  144. # minimum number of characters in an interesting word
  145. <set WordLength="5">
  146. # maximum allowed length of a "word" with no spaces
  147. <set QuoteWidth="80">
  148. # Minimum number of lines per user for some "Big Numbers" statistics
  149. <set BigNumbersThreshold="sqrt">
  150. # nicks to show in "Most Active Nicks"
  151. <set ActiveNicks="25">
  152. # nicks to show in "These didn't make it.."
  153. <set ActiveNicks2="30">
  154. # number of nicks to show in "Most Active Nicks By Hour"
  155. <set ActiveNicksByHour="10">
  156. # maximum number of nicks to show in "users with most nicknames"
  157. <set MostNicksHistory="5">
  158. # show nicks used in "most nicks"
  159. <set MostNicksVerbose="1">
  160. # maximum number of topics to show - recommended: show the last 5 topics
  161. <set TopicHistory="5">
  162. # maximum number of URLs to show
  163. <set UrlHistory="5">
  164. # number of songs to show
  165. <set ChartsHistory="5">
  166. # how to recognize songs played
  167. <set ChartsRegexp="(?:is )?(?:np:|(?:now )?playing:? |listening to:? )(?:MPEG stream from)?\s*(.*)">
  168. # maximum number of words to show
  169. <set WordHistory="10">
  170. # maximum number of nicks to show in "Most referenced nicks"
  171. <set NickHistory="5">
  172. # maximum number of smileys to show in smiley stats
  173. <set SmileyHistory="10">
  174. # maximum number of nicks to show in "Karma"
  175. <set KarmaHistory="5">
  176. # track nick changes and create aliases - recommended: follow nick changes so Alice,
  177. # Alice_ and Alice- count as one person
  178. <set NickTracking="1">
  179. # maximum number of nicks in lists
  180. <set NickLimit="10">
  181. # sort "most active nicks" by words
  182. <set SortByWords="0">
  183. # ---- Picture options -------------------------------------------------------
  184. # path to images on stats page
  185. <set PicLocation=".">
  186. # number of user pictures per row
  187. <set UserPics="1">
  188. # path to user pictures (HTML page) - folder of user pictures, as seen by the web page
  189. #<set ImagePath="images/">
  190. # use a default user picture - picture shown for users who have none
  191. #<set DefaultPic="images/nobody.png">
  192. # path to user pictures (output generation) - folder of user pictures, as seen by pisg
  193. # (for pic="x_*.jpg" globs)
  194. #<set ImageGlobPath="/var/www/pisg/images/">
  195. # define a standard width for user pictures - show every user picture this wide, in
  196. # pixels
  197. #<set PicWidth="55">
  198. # define a standard height for user pictures - show every user picture this tall, in
  199. # pixels
  200. #<set PicHeight="55">
  201. # ---- Misc options ----------------------------------------------------------
  202. # character set to use for stats page - recommended: UTF-8 shows accents, emoji and non-
  203. # Latin scripts correctly
  204. <set Charset="utf-8">
  205. # character set for logfiles - convert logs from this charset (needs the Text::Iconv
  206. # perl module)
  207. #<set LogCharset="iso-8859-1">
  208. # fallback character set for logfiles - used for lines that are not valid in LogCharset
  209. # (needs Text::Iconv)
  210. #<set LogCharsetFallback="iso-8859-1">
  211. # use a different time zone than the local machine
  212. <set TimeOffset="+0">
  213. # use regular expressions in user aliases
  214. <set RegexpAliases="0">
  215. # filename of language file
  216. <set LangFile="lang.txt">
  217. # path to directory with CSS files
  218. <set CssDir="layout/">
  219. # colors for color gradient in most active nicks section
  220. <set HiCell="#BABADD">
  221. <set HiCell2="#CCCCCC">
  222. # colors for color gradient in most active nicks section
  223. <set HiCell2="#CCCCCC">
  224. # dump raw statistics into file - debugging: dump the raw statistics to this file
  225. #<set StatsDump="stats.dump">
  226. # ---- Advanced (not in the original documentation) -------------------------
  227. # nicks of bots, for log formats that cannot tell bots from people (DCpp)
  228. #<set BotNicks="bot1 bot2">
  229. # width in pixels of the statistics tables
  230. <set TableWidth="574">
  231. # image id of the horizontal bar for hours 0-5
  232. <set Pic_H_0="blue-h">
  233. # image id of the horizontal bar for hours 6-11
  234. <set Pic_H_6="green-h">
  235. # image id of the horizontal bar for hours 12-17
  236. <set Pic_H_12="yellow-h">
  237. # image id of the horizontal bar for hours 18-23
  238. <set Pic_H_18="red-h">
  239. # image id of the vertical bar for hours 0-5
  240. <set Pic_V_0="blue-v">
  241. # image id of the vertical bar for hours 6-11
  242. <set Pic_V_6="green-v">
  243. # image id of the vertical bar for hours 12-17
  244. <set Pic_V_12="yellow-v">
  245. # image id of the vertical bar for hours 18-23
  246. <set Pic_V_18="red-v">
  247. ##############################################################################
  248. # YOUR CHANNEL - copy this block for each extra channel
  249. ##############################################################################
  250. <channel="#example">
  251. # Logfile: the log to read; you can list several Logfile lines EDIT
  252. Logfile="/path/to/example.log"
  253. # LogDir: use INSTEAD of Logfile to read a whole folder of dated logs
  254. #LogDir="/path/to/logs/"
  255. # LogPrefix: with LogDir: only read files starting with this
  256. #LogPrefix="example.log."
  257. # LogSuffix: with LogDir: date format at the end of the file names, so they sort by
  258. # date
  259. #LogSuffix=".%d%b%Y"
  260. # NFiles: with LogDir: only parse the newest N files (0 = all)
  261. #NFiles="30"
  262. # Format: your log format: eggdrop, mIRC, xchat, irssi, ... (see docs/FORMATS) EDIT
  263. Format="eggdrop"
  264. # Network: the IRC network, shown on the page EDIT
  265. Network="ExampleNet"
  266. # OutputFile: the page pisg writes EDIT
  267. OutputFile="/var/www/html/example.html"
  268. # OutputTag: replaces %t in OutputFile; used with the -nf / -t command line options
  269. #OutputTag="-week"
  270. # Maintainer: who is named as maintainer on the page EDIT
  271. Maintainer="Your Name"
  272. # LogType: only "Logfile" exists, leave it
  273. LogType="Logfile"
  274. # Any global option can be overridden for this channel only, for example:
  275. #Lang="FR"
  276. #ColorScheme="midnight"
  277. </channel>
  278. ##############################################################################
  279. # USERS - link nicks together, add pictures, mark bots
  280. ##############################################################################
  281. # nick the name shown in the stats (required)
  282. # alias other nicks of the same person, space separated; * matches anything
  283. # (Joe* also counts Joe_, Joe^away ...). NickTracking="1" also finds many
  284. # pic picture shown next to the user bigpic larger picture it links to
  285. # link a web address or e-mail address sex m, f or b (bot)
  286. # ignore y = leave this nick out of the stats altogether (for bots)
  287. <user nick="Alice" alias="Alice_ Alice-* AliceAway" pic="alice.png" link="https://example.com/alice" sex="f">
  288. <user nick="Bob" alias="Bob_ Bobby" pic="bob.png" bigpic="bob-big.png" link="bob@example.com" sex="m">
  289. <user nick="ChanBot" sex="b" ignore="y">
  290. <user nick="Seb" alias="Seb- Seb_" pic="https://r2.fivemanage.com/X8I0LGoLdHY2Wx9DdTrvx/Pics/me.png" sex="m" link="https://dooubletap.github.io/">
  291. ##############################################################################
  292. # LINKS - keep addresses out of "Most referenced URLs"
  293. ##############################################################################
  294. <link url="https://example.com/spam" ignore="y">
  295. ##############################################################################
  296. # INCLUDE - share users between channels or config files
  297. ##############################################################################
  298. # Put your <user> lines in users.cfg and load them here (an included file cannot
  299. # include another file):
  300. #<include="users.cfg">