3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-02 18:19:33 +01:00
Commit Graph

5 Commits

Author SHA1 Message Date
Pragmatic Software
d955bfa06c Add centralized configuration registry module
Allows changing of bot configuration values without needing to restart
bot instance or needing to edit pbot.pl script.

Registry will initially be populated with default values from pbot.pl,
but if a registry file exists then the registry values will take
precedence over the pbot.pl values. For instance, if you regset the
bot trigger to '%' then the trigger will be '%' even if pbot.pl has '!'
or something else explicitly set.

Some registry items can have trigger hooks associated with them.  For
instance, the irc->botnick registry entry has a change_botnick_trigger
associated with it which changes the IRC nick on the server when a new
value is set via regset/regadd.

Tons of other fixes and improvements throughout.
2014-05-17 20:08:19 +00:00
Pragmatic Software
e10d81b769 lagchecker: use immediate elasped duration instead of average when no pong has been received yet 2011-12-12 00:31:31 +00:00
Pragmatic Software
242a0d5dfc lagchecker: updated lagcheck bot command to use pong_received 2011-12-11 23:44:04 +00:00
Pragmatic Software
60ad02c9af lagchecker: include elapsed time from last ping sent in average if no pong yet received 2011-12-11 23:33:01 +00:00
Pragmatic Software
45a2a66d0f Moved lag-checking code to LagChecker.pm; improved output of !lagcheck command 2011-01-24 23:56:55 +00:00