chatterbot 2.0.5 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/docs/_site/tut.html CHANGED
@@ -9,15 +9,15 @@
9
9
  <meta name="description" content="twitter bots in ruby">
10
10
 
11
11
  <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
12
- <link rel="stylesheet" href="/css/syntax.css">
13
- <link rel="stylesheet" href="/css/main.css">
12
+ <link rel="stylesheet" href="/chatterbot/css/syntax.css">
13
+ <link rel="stylesheet" href="/chatterbot/css/main.css">
14
14
  </head>
15
15
  <body>
16
16
 
17
17
  <div class="container">
18
18
  <div class=row-fluid>
19
19
  <div id=header class=span12>
20
- <h4><a class=brand href="/">chatterbot</a>
20
+ <h4><a class=brand href="/chatterbot/">chatterbot</a>
21
21
  <small>twitter bots in ruby</small>
22
22
  </h4>
23
23
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  <div id=navigation class=span2>
32
32
  <ul class="nav nav-list">
33
- <li><a href="/">Home</a></li>
33
+ <li><a href="/chatterbot/">Home</a></li>
34
34
 
35
35
 
36
36
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <li data-order="">
58
58
 
59
- <a href="/examples.html">Examples</a>
59
+ <a href="/chatterbot/examples.html">Examples</a>
60
60
 
61
61
  </li>
62
62
 
@@ -82,7 +82,7 @@
82
82
 
83
83
  <li data-order="">
84
84
 
85
- <a href="/setup.html">Authorizing Your Bot</a>
85
+ <a href="/chatterbot/setup.html">Authorizing Your Bot</a>
86
86
 
87
87
  </li>
88
88
 
@@ -97,14 +97,10 @@
97
97
 
98
98
 
99
99
 
100
-
101
-
102
-
103
-
104
100
 
105
101
  <li data-order="">
106
102
 
107
- <a href="/walkthrough.html">Walkthrough</a>
103
+ <a href="/chatterbot/walkthrough.html">Walkthrough</a>
108
104
 
109
105
  </li>
110
106
 
@@ -119,7 +115,7 @@
119
115
 
120
116
  <li data-order="">
121
117
 
122
- <a href="/advanced.html">Advanced Features</a>
118
+ <a href="/chatterbot/advanced.html">Advanced Features</a>
123
119
 
124
120
  </li>
125
121
 
@@ -129,7 +125,7 @@
129
125
 
130
126
  <li data-order="">
131
127
 
132
- <a href="/configuration.html">Configuration</a>
128
+ <a href="/chatterbot/configuration.html">Configuration</a>
133
129
 
134
130
  </li>
135
131
 
@@ -143,7 +139,7 @@
143
139
 
144
140
  <li data-order="">
145
141
 
146
- <a href="/deploying.html">Running your Bot</a>
142
+ <a href="/chatterbot/deploying.html">Running your Bot</a>
147
143
 
148
144
  </li>
149
145
 
@@ -157,7 +153,7 @@
157
153
 
158
154
  <li data-order="">
159
155
 
160
- <a href="/features.html">Basic Features</a>
156
+ <a href="/chatterbot/features.html">Basic Features</a>
161
157
 
162
158
  </li>
163
159
 
@@ -180,16 +176,6 @@
180
176
 
181
177
 
182
178
 
183
-
184
- <li data-order="">
185
-
186
- <a href="/streaming.html">Streaming API</a>
187
-
188
- </li>
189
-
190
-
191
-
192
-
193
179
 
194
180
 
195
181
 
@@ -218,7 +204,7 @@
218
204
 
219
205
  <li data-order="">
220
206
 
221
- <a href="/contributing.html">Contributing</a>
207
+ <a href="/chatterbot/contributing.html">Contributing</a>
222
208
 
223
209
  </li>
224
210
 
@@ -259,10 +245,6 @@
259
245
 
260
246
 
261
247
 
262
-
263
-
264
-
265
-
266
248
 
267
249
 
268
250
 
@@ -305,7 +287,7 @@
305
287
 
306
288
  <li data-order="">
307
289
 
308
- <a href="/other-tools.html">Other Tools</a>
290
+ <a href="/chatterbot/other-tools.html">Other Tools</a>
309
291
 
310
292
  </li>
311
293
 
@@ -330,10 +312,6 @@
330
312
 
331
313
 
332
314
 
