Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Pastebot is a pastebin server and IRC bot in one program. Users submit short pieces of text to the web server, and the IRC bot announces them in IRC. Pastebot may have invented the pastebin. As of the time of this writing, Wikipedia’s Pastebin article cites Pastebot as the earliest recorded pastebin.
Perl CSS
tag: snap_20021016

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Client
Server
Util
templates
CHANGES
COPYRIGHT
README
TODO
pastebot.conf-dist
pastebot.perl

README

$Id$

-----
About
-----

To do.

------------
Requirements
------------

Perl 5.005, but Perl 5.6.1 or newer is recommended.

You'll need the following Perl modules.

  Filter::Util::Call
  Time::HiRes
  POE
  POE::Component::IRC
  HTTP::Request
  HTTP::Response
  HTTP::Status
  URI

  Perl::Tidy, which is part of perltidy, at http://perltidy.sf.net/

----------
Setting up
----------

Rename pastebot.conf-dist to pastebot.conf (unless you have one already).
Customize your new/existing pastebot.conf.
Run pastebot.perl.

Pastebot is its own web server.  It often cannot bind to port 80
because some other web server is already there.  That's why its
default port (in pastebot.conf-dist) is 8888.  This is hostile towards
people behind firewalls.

Apache users can use ProxyPass to map a directory on their port-80
servers to a running pastebot.  This feature requires Apache be built
with proxy support.

Allow access to a /pastebot/ directory.  The directory should not
exist.

  <Directory /pastebot/>
    Order allow,deny
    Allow from all
    Deny from none
  </Directory>

Tell Apache to forward any requests in the /pastebot/ directory
through to the local pastebot process.

  ProxyPass  /pastebot/  http://127.0.0.1:8000/

Now people can use pastebot on port 80.

------
Errors
------

* IRC client (foo): socket error occurred: Can't assign requested address

  The most likely cause of this is an unknown host name, either for a
  local machine or a remote IRC server.  If you have multiple servers
  specified, the bot will try the next server in approximately one
  minute.

-------
Support
-------

Various support options are available from pastebot's SourceForge
summary page.  Please see: http://sf.net/projects/pastebot/

---
End
---
Something went wrong with that request. Please try again.