| 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.
| addressing_prefixes | [R] | bot’s configured addressing prefixes |
| auth | [R] | the bot’s IrcAuth data |
| botclass | [R] | the botclass for this bot (determines configdir among other things) |
| 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 |
| 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 message message to a file determined by where. where can be a channel name, or a nick for private message logging
attempt to change bot’s nick to name FIXME if rbot is already taken, this happens:
<giblet> rbot_, nick rbot --- rbot_ is now known as rbot__
he should of course just keep his existing nick and report the error :P
| 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.