333
-
334
-
335
-
336
-
337
315
 
338
316
  <li data-order="">
339
317
 
@@ -363,7 +341,9 @@
363
341
 
364
342
  <div class=row-fluid>
365
343
  <div id=footer class=span12>
366
- Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
344
+ <!--
345
+ Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
346
+ -->
367
347
 
368
348
  </div>
369
349
  </div>
@@ -9,15 +9,15 @@
9
9
  <meta name="description" content="twitter bots in ruby">
10
10
 
11
11
  <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
12
- <link rel="stylesheet" href="/css/syntax.css">
13
- <link rel="stylesheet" href="/css/main.css">
12
+ <link rel="stylesheet" href="/chatterbot/css/syntax.css">
13
+ <link rel="stylesheet" href="/chatterbot/css/main.css">
14
14
  </head>
15
15
  <body>
16
16
 
17
17
  <div class="container">
18
18
  <div class=row-fluid>
19
19
  <div id=header class=span12>
20
- <h4><a class=brand href="/">chatterbot</a>
20
+ <h4><a class=brand href="/chatterbot/">chatterbot</a>
21
21
  <small>twitter bots in ruby</small>
22
22
  </h4>
23
23
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  <div id=navigation class=span2>
32
32
  <ul class="nav nav-list">
33
- <li><a href="/">Home</a></li>
33
+ <li><a href="/chatterbot/">Home</a></li>
34
34
 
35
35
 
36
36
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <li data-order="">
58
58
 
59
- <a href="/examples.html">Examples</a>
59
+ <a href="/chatterbot/examples.html">Examples</a>
60
60
 
61
61
  </li>
62
62
 
@@ -82,7 +82,7 @@
82
82
 
83
83
  <li data-order="">
84
84
 
85
- <a href="/setup.html">Authorizing Your Bot</a>
85
+ <a href="/chatterbot/setup.html">Authorizing Your Bot</a>
86
86
 
87
87
  </li>
88
88
 
@@ -97,14 +97,10 @@
97
97
 
98
98
 
99
99
 
100
-
101
-
102
-
103
-
104
100
 
105
101
  <li data-order="">
106
102
 
107
- <a href="/walkthrough.html">Walkthrough</a>
103
+ <a href="/chatterbot/walkthrough.html">Walkthrough</a>
108
104
 
109
105
  </li>
110
106
 
@@ -119,7 +115,7 @@
119
115
 
120
116
  <li data-order="">
121
117
 
122
- <a href="/advanced.html">Advanced Features</a>
118
+ <a href="/chatterbot/advanced.html">Advanced Features</a>
123
119
 
124
120
  </li>
125
121
 
@@ -129,7 +125,7 @@
129
125
 
130
126
  <li data-order="">
131
127
 
132
- <a href="/configuration.html">Configuration</a>
128
+ <a href="/chatterbot/configuration.html">Configuration</a>
133
129
 
134
130
  </li>
135
131
 
@@ -143,7 +139,7 @@
143
139
 
144
140
  <li data-order="">
145
141
 
146
- <a href="/deploying.html">Running your Bot</a>
142
+ <a href="/chatterbot/deploying.html">Running your Bot</a>
147
143
 
148
144
  </li>
149
145
 
@@ -157,7 +153,7 @@
157
153
 
158
154
  <li data-order="">
159
155
 
160
- <a href="/features.html">Basic Features</a>
156
+ <a href="/chatterbot/features.html">Basic Features</a>
161
157
 
162
158
  </li>
163
159
 
@@ -180,16 +176,6 @@
180
176
 
181
177
 
182
178
 
183
-
184
- <li data-order="">
185
-
186
- <a href="/streaming.html">Streaming API</a>
187
-
188
- </li>
189
-
190
-
191
-
192
-
193
179
 
194
180
 
195
181
 
@@ -218,7 +204,7 @@
218
204
 
219
205
  <li data-order="">
220
206
 
221
- <a href="/contributing.html">Contributing</a>
207
+ <a href="/chatterbot/contributing.html">Contributing</a>
222
208
 
223
209
  </li>
224
210
 
@@ -259,10 +245,6 @@
259
245
 
260
246
 
261
247
 
262
-
263
-
264
-
265
-
266
248
 
267
249
 
268
250
 
@@ -305,7 +287,7 @@
305
287
 
306
288
  <li data-order="">
307
289
 
