Age | Commit message (Collapse) | Author |
|
|
|
We provide two methods that make it more simple and elegant for
botmodules to define paths relative to the bot's own directory
(botclass) and to the BotModule's (assumed) non-registry directory.
The first method is Irc::Bot#path(), which joins its arguments with the
botclass. This method can be used to access datafiles in the bot
directory with a much cleaner syntax; and since it uses File.join, the
resulting paths are also properly formatted on each platform, which
doesn't hurt.
Each BotModule now also carries a dirname() method that should return the
directory under botclass that holds the BotModule's datafiles. dirname()
defaults to the BotModule's name(), but it can be overridden, e.g. for
backwards compatibility (see the patch for the quotes plugin), or
for BotModules that share their datafiles.
Datafiles can be accessed using the BotModule#datafile() method that
joins the botclass, the dirname() and whatever other argument is passed.
|
|
|
|
|
|
|
|
|
|
will recommend version 4.2 or higher
|
|
increased to 8 megabytes
|
|
functions: alongside the old {{{debug}}} function we now have {{{log}}}, {{{warning}}} and {{{error}}}, which should be used everywhere instead of the good old {{{puts}}} method
|
|
|
|
|
|
log file proliferation (previous commit [192] only cleaned up the logfiles on quit)
|
|
|
|
|
|
|
|
* Tweaked the debug() stuff a bit. Need to do this more cleanly really
* Added a fair bit of documentation for some of the new features
|
|
|