| Class | Irc::IrcBot |
| In: |
lib/rbot/ircbot.rb
|
| Parent: | Object |
Main bot class, which manages the various components, receives messages, handles them or passes them to plugins, and contains core functionality.
| auth | [R] | the bot’s IrcAuth data |
| botclass | [R] | the botclass for this bot (determines configdir among other things) |
| capabilities | [R] | capabilities info for the server |
| channels | [R] | channel info for channels the bot is in |
| config | [R] | the bot’s BotConfig data |
| httputil | [R] | bot’s httputil help object, for fetching resources via http. Sets up proxies etc as defined by the bot configuration/environment |
| lang | [R] | bot’s Language data |
| nick | [R] | the bot’s current nickname |
| plugins | [R] | bot’s plugins. This is an instance of class Plugins |
| registry | [R] | bot’s object registry, plugins get an interface to this for persistant storage (hash interface tied to a bdb file, plugins use Accessors to store and restore objects in their own namespaces.) |
| socket | [R] | bot’s irc socket |
| timer | [R] | used to perform actions periodically (saves configuration once per minute by default) |
| m: | message asking for help |
| topic: | optional topic help is requested for |
respond to online help requests
log IRC-related message message to a file determined by where. where can be a channel name, or a nick for private message logging
| type: | message type |
| where: | message target |
| message: | message text |
send message message of type type to target where Type can be PRIVMSG, NOTICE, etc, but those you should really use the relevant say() or notice() methods. This one should be used for IRCd extensions you want to use in modules.
we’ll ping the server every 30 seconds or so, and expect a response before the next one come around..