308
- <a href="/other-tools.html">Other Tools</a>
290
+ <a href="/chatterbot/other-tools.html">Other Tools</a>
309
291
 
310
292
  </li>
311
293
 
@@ -330,10 +312,6 @@
330
312
 
331
313
 
332
314
 
333
-
334
-
335
-
336
-
337
315
 
338
316
  <li data-order="">
339
317
 
@@ -363,13 +341,16 @@
363
341
 
364
342
 
365
343
 
344
+
366
345
  </div>
367
346
 
368
347
  </div>
369
348
 
370
349
  <div class=row-fluid>
371
350
  <div id=footer class=span12>
372
- Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
351
+ <!--
352
+ Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
353
+ -->
373
354
 
374
355
  </div>
375
356
  </div>
@@ -9,15 +9,15 @@
9
9
  <meta name="description" content="twitter bots in ruby">
10
10
 
11
11
  <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
12
- <link rel="stylesheet" href="/css/syntax.css">
13
- <link rel="stylesheet" href="/css/main.css">
12
+ <link rel="stylesheet" href="/chatterbot/css/syntax.css">
13
+ <link rel="stylesheet" href="/chatterbot/css/main.css">
14
14
  </head>
15
15
  <body>
16
16
 
17
17
  <div class="container">
18
18
  <div class=row-fluid>
19
19
  <div id=header class=span12>
20
- <h4><a class=brand href="/">chatterbot</a>
20
+ <h4><a class=brand href="/chatterbot/">chatterbot</a>
21
21
  <small>twitter bots in ruby</small>
22
22
  </h4>
23
23
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  <div id=navigation class=span2>
32
32
  <ul class="nav nav-list">
33
- <li><a href="/">Home</a></li>
33
+ <li><a href="/chatterbot/">Home</a></li>
34
34
 
35
35
 
36
36
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  <li data-order="">
58
58
 
59
- <a href="/examples.html">Examples</a>
59
+ <a href="/chatterbot/examples.html">Examples</a>
60
60
 
61
61
  </li>
62
62
 
@@ -82,7 +82,7 @@
82
82
 
83
83
  <li data-order="">
84
84
 
85
- <a href="/setup.html">Authorizing Your Bot</a>
85
+ <a href="/chatterbot/setup.html">Authorizing Your Bot</a>
86
86
 
87
87
  </li>
88
88
 
@@ -97,14 +97,10 @@
97
97
 
98
98
 
99
99
 
100
-
101
-
102
-
103
-
104
100
 
105
101
  <li data-order="">
106
102
 
107
- <a href="/walkthrough.html">Walkthrough</a>
103
+ <a href="/chatterbot/walkthrough.html">Walkthrough</a>
108
104
 
109
105
  </li>
110
106
 
@@ -119,7 +115,7 @@
119
115
 
120
116
  <li data-order="">
121
117
 
122
- <a href="/advanced.html">Advanced Features</a>
118
+ <a href="/chatterbot/advanced.html">Advanced Features</a>
123
119
 
124
120
  </li>
125
121
 
@@ -129,7 +125,7 @@
129
125
 
130
126
  <li data-order="">
131
127
 
132
- <a href="/configuration.html">Configuration</a>
128
+ <a href="/chatterbot/configuration.html">Configuration</a>
133
129
 
134
130
  </li>
135
131
 
@@ -143,7 +139,7 @@
143
139
 
144
140
  <li data-order="">
145
141
 
146
- <a href="/deploying.html">Running your Bot</a>
142
+ <a href="/chatterbot/deploying.html">Running your Bot</a>
147
143
 
148
144
  </li>
149
145
 
@@ -157,7 +153,7 @@
157
153
 
158
154
  <li data-order="">
159
155
 
160
- <a href="/features.html">Basic Features</a>
156
+ <a href="/chatterbot/features.html">Basic Features</a>
161
157
 
162
158
  </li>
163
159
 
@@ -180,16 +176,6 @@
180
176
 
181
177
 
182
178
 
183
-
184
- <li data-order="">
185
-
186
- <a href="/streaming.html">Streaming API</a>
187
-
188
- </li>
189
-
190
-
191
-
192
-
193
179
 
194
180
 
195
181
 
@@ -218,7 +204,7 @@
218
204
 
219
205
  <li data-order="">
220
206
 
221
- <a href="/contributing.html">Contributing</a>
207
+ <a href="/chatterbot/contributing.html">Contributing</a>
222
208
 
