Skip to content

Commit

Permalink
Update readme and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mythmon committed Jul 25, 2011
1 parent cd6aea5 commit 9e29cb0
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 9 deletions.
47 changes: 40 additions & 7 deletions README.mkd
Expand Up @@ -2,29 +2,62 @@ Hamper is an IRC bot to amuse us.

Installation
============
As of right now, you can't install hamper, unless you are clever.
You can install the latest official version of hamper from the [Python Package
Index][pypi]. I suggest using `pip`, but I am told `easy_install` will work as
well.

sudo pip install hamper

If you want the git version of hamper, then checkout out the develop branch,
and run

sudo python setup.py install

[pypi]: http://pypi.python.org/pypi

Dependencies
------------
These dependencies will be taken care of automatically if you install with
`pip`. They are only a concern if you install from git.

- Twisted
- SQLAlchemy
- PyYaml
- The plugin loader of [Bravo][bravo] (included)
- Exocet (included)

[bravo]: https://github.com/MostAwesomeDude/bravo

Configuration
=============
Make a file named `hamper.conf`. This should be a YAML file containing these,
hopefully self-explanatory, fields:
Make a file named `hamper.conf`. This should be a YAML file containing these
fields:

- `nickname`
- `channel`
- `server`
- `port`
- `db` - A database URL as described [here][dburl]

For an example check out `hamper.conf.dist`.

[dburl]: http://www.sqlalchemy.org/docs/core/engines.html#sqlalchemy.create_engine

Usage
=====
Then, with `hamper.conf` in your current directory and hamper on your python
path, run `main.py`. I like to use this command
Run hamper from a directory containing `hamper.conf`. If you installed it with
pip, you can just say `hamper`, but if you are running from git, you need to
make sure that hamper is on your python path. I like to use this command:

PYTHONPATH="~/git/hamper" python2 ~/git/hamper/hamper/main.py
PYTHONPATH="~/git/hamper" python2 ~/git/hamper/hamper/scripts/hamper

###Credits

Code and design:

- Mike Cooper <mythmon@gmail.com>

Ideas, but no code yet:

- Daniel Thornton <merthel@gmail.com>
- Jordan Evans <evans.jordan.m@gmail.com>
- Mike Cooper <mythmon@gmail.com>
2 changes: 1 addition & 1 deletion hamper.conf.dist
@@ -1,5 +1,5 @@
nickname: cool_bot
channel: #awesome-channel
channel: "#awesome-channel"
server: irc.freenode.net
port: 6667
db: "sqlite:///hamper.db"
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -7,7 +7,7 @@
setup(name='hamper',
version=version.encode('utf8'),
description='Yet another IRC bot',
install_requires=['pyyaml', 'Twisted'],
install_requires=['pyyaml', 'Twisted', 'SQLAlchemy'],
author='Mike Cooper',
author_email='mythmon@gmail.com',
url='https://www.github.com/hamperbot/hamper',
Expand Down

0 comments on commit 9e29cb0

Please sign in to comment.