-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
95 lines (58 loc) · 2.6 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
==============================
Welcome to the lalita project!
==============================
lalita is yet another IRC bot, one where new functionality is simple to
create just adding easy-to-write plugins.
lalita is written with some goals in mind:
- Twisted! (we don't like threads)
- Pluggable: easy to implement new functionalities
- Have fun: yes, it's Python
All the code in lalita is licensed under GNU GPL v3. See LICENSE.txt for
further info.
The project page is::
https://edge.launchpad.net/lalita
To run the bot, create a config file (you can use the sample lalita.cfg.sample)
as a guideline, and run::
ircbot.py -c <configfile> <server>
There're a lot of test cases! You can try them running "nosetests" (you
need to have Nose installed).
To create a plugin, check the plugins/example.py one, and use it as a start.
We don't have a mail list for the project, but you can check in #pyar on
Freenode, most of developers are around there.
Enjoy it!
Manhole
=======
The --manhole[-*] options enable a manhole ssh server the provides an
interactive interpreter to poke the bot instance(s).
Example:
Start the bot with "--manhole" option::
$ python ircbot.py --manhole
From another terminal, connect to the machine where the bot is running,
port 2222::
$ ssh admin@localhost -p 2222
admin@localhost's password: admin
This will drop you in a python shell::
>>> bot = servers['<server name>']
# bot is a IrcBot instance
>>> bot.say('<channel>', 'something')
WARNING: this is a potential security hole if the port 2222 (or the one you
configure with --manhole-port) is accesible from internet or other machines.
How to run lalita without installing
====================================
From the top-level directory run::
PYTHONPATH=. python lalita/ircbot.py
For example, setting logs in debug mode, pointing to the sample
configuration, and choosing a server in localhost::
PYTHONPATH=. python lalita/ircbot.py -o DEBUG lalita.cfg.sample localhost
How To do a source release
-------------------------
* edit setup.py and increment the version number.
* 'python setup.py sdist'
* look at the contents of the tarball created in dist/ to be sure they are ok
* step into the dist directory for the following commands
* sign the tarball by a command like:
gpg -a --detach-sign magicicada-VERSION.tar.gz
this should create a file like magicicada-VERSION.tar.gz.asc
* Upload the new release to launchpad with a command like:
lp-project-upload magicicada VERSION magicicada-VERSION.tar.gz
* Announce the release, ping someone to build updated packages for the PPA and Ubuntu.