Class Irc::Plugins::Plugins
In: lib/rbot/plugins.rb
Parent: Object

class to manage multiple plugins and delegate messages to them for handling

Methods

bot   cleanup   delegate   help   helptopics   length   new   plugins   privmsg   rescan   save   scan  

Public Class methods

access to associated bot

bot:associated IrcBot class
dirlist:array of directories to scan (in order) for plugins

create a new plugin handler, scanning for plugins in dirlist

access to list of plugins

Public Instance methods

call the cleanup method for each active plugin

see if each plugin handles method, and if so, call it, passing message as a parameter

return help for topic (call associated plugin’s help method)

return list of help topics (plugin names)

see if we have a plugin that wants to handle this message, if so, pass it to the plugin and return true, otherwise false

drop all plugins and rescan plugins on disk calls save and cleanup for each plugin before dropping them

call the save method for each active plugin

load plugins from pre-assigned list of directories

[Validate]