chatterbot 2.0.0.pre → 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.
- checksums.yaml +5 -5
- data/.github/workflows/ci.yml +19 -0
- data/Gemfile +9 -17
- data/README.markdown +27 -34
- data/Rakefile +2 -18
- data/bin/chatterbot-register +6 -2
- data/chatterbot.gemspec +11 -12
- data/docs/Gemfile +3 -0
- data/docs/README.md +3 -0
- data/docs/_config.yml +37 -0
- data/docs/_includes/footer.html +3 -0
- data/docs/_includes/header.html +4 -0
- data/docs/_includes/navigation.html +23 -0
- data/docs/_layouts/default.html +98 -0
- data/docs/_layouts/page.html +11 -0
- data/docs/_posts/.gitkeep +0 -0
- data/docs/_site/Gemfile +3 -0
- data/docs/_site/advanced.html +465 -0
- data/docs/_site/configuration.html +436 -0
- data/docs/_site/contributing.html +414 -0
- data/docs/_site/css/main.css +58 -0
- data/docs/_site/css/syntax.css +61 -0
- data/docs/_site/deploying.html +451 -0
- data/docs/_site/examples.html +559 -0
- data/docs/_site/features.html +496 -0
- data/docs/_site/images/01-create-application.png +0 -0
- data/docs/_site/images/02-application-permissions.png +0 -0
- data/docs/_site/images/03-mobile-number.png +0 -0
- data/docs/_site/images/04-access-token.png +0 -0
- data/docs/_site/index.html +461 -0
- data/docs/_site/javascripts/main.js +1 -0
- data/docs/_site/other-tools.html +419 -0
- data/docs/_site/params.json +1 -0
- data/docs/_site/rdoc.html +409 -0
- data/docs/_site/setup.html +491 -0
- data/docs/_site/stylesheets/pygment_trac.css +68 -0
- data/docs/_site/stylesheets/stylesheet.css +247 -0
- data/docs/_site/tut.html +402 -0
- data/docs/_site/twitter-docs.html +409 -0
- data/docs/_site/walkthrough.html +447 -0
- data/docs/advanced.md +62 -0
- data/docs/basics.md +12 -0
- data/docs/bin/jekyll-page +109 -0
- data/docs/configuration.md +32 -0
- data/docs/contributing.md +14 -0
- data/docs/css/main.css +58 -0
- data/docs/css/syntax.css +61 -0
- data/docs/deploying.md +47 -0
- data/docs/examples.md +120 -0
- data/docs/features.md +88 -0
- data/docs/images/01-create-application.png +0 -0
- data/docs/images/02-application-permissions.png +0 -0
- data/docs/images/03-mobile-number.png +0 -0
- data/docs/images/04-access-token.png +0 -0
- data/docs/index.md +69 -0
- data/docs/javascripts/main.js +1 -0
- data/docs/other-tools.md +17 -0
- data/docs/params.json +1 -0
- data/docs/rdoc.md +6 -0
- data/docs/setup.md +84 -0
- data/docs/stylesheets/pygment_trac.css +68 -0
- data/docs/stylesheets/stylesheet.css +247 -0
- data/docs/tips.md +22 -0
- data/docs/tut.md +6 -0
- data/docs/twitter-docs.md +6 -0
- data/docs/walkthrough.md +46 -0
- data/ext/mkrf_conf.rb +28 -0
- data/lib/chatterbot.rb +0 -1
- data/lib/chatterbot/bot.rb +7 -63
- data/lib/chatterbot/client.rb +6 -12
- data/lib/chatterbot/config.rb +2 -2
- data/lib/chatterbot/config_manager.rb +7 -1
- data/lib/chatterbot/dsl.rb +20 -47
- data/lib/chatterbot/home_timeline.rb +1 -2
- data/lib/chatterbot/search.rb +26 -3
- data/lib/chatterbot/skeleton.rb +1 -3
- data/lib/chatterbot/tweet.rb +14 -3
- data/lib/chatterbot/ui.rb +88 -20
- data/lib/chatterbot/version.rb +1 -1
- data/spec/bot_spec.rb +2 -77
- data/spec/client_spec.rb +2 -6
- data/spec/config_manager_spec.rb +6 -5
- data/spec/config_spec.rb +4 -1
- data/spec/dsl_spec.rb +10 -35
- data/spec/fixtures/update_with_media.png +0 -0
- data/spec/search_spec.rb +40 -1
- data/spec/spec_helper.rb +1 -4
- data/spec/tweet_spec.rb +75 -38
- data/templates/skeleton.txt +26 -56
- metadata +84 -141
- data/.document +0 -5
- data/.travis.yml +0 -8
- data/examples/streaming_bot.rb +0 -48
- data/examples/tweet_logger.rb +0 -68
- data/lib/chatterbot/streaming.rb +0 -60
- data/spec/streaming_spec.rb +0 -170
data/spec/spec_helper.rb
CHANGED
data/spec/tweet_spec.rb
CHANGED
@@ -11,29 +11,48 @@ describe "Chatterbot::Tweet" do
|
|
11
11
|
@bot.tweet "tweet test!"
|
12
12
|
end
|
13
13
|
|
14
|
-
|
15
|
-
bot
|
14
|
+
context "when authenticated" do
|
15
|
+
let(:bot) { test_bot }
|
16
|
+
before(:each) do
|
17
|
+
expect(bot).to receive(:require_login).and_return(true)
|
18
|
+
allow(bot).to receive(:client).and_return(double(Twitter::Client))
|
19
|
+
end
|
20
|
+
|
21
|
+
it "calls client.update with the right values" do
|
22
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
16
23
|
|
17
|
-
|
18
|
-
|
24
|
+
test_str = "test!"
|
25
|
+
expect(bot.client).to receive(:update).with(test_str, {})
|
26
|
+
bot.tweet test_str
|
27
|
+
end
|
19
28
|
|
20
|
-
|
29
|
+
it "calls client.update_with_media if media file is specified" do
|
30
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
21
31
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
32
|
+
test_str = "test!"
|
33
|
+
path = File.join(File.dirname(__FILE__), "fixtures", "update_with_media.png")
|
34
|
+
media = File.new(path)
|
35
|
+
expect(bot.client).to receive(:update_with_media).with(test_str, media, {})
|
36
|
+
bot.tweet test_str, media:media
|
37
|
+
end
|
26
38
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
expect(bot).to receive(:require_login).and_return(true)
|
31
|
-
allow(bot).to receive(:client).and_return(double(Twitter::Client))
|
39
|
+
it "calls client.update_with_media if media file path is specified" do
|
40
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
32
41
|
|
33
|
-
|
42
|
+
test_str = "test!"
|
43
|
+
path = File.join(File.dirname(__FILE__), "fixtures", "update_with_media.png")
|
34
44
|
|
35
|
-
|
36
|
-
|
45
|
+
expect(bot.client).to receive(:update_with_media).with(test_str, an_instance_of(File), {})
|
46
|
+
bot.tweet test_str, media:path
|
47
|
+
end
|
48
|
+
|
49
|
+
|
50
|
+
it "doesn't tweet when debug_mode? is set" do
|
51
|
+
allow(bot).to receive(:debug_mode?).and_return(true)
|
52
|
+
|
53
|
+
expect(bot.client).not_to receive(:update)
|
54
|
+
bot.tweet "no tweet!"
|
55
|
+
end
|
37
56
|
end
|
38
57
|
end
|
39
58
|
|
@@ -41,36 +60,54 @@ describe "Chatterbot::Tweet" do
|
|
41
60
|
it "calls require_login when replying" do
|
42
61
|
bot = test_bot
|
43
62
|
expect(bot).to receive(:require_login).and_return(false)
|
44
|
-
bot.reply "reply test!",
|
63
|
+
bot.reply "reply test!", fake_tweet(100)
|
45
64
|
end
|
46
65
|
|
47
|
-
|
48
|
-
bot
|
49
|
-
|
50
|
-
|
66
|
+
context "when authenticated" do
|
67
|
+
let(:bot) { test_bot }
|
68
|
+
before(:each) do
|
69
|
+
expect(bot).to receive(:require_login).and_return(true)
|
70
|
+
allow(bot).to receive(:client).and_return(double(Twitter::Client))
|
71
|
+
end
|
51
72
|
|
52
|
-
|
73
|
+
|
74
|
+
it "calls client.update with the right values" do
|
75
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
53
76
|
|
54
|
-
|
77
|
+
test_str = "test!"
|
55
78
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
expect(bot.client).to receive(:update).with(test_str, {:in_reply_to_status_id => 100})
|
60
|
-
bot.reply test_str, s
|
61
|
-
end
|
79
|
+
expect(bot.client).to receive(:update).with(test_str, {:in_reply_to_status_id => 100})
|
80
|
+
bot.reply test_str, fake_tweet(100, 100)
|
81
|
+
end
|
62
82
|
|
83
|
+
it "calls client.update_with_media if media file is specified" do
|
84
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
63
85
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
86
|
+
test_str = "test!"
|
87
|
+
path = File.join(File.dirname(__FILE__), "fixtures", "update_with_media.png")
|
88
|
+
media = File.new(path)
|
89
|
+
|
90
|
+
expect(bot.client).to receive(:update_with_media).with(test_str, media, {:in_reply_to_status_id => 100})
|
91
|
+
bot.reply test_str, fake_tweet(100, 100), media:media
|
92
|
+
end
|
68
93
|
|
69
|
-
|
94
|
+
it "calls client.update_with_media if media file path is specified" do
|
95
|
+
allow(bot).to receive(:debug_mode?).and_return(false)
|
70
96
|
|
71
|
-
|
72
|
-
|
97
|
+
test_str = "test!"
|
98
|
+
path = File.join(File.dirname(__FILE__), "fixtures", "update_with_media.png")
|
99
|
+
|
100
|
+
expect(bot.client).to receive(:update_with_media).with(test_str, an_instance_of(File), {:in_reply_to_status_id => 100})
|
101
|
+
bot.reply test_str, fake_tweet(100, 100), media:path
|
102
|
+
end
|
103
|
+
|
104
|
+
it "doesn't reply when debug_mode? is set" do
|
105
|
+
allow(bot).to receive(:debug_mode?).and_return(true)
|
106
|
+
|
107
|
+
expect(bot.client).not_to receive(:update_with_media)
|
108
|
+
bot.reply "no reply test!", fake_tweet(100)
|
109
|
+
end
|
73
110
|
end
|
74
111
|
end
|
75
|
-
|
112
|
+
|
76
113
|
end
|
data/templates/skeleton.txt
CHANGED
@@ -21,6 +21,23 @@ require 'chatterbot/dsl'
|
|
21
21
|
#
|
22
22
|
|
23
23
|
|
24
|
+
#
|
25
|
+
# These lines here are just to make sure you edit this file before
|
26
|
+
# trying to run your bot. You can safely remove them once you've
|
27
|
+
# looked through this file.
|
28
|
+
#
|
29
|
+
puts "========================"
|
30
|
+
puts "========================"
|
31
|
+
puts "========================"
|
32
|
+
puts "\n\n\n"
|
33
|
+
|
34
|
+
puts "Hey there! You should open %{name}.rb and take a look before running this script."
|
35
|
+
|
36
|
+
puts "\n\n\n"
|
37
|
+
exit
|
38
|
+
|
39
|
+
|
40
|
+
|
24
41
|
#
|
25
42
|
# Placing your security credentials right in a script like this is
|
26
43
|
# handy, but potentially dangerous, especially if your code is
|
@@ -77,14 +94,6 @@ exclude bad_words
|
|
77
94
|
# will be rejected
|
78
95
|
only_interact_with_followers
|
79
96
|
|
80
|
-
#
|
81
|
-
# Specifying 'streaming true' will cause Chatterbot to use Twitter's
|
82
|
-
# Streaming API. Your bot will run constantly, listening for tweets.
|
83
|
-
# Alternatively, you can run your bot as a cron/scheduled job. In that
|
84
|
-
# case, do not use this line. Every time you run your bot, it will
|
85
|
-
# execute once, and then exit.
|
86
|
-
#
|
87
|
-
streaming true
|
88
97
|
|
89
98
|
#
|
90
99
|
# Here's the fun stuff!
|
@@ -100,19 +109,19 @@ streaming true
|
|
100
109
|
# Still here? Hopefully it's because you're going to do something cool
|
101
110
|
# with the data that doesn't bother other people. Hooray!
|
102
111
|
#
|
103
|
-
search "chatterbot" do |tweet|
|
104
|
-
# here's the content of a tweet
|
105
|
-
puts tweets.text
|
106
|
-
end
|
112
|
+
#search "chatterbot" do |tweet|
|
113
|
+
# # here's the content of a tweet
|
114
|
+
# puts tweets.text
|
115
|
+
#end
|
107
116
|
|
108
117
|
#
|
109
118
|
# this block responds to mentions of your bot
|
110
119
|
#
|
111
|
-
replies do |tweet|
|
112
|
-
# Any time you put the #USER# token in a tweet, Chatterbot will
|
113
|
-
# replace it with the handle of the user you are interacting with
|
114
|
-
reply "Yes #USER#, you are very kind to say that!", tweet
|
115
|
-
end
|
120
|
+
#replies do |tweet|
|
121
|
+
# # Any time you put the #USER# token in a tweet, Chatterbot will
|
122
|
+
# # replace it with the handle of the user you are interacting with
|
123
|
+
# reply "Yes #USER#, you are very kind to say that!", tweet
|
124
|
+
#end
|
116
125
|
|
117
126
|
#
|
118
127
|
# this block handles incoming Direct Messages. if you want to do
|
@@ -131,43 +140,4 @@ end
|
|
131
140
|
# home_timeline do |tweet|
|
132
141
|
# puts tweet.inspect
|
133
142
|
# end
|
134
|
-
|
135
|
-
#
|
136
|
-
# Use this block if you want to be notified about new followers of
|
137
|
-
# your bot. You might do this to follow the user back.
|
138
|
-
#
|
139
|
-
# NOTE: This block only works with the Streaming API. If you use it,
|
140
|
-
# chatterbot will assume you want to use streaming and will
|
141
|
-
# automatically activate it for you.
|
142
|
-
#
|
143
|
-
# followed do |user|
|
144
|
-
# puts user.inspect
|
145
|
-
# end
|
146
|
-
|
147
|
-
#
|
148
|
-
# Use this block if you want to be notified when one of your tweets is
|
149
|
-
# favorited. The object passed in will be a Twitter::Streaming::Event
|
150
|
-
# @see http://www.rubydoc.info/gems/twitter/Twitter/Streaming/Event
|
151
|
-
#
|
152
|
-
# NOTE: This block only works with the Streaming API. If you use it,
|
153
|
-
# chatterbot will assume you want to use streaming and will
|
154
|
-
# automatically activate it for you.
|
155
|
-
#
|
156
|
-
# favorited do |event|
|
157
|
-
# puts event.inspect
|
158
|
-
# end
|
159
|
-
|
160
|
-
#
|
161
|
-
# Use this block if you want to be notified of deleted tweets from
|
162
|
-
# your bots home timeline. The object passed in will be a
|
163
|
-
# Twitter::Streaming::DeletedTweet
|
164
|
-
# @see http://www.rubydoc.info/gems/twitter/Twitter/Streaming/DeletedTweet
|
165
|
-
#
|
166
|
-
# NOTE: This block only works with the Streaming API. If you use it,
|
167
|
-
# chatterbot will assume you want to use streaming and will
|
168
|
-
# automatically activate it for you.
|
169
|
-
#
|
170
|
-
#deleted do |tweet|
|
171
|
-
#
|
172
|
-
#end
|
173
143
|
|
metadata
CHANGED
@@ -1,57 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chatterbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Mitchell
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: redcarpet
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: oauth
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
|
-
- - "
|
17
|
+
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
19
|
+
version: 0.5.6
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- - "
|
24
|
+
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
26
|
+
version: 0.5.6
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: twitter
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- -
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
33
|
+
version: '7'
|
48
34
|
type: :runtime
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- -
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
40
|
+
version: '7'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: launchy
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,141 +67,101 @@ dependencies:
|
|
81
67
|
- !ruby/object:Gem::Version
|
82
68
|
version: 0.7.3
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: shoulda
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: rake
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: rspec
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 3.0.0
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 3.0.0
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec-mocks
|
70
|
+
name: bundler
|
141
71
|
requirement: !ruby/object:Gem::Requirement
|
142
72
|
requirements:
|
143
73
|
- - "~>"
|
144
74
|
- !ruby/object:Gem::Version
|
145
|
-
version:
|
75
|
+
version: '2.0'
|
146
76
|
type: :development
|
147
77
|
prerelease: false
|
148
78
|
version_requirements: !ruby/object:Gem::Requirement
|
149
79
|
requirements:
|
150
80
|
- - "~>"
|
151
81
|
- !ruby/object:Gem::Version
|
152
|
-
version:
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: rdoc
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - ">="
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
160
|
-
type: :development
|
161
|
-
prerelease: false
|
162
|
-
version_requirements: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - ">="
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
167
|
-
- !ruby/object:Gem::Dependency
|
168
|
-
name: simplecov
|
169
|
-
requirement: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - ">="
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '0'
|
174
|
-
type: :development
|
175
|
-
prerelease: false
|
176
|
-
version_requirements: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - ">="
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '0'
|
181
|
-
- !ruby/object:Gem::Dependency
|
182
|
-
name: observr
|
183
|
-
requirement: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - ">="
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: '0'
|
188
|
-
type: :development
|
189
|
-
prerelease: false
|
190
|
-
version_requirements: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - ">="
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0'
|
82
|
+
version: '2.0'
|
195
83
|
description: A ruby framework for writing bots that run on Twitter. Comes with a simple
|
196
84
|
DSL for easy coding.
|
197
85
|
email: colin@muffinlabs.com
|
198
86
|
executables:
|
199
87
|
- chatterbot-register
|
200
|
-
extensions:
|
88
|
+
extensions:
|
89
|
+
- ext/mkrf_conf.rb
|
201
90
|
extra_rdoc_files: []
|
202
91
|
files:
|
203
|
-
- ".
|
92
|
+
- ".github/workflows/ci.yml"
|
204
93
|
- ".gitignore"
|
205
|
-
- ".travis.yml"
|
206
94
|
- Gemfile
|
207
95
|
- LICENSE.txt
|
208
96
|
- README.markdown
|
209
97
|
- Rakefile
|
210
98
|
- bin/chatterbot-register
|
211
99
|
- chatterbot.gemspec
|
100
|
+
- docs/Gemfile
|
101
|
+
- docs/README.md
|
102
|
+
- docs/_config.yml
|
103
|
+
- docs/_includes/footer.html
|
104
|
+
- docs/_includes/header.html
|
105
|
+
- docs/_includes/navigation.html
|
106
|
+
- docs/_layouts/default.html
|
107
|
+
- docs/_layouts/page.html
|
108
|
+
- docs/_posts/.gitkeep
|
109
|
+
- docs/_site/Gemfile
|
110
|
+
- docs/_site/advanced.html
|
111
|
+
- docs/_site/configuration.html
|
112
|
+
- docs/_site/contributing.html
|
113
|
+
- docs/_site/css/main.css
|
114
|
+
- docs/_site/css/syntax.css
|
115
|
+
- docs/_site/deploying.html
|
116
|
+
- docs/_site/examples.html
|
117
|
+
- docs/_site/features.html
|
118
|
+
- docs/_site/images/01-create-application.png
|
119
|
+
- docs/_site/images/02-application-permissions.png
|
120
|
+
- docs/_site/images/03-mobile-number.png
|
121
|
+
- docs/_site/images/04-access-token.png
|
122
|
+
- docs/_site/index.html
|
123
|
+
- docs/_site/javascripts/main.js
|
124
|
+
- docs/_site/other-tools.html
|
125
|
+
- docs/_site/params.json
|
126
|
+
- docs/_site/rdoc.html
|
127
|
+
- docs/_site/setup.html
|
128
|
+
- docs/_site/stylesheets/pygment_trac.css
|
129
|
+
- docs/_site/stylesheets/stylesheet.css
|
130
|
+
- docs/_site/tut.html
|
131
|
+
- docs/_site/twitter-docs.html
|
132
|
+
- docs/_site/walkthrough.html
|
133
|
+
- docs/advanced.md
|
134
|
+
- docs/basics.md
|
135
|
+
- docs/bin/jekyll-page
|
136
|
+
- docs/configuration.md
|
137
|
+
- docs/contributing.md
|
138
|
+
- docs/css/main.css
|
139
|
+
- docs/css/syntax.css
|
140
|
+
- docs/deploying.md
|
141
|
+
- docs/examples.md
|
142
|
+
- docs/features.md
|
143
|
+
- docs/images/01-create-application.png
|
144
|
+
- docs/images/02-application-permissions.png
|
145
|
+
- docs/images/03-mobile-number.png
|
146
|
+
- docs/images/04-access-token.png
|
147
|
+
- docs/index.md
|
148
|
+
- docs/javascripts/main.js
|
149
|
+
- docs/other-tools.md
|
150
|
+
- docs/params.json
|
151
|
+
- docs/rdoc.md
|
152
|
+
- docs/setup.md
|
153
|
+
- docs/stylesheets/pygment_trac.css
|
154
|
+
- docs/stylesheets/stylesheet.css
|
155
|
+
- docs/tips.md
|
156
|
+
- docs/tut.md
|
157
|
+
- docs/twitter-docs.md
|
158
|
+
- docs/walkthrough.md
|
212
159
|
- examples/class_bot.rb
|
213
160
|
- examples/config.yml.example
|
214
161
|
- examples/dsl_test.rb
|
215
162
|
- examples/echoes_bot.rb
|
216
163
|
- examples/search_bot.rb
|
217
|
-
-
|
218
|
-
- examples/tweet_logger.rb
|
164
|
+
- ext/mkrf_conf.rb
|
219
165
|
- lib/chatterbot.rb
|
220
166
|
- lib/chatterbot/blocklist.rb
|
221
167
|
- lib/chatterbot/bot.rb
|
@@ -236,7 +182,6 @@ files:
|
|
236
182
|
- lib/chatterbot/safelist.rb
|
237
183
|
- lib/chatterbot/search.rb
|
238
184
|
- lib/chatterbot/skeleton.rb
|
239
|
-
- lib/chatterbot/streaming.rb
|
240
185
|
- lib/chatterbot/tweet.rb
|
241
186
|
- lib/chatterbot/ui.rb
|
242
187
|
- lib/chatterbot/utils.rb
|
@@ -249,6 +194,7 @@ files:
|
|
249
194
|
- spec/direct_messages_spec.rb
|
250
195
|
- spec/dsl_spec.rb
|
251
196
|
- spec/favorite_spec.rb
|
197
|
+
- spec/fixtures/update_with_media.png
|
252
198
|
- spec/followers_spec.rb
|
253
199
|
- spec/handler_spec.rb
|
254
200
|
- spec/helpers_spec.rb
|
@@ -260,7 +206,6 @@ files:
|
|
260
206
|
- spec/search_spec.rb
|
261
207
|
- spec/skeleton_spec.rb
|
262
208
|
- spec/spec_helper.rb
|
263
|
-
- spec/streaming_spec.rb
|
264
209
|
- spec/tweet_spec.rb
|
265
210
|
- spec/utils_spec.rb
|
266
211
|
- spec/whitelist_spec.rb
|
@@ -270,7 +215,7 @@ homepage: http://github.com/muffinista/chatterbot
|
|
270
215
|
licenses:
|
271
216
|
- MIT
|
272
217
|
metadata: {}
|
273
|
-
post_install_message:
|
218
|
+
post_install_message:
|
274
219
|
rdoc_options: []
|
275
220
|
require_paths:
|
276
221
|
- lib
|
@@ -281,13 +226,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
281
226
|
version: '0'
|
282
227
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
283
228
|
requirements:
|
284
|
-
- - "
|
229
|
+
- - ">="
|
285
230
|
- !ruby/object:Gem::Version
|
286
|
-
version:
|
231
|
+
version: '0'
|
287
232
|
requirements: []
|
288
|
-
|
289
|
-
|
290
|
-
signing_key:
|
233
|
+
rubygems_version: 3.0.8
|
234
|
+
signing_key:
|
291
235
|
specification_version: 4
|
292
236
|
summary: A ruby framework for writing Twitter bots
|
293
237
|
test_files:
|
@@ -299,6 +243,7 @@ test_files:
|
|
299
243
|
- spec/direct_messages_spec.rb
|
300
244
|
- spec/dsl_spec.rb
|
301
245
|
- spec/favorite_spec.rb
|
246
|
+
- spec/fixtures/update_with_media.png
|
302
247
|
- spec/followers_spec.rb
|
303
248
|
- spec/handler_spec.rb
|
304
249
|
- spec/helpers_spec.rb
|
@@ -310,8 +255,6 @@ test_files:
|
|
310
255
|
- spec/search_spec.rb
|
311
256
|
- spec/skeleton_spec.rb
|
312
257
|
- spec/spec_helper.rb
|
313
|
-
- spec/streaming_spec.rb
|
314
258
|
- spec/tweet_spec.rb
|
315
259
|
- spec/utils_spec.rb
|
316
260
|
- spec/whitelist_spec.rb
|
317
|
-
has_rdoc:
|