223
209
  </li>
224
210
 
@@ -259,10 +245,6 @@
259
245
 
260
246
 
261
247
 
262
-
263
-
264
-
265
-
266
248
 
267
249
 
268
250
 
@@ -305,7 +287,7 @@
305
287
 
306
288
  <li data-order="">
307
289
 
308
- <a href="/other-tools.html">Other Tools</a>
290
+ <a href="/chatterbot/other-tools.html">Other Tools</a>
309
291
 
310
292
  </li>
311
293
 
@@ -330,10 +312,6 @@
330
312
 
331
313
 
332
314
 
333
-
334
-
335
-
336
-
337
315
 
338
316
  <li data-order="">
339
317
 
@@ -363,39 +341,43 @@
363
341
 
364
342
  <h2 id="make-a-twitter-account">Make a Twitter account</h2>
365
343
 
366
- <p>First thing you&#39;ll need to do is create an account for your bot on
367
- Twitter. That&#39;s the easy part.</p>
344
+ <p>First thing youll need to do is create an account for your bot on
345
+ Twitter. Thats the easy part.</p>
368
346
 
369
347
  <h2 id="run-the-generator">Run the generator</h2>
370
348
 
371
349
  <p>Chatterbot comes with a script named <code>chatterbot-register</code> which will
372
- handle two tasks -- it will authorize your bot with Twitter and it
350
+ handle two tasks it will authorize your bot with Twitter and it
373
351
  will generate a skeleton script, which you use to implement your
374
352
  actual bot.</p>
375
353
 
376
354
  <p>When you run <code>chatterbot-register</code> it will walk you through the
377
355
  authorization process. If you prefer, you can do this manually. If
378
- you&#39;d like to learn more about it, you can read the
379
- <a href="/setup.html">Authorizing your Bot</a> section.</p>
356
+ youd like to learn more about it, you can read the
357
+ <a href="setup.html">Authorizing your Bot</a> section.</p>
380
358
 
381
359
  <h2 id="write-your-bot">Write your bot</h2>
382
360
 
383
361
  <p>Chatterbot is written in ruby, but it accepts some very simple
384
362
  scripting commands which can handle almost everything you might need
385
363
  to do on Twitter. You can get some ideas of things you can do on the
386
- <a href="/examples.html">Examples</a> page.</p>
387
- <div class="highlight"><pre><code class="language-text" data-lang="text">require &#39;chatterbot/dsl&#39;
388
- search(&quot;&#39;surely you must be joking&#39;&quot;) do |tweet|
389
- reply &quot;@#{tweet_user(tweet)} I am serious, and don&#39;t call me Shirley!&quot;, tweet
364
+ <a href="examples.html">Examples</a> page.</p>
365
+
366
+ <pre><code>require 'chatterbot/dsl'
367
+ search("'surely you must be joking'") do |tweet|
368
+ reply "@#{tweet_user(tweet)} I am serious, and don't call me Shirley!", tweet
390
369
  end
391
- </code></pre></div>
370
+ </code></pre>
371
+
392
372
  <p>Or, you can create a bot object yourself, extend it if needed, and use it like so:</p>
393
- <div class="highlight"><pre><code class="language-text" data-lang="text">bot = Chatterbot::Bot.new
394
- bot.search(&quot;&#39;surely you must be joking&#39;&quot;) do |tweet|
395
- bot.reply &quot;@#{tweet_user(tweet)} I am serious, and don&#39;t call me Shirley!&quot;, tweet
373
+
374
+ <pre><code>bot = Chatterbot::Bot.new
375
+ bot.search("'surely you must be joking'") do |tweet|
376
+ bot.reply "@#{tweet_user(tweet)} I am serious, and don't call me Shirley!", tweet
396
377
  end
397
- </code></pre></div>
398
- <p>That&#39;s it!</p>
378
+ </code></pre>
379
+
380
+ <p>That’s it!</p>
399
381
 
400
382
 
401
383
  </div>
@@ -404,7 +386,9 @@ end
404
386
 
405
387
  <div class=row-fluid>
406
388
  <div id=footer class=span12>
407
- Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
389
+ <!--
390
+ Documentation for <a href="https://github.com/muffinista/chatterbot">chatterbot</a>
391
+ -->
408
392
 
409
393
  </div>
410
394
  </div>