ZofBot

CodeLinesCounter Plugin

Overview

Public Access:
Plugin is public.
Mode:
Any but public.
Syntax:
qr/^code\s+count(?:er)?$/i
Description:

A tiny plugin to display the amount of code in Core and plugins.

Back to top

Usage

Plugin is unifunctional, therefore the syntax trigger will produce the response. The output entries are as follows:

lines_total
Total number of lines of both Core and plugins code.
lines_core
Number of lines in the Core code.
lines_plugins
Number of lines of code in the plugins (all plugins together).
chars_total
Total number of characters in both Core and plugins code.
chars_core
Number of characters in the Core code.
chars_plugins
Number of characters in the plugins code (all plugins together).

Example

<Zoffix> _ZofBot4, code count
<_ZofBot4> Zoffix, Line count results: [ chars_core: 89125 ]
                 [ chars_plugins: 140678 ] [ chars_total: 229803 ]
                 [ lines_core: 3387 ] [ lines_plugins: 4719 ]
                 [ lines_total: 8106 ]
Back to top

TODO

I think adding a command to display code count for a specific plugin could be useful (err, interesting) as well.

Back to top