Software Freedom Law Center

root/trunk/antimatter/tim/README

Revision 122, 2.1 kB (checked in by bkuhn, 4 months ago)

r165@hughes: bkuhn | 2008-06-02 14:25:39 -0400

  • Added note about the required Perl modules possibly not being installed
Line 
1 In this directory is a series of bots written by Bradley M. Kuhn
2 <bkuhn@softwarefreedom.org> of the Software Freedom Law Center to handle
3 various aspects of SFLC operations.
4
5 The most interesting of which is 'tim', the TimeTracker bot.
6
7 Here's a quick HOWTO to make tim run:
8
9  -1. You may need some various Perl modules installed.  If you run Ubuntu,
10      and they aren't packaged, you may be able to point to this apt-sources
11      to find them:
12
13        deb http://backports.softwarefreedom.org DIST main contrib
14
15      where DIST is in { dapper, feisty, hardy }
16
17   0. Modify Scripts/time-bot.plx to taste.  Note that it is currently
18      configured to run as 'oldtimbot' on irc.freenode.net, and auto-join
19      #antimatter.
20
21   1. make a directory (I usually call mine TimeDB) under this directory.
22      (It can actually be anywhere, but you'll need to adjust a few
23      settings in time-box.plx and in the relative path names referenced
24      below if you do that).
25
26   2. Make a TimeDB/oldtimbot file that has an entry like:
27            nick_password: PASSWORD
28
29      if your time bot has a registered nick.
30
31      (if it doesn't, you'll probably need to modify Scripts/time-bot.plx)
32
33   3. cd TimeDB  # The rest of the instructions assume that's your cwd.
34
35   4. perl -I ../Modules -I ../Bot-BasicBot/lib ../Scripts/create-db.plx
36
37      # This will create an empty database .
38
39   5. perl -I ../Modules -I ../Bot-BasicBot/lib ../Scripts/add-user.plx USERNAME
40
41      # This will add a user
42
43
44   6. To run the bot on the site:
45
46         perl -I ../Modules -I ../Bot-BasicBot/lib ../Scripts/time-bot.plx
47
48
49      This generates a lot of debugging messages to STDERR, and some status
50      info to STDOUT, so you may want to save that somewhere, and nohup the
51      process so that it stays running.
52
53   OPTIONAL:
54  
55   7. perl -I ../Modules -I ../Bot-BasicBot/lib ../Scripts/create-category.plx /SOMETHING/HERE
56
57       # By default, users are in "lawyer mode" and can use the "create
58       # client" and create matter in CLIENT" commands to make new
59       # categories.  If you want to make one that is not in that form, you
60       # should use this command.
61
62
63
64
65
66 TODO: Instructions for Tem and Log bots.
Note: See TracBrowser for help on using the browser.

SFLC Main Page

[frdm] Support SFLC