-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
206 lines (126 loc) · 5.57 KB
/
README
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
Welcome to T I M E L I N E
===============================
T I M E L I N E (tl) is a program that is aimed a people that need to register their activities on a day.
Console, IRC and XMPP bots are provided to allow the user to keep track of activities on the day.
This is a work in progress, first aim is to get the basic functionality running and allow for day/week/month analysis of the activity data.
T O D O
~~~~~~~
15:52:12 bart@monster:~/tl/dev/second$ ./bin/tl
T I M E L I N E
CONSOLE VERSION 0.4.1
> ;todo
todolist of bart:
1) filesystem for tl-bots .. map urls to files on fs datadir .. use ~/tl-export/.tl as entrypoint for a datadir copy of ~/.tl
2) build a global monitoring klachten lijst registratie hier op
3) also make copyin for registration of the json avail on email
4) make bots also have a email interface where timestampped json dict can be registered. timestamped events.
5) shadow function on Persist that copies data to the /home/bart/tl-export/datadir
6) also add a log to Persist that will log the changes to /home/bart/jt-changes/datadir
C O N T E N T
~~~~~~~~~~~~~
the tl pakage contains the following programs:
* tl - console bot
* tl-fleet - mix IRC and XMPP bots
* tl-irc - IRC bot
* tl-xmpp - XMPP bot
note: T I M E L I N E is in a early stage of development right now and still subject to change of protocols and API.
see https://github.com/feedbackflow/tl
L I C E N S E
~~~~~~~~~~~~~
T I M E L I N E is free code (MIT) and can be cloned where needed.
C O N T A C T
~~~~~~~~~~~~~
* email: [email protected]
* jabber/xmpp: [email protected]
* IRC: feedbackflow on #tl irc.freenode.net
* twitter: http://twitter.com/feedbackflow
D E V E L O P M E N T
~~~~~~~~~~~~~~~~~~~~~
first checkout the main bot from the mercurial repository
git clone https://github.com/feedbackflow/tl
now you can run the programs in the bin directory with the
./bin/<program> command. try ./bin/tl for the console app
S O U R C E
~~~~~~~~~~~
Get the latest tarball from:
::
https://github.com/feedbackflow/tl/downloads
Or install from github:
::
git clone https://github.com/feedbackflow/tl.git
C O N F I G
~~~~~~~~~~~
Data and configuratiion files can be found in the datadir which defaults to ~/.tl (or
another directory if the -d option is used). A bit further on i will give some basic examples.
Configuration files are written on startup of tl. Use the --help option to see what other options are available.
Look for the config/fleet directory for bot configuration files.
C O N S O L E
~~~~~~~~~~~~~
In the bot dir run the ./bin/tl command to start the console version of the bot.
::
22:44:11 dev@done:~/dev/0.7/5$ ./bin/tl
T I M E L I N E
CONSOLE VERSION 0.4.1
>
If you just want to execute 1 command on the bot, you can do that by giving
it as an argument:
::
22:45:24 dev@done:~/dev/0.1.5/5$ ./bin/tl list
available plugins: 8b, admin, alias, ask, chan, chatlog, choice,
controlchar, core, count, data, echo, fleet, foo, forward, gatekeeper,
gcalc, grep, hubbub, idle, ipcalc, irc, karma, kickban, koffie, learn, misc,
more, mpd, nickserv, not, outputcache, plug, ps, quote, relay, reload,
remind, restserver, reverse, rss, seen, shop, sort, tail, test, tinyurl, to,
todo, twitter, udp, uniq, url, urlinfo, user, userstate, watcher, weather,
welcome, wikipedia, xmpp
I R C
~~~~~
Run the following to make the bot connect to an IRC server:
::
./bin/tl-irc -o <userhost of owner> -s <server> -c \<channel>
A configuration file will be generated from the command line opions. If you
already have the configuration files (generated by tl-init) you can just use (without any options):
::
./bin/tl-irc
X M P P
~~~~~~~
Run the following to make the bot connect to an Jabber server:
::
./bin/tl-xmpp -o <owner JID> -u <bot JID> -p <password> [-c <conference>] [-s <server>]
Or when configuration files already exist, just run the bot without arguments:
::
./bin/tl-xmpp
Conference and server options are optional. Server is take from the -u
option if not provided as a seperate option.
P L U G I N S
~~~~~~~~~~~~~
To see what plugins are available use the !list command. Use !help <plugin>
to get help on a plugin.
::
23:03:00 dev@done:~/dev/0.1.5/5$ ./bin/tl help misc
HELP ON MISC misc commands., !source - <i> show where to fetch the bot
source. </i> - examples: source, !test - <i> give test response. </i> -
examples: test
If a plugin is not responding try !plug-enable <plugin>:
::
23:03:05 dev@done:~/dev/0.1.5/5$ ./bin/tl
T I M E L I N E 0.1.5 DEVELOPMENT CONSOLE
> !plug-enable misc
reloading and enabling tl.plugs.core.misc
done - plug-enable misc
>
otherwise try !admin-boot:
::
23:05:46 dev@done:~/dev/0.1.5/5$ ./bin/tl
T I M E L I N E 0.1.5 DEVELOPEMENT CONSOLE
> !admin-boot
done - admin-boot
>
this will regenerate the callbacks and command indexes.
You can also use !apro <search> to search for commands:
::
23:01:23 dev@done:~/dev/0.1.5/5$ ./bin/tl apro wiki
commands matching wiki: wikipedia
H E L P
~~~~~~~
All the programs have a --help option that shows a help page describing the command line options of the program.