

It's advertised in multiple places, such as the bot's WHOIS information. The "home page" for the pastebot's web server. If omitted, the value of "iface" will be used instead. ifname HOST_OR_ADDRESSĭefines the web server's public address, which is displayed to users in various messages and may be different than the internal address the web service has bound to. It's common for the interface address to be different than the one the outside world sees. Template Bot::Pastebot::TextTemplate iface HOST_OR_ADDRESSĭefines the interface host or numeric address that this web server will bind to while listening for new connections. Each web server is defined in a separate web_server section, and each must have a different name. A pastebot may have more than one web server. The web_server section defines a pastebot's web server. If this PID is not running, pastebot will write its own PID to the pidfile before continuing. If this PID is running, pastebot will exit with a message notifying the administrator of this fact. Upon startup, this file will be read and its contents interpreted as a PID. pidfileĪ path, absolute or relative, that will hold a PID for the bot. 'administrivia' is simple and clear, but it's not limited to this. This entire section is optional, but is global for the bot. Right now it only covers a PID file, but may be expanded upon in the future. These settings make it easier to administrate pastebot. They define the web server, irc network, and paste database that the bot will use. Pastebot configuration is broken down into three section types: "web_server", "irc", and "pastes". Here's how that's done: ircĬonfiguration files may contain comments, which are text after a hash mark ("#").

If one server is unavailable, it can try another. For example, it's useful to configure multiple IRC servers for a bot to choose from. Each value is defined on a separate configuration line using the same parameter name. Some parameters may contain multiple values, though. The names permit the program to reference specific components without confusion. Each section requires a unique name since there may be more than one instance of a component. web_serverĮach section defines a component type within the pastebot. This example defines a web_server section named "poenet" that listens on port 8888. Section parameters are indented and consist of a parameter name and its value separated by whitespace. Sections are defined by text that begins in the first column. The general syntax for this file follows these rules: Nearly all of pastebot's options are set in a configuration file. The pastebot merely acts as a web service in zero-bot mode. Likewise, a single pastebot may connect to zero or more IRC networks and announce pastes on zero or more channels on each. Users submit short pieces of text to the web server, and the IRC bot announces them in IRC.Ī single pastebot instance can provide one or more web servers, each accepting connections on a different virtual host and/or port. Pastebot is an IRC bot and a web server in one program. Pastebot - the original clipboard to chat gateway SYNOPSIS Pastebot is not sending any pastes to IRC.IRC client (NAME): socket error occurred: Can't assign requested address.
