Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
By convention, ignored messages will only be delegated to plugins with
negative priority, while fake messages will only be delegated to plugins
with positive priority.
|
|
|
|
|
|
|
|
|
|
|
|
BotModule
|
|
|
|
|
|
BotModule class
|
|
|
|
|
|
method
|
|
|
|
|
|
|
|
We delegate common hooks through the fast-delegation hash, and revert to
brute-force querying for everything else. Beware that this may breaks plugins
which add/remove delegatable methods at runtime, but no such plugin is
currently used (AFAIK).
|
|
Delegating a message requires checking if each of the loaded plugins
responds to a given method. This can be time consuming when many
plugins are loaded.
We set up a hash that maps each commonly delegated method to the list of
plugins that respond to it.
|
|
|
|
|
|
|
|
|
|
|
|
displayed
|
|
core modules
twice without listing plugins
|
|
modified a few files to allow translated messages
created gettext template file
initialized gettext files for Japanese and Simplified Chinese
|
|
|
|
|
|
|
|
time a user asks for help
|
|
|
|
|
|
any other plugin. Use it in the keywords plugin
|
|
|
|
by lart to use language-specific lart files
|
|
|
|
hash-like behaviour for the plugin manager, so that @bot.plugins['name'] returns the botmodule with the given name
|
|
|
|
|
|
|
|
|
|
kind_of? instead of .class<=
|
|
|
|
|
|
|