WeaverBot 0.2.0 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78d2eef337b8a1bd5feafe7434e007c50211f14b7963b5dc9d13a438190ef7d3
4
- data.tar.gz: 6385d15375aef124fc8442348285be8849c3cee39ba23b67e1d6e6317790bfcb
3
+ metadata.gz: 80212b6bef7c191a112bf313367a45810f51ba7e8584515cc35ff6e533db65a5
4
+ data.tar.gz: e06b2a2fb322dc232e29ca543e420f625538e69f8fc53da878eb7741310ae883
5
5
  SHA512:
6
- metadata.gz: a82f560809ec6ad0dc3b9f5d6416eb84402075497de4b34a234b6a1b6c7be6354da62468ba51219aeeabfd2423cde9712b65366b97935f7e626c8800b445d5ba
7
- data.tar.gz: bf35d059d7f833551ea298f8622d81838bc21cc19d87536e6ce31aec95ba8a11e1eacdae0c8d3f2f35ef5951f538853707ed4711c784a62d2046e3183fe135d6
6
+ metadata.gz: c395aaa6ff1403e9dcc473f6ba8d8a741201faf9ff3cef24914fff1592a1b2452c21e05639ff670b32e9eb469fd312c4c6e1148537c32d708737a312609e0cd0
7
+ data.tar.gz: 0213fb72490964bdb643c67da076dc7daa1ab50637805e5f03726c97ba5b62a1630724254635815b6a94d92cf11b8c4bd9ed71aba8ecca498f4de9cc6810230c
@@ -3,24 +3,30 @@ require "WeaverBot/version"
3
3
  module WeaverBot
4
4
  class Error < StandardError; end
5
5
 
6
- # class AILanguage
7
- # def self.train_language
8
- # require "naive_bayes"
9
- # end
10
- #
11
- # def self.classify_word
12
- # require "naive_bayes"
13
- # end
14
- #
15
- # def self.classify_many_words
16
- # require "naive_bayes"
17
- # end
18
- #
19
- # def self.train_aiml_on_words
20
- # require "duck_duck_go"
21
- # require "naive_bayes"
22
- # end
23
- # end
6
+ class Find_Pattern
7
+ def self.single_major
8
+ print "What career do you want to major in? >> "; major = gets.chomp
9
+
10
+ if major == "building computers"
11
+ puts ">> Then you want to take a computer science class."
12
+ elsif major == "creative writing"
13
+ puts ">> Then you want to take a creative writing class."
14
+ end
15
+ end
16
+
17
+ def self.multi_major
18
+ print "What careers do you want to major in? >> "; majors = gets.chomp
19
+
20
+ word_list = majors.split(" ")
21
+
22
+ input_1 = word_list{0]
23
+ input_2 = word_list[2]
24
+
25
+ if input_1 == "building computers" and input_2 == "creative writing"
26
+ puts ">> Then you want to take a computer science class and a creative writing class."
27
+ end
28
+ end
29
+ end
24
30
 
25
31
  ## This is a list of image drawing methods. Later addition will involve TTY.
26
32
  class AIDrawing
@@ -96,6 +102,14 @@ module WeaverBot
96
102
  RulesAi::Rules_Set.write_poetry
97
103
  end
98
104
  end
105
+
106
+ class MachineLearning
107
+ def self.language_model
108
+ system("git clone https://github.com/LWFlouisa/hafestrometre.git > /dev/null; clear;
109
+ ruby hafestrometre/classifier.rb; sleep 6; clear;
110
+ rm -rfv hafestrometre > /dev/null")
111
+ end
112
+ end
99
113
 
100
114
  class Data
101
115
  def self.download
@@ -133,18 +147,19 @@ module WeaverBot
133
147
 
134
148
  if reaction == ""
135
149
  STDOUT.puts "#{bot_name} << I have no idea."
136
- elsif reaction == "Lets check the hours."; WeaverBot::AIRulesets.give_hours
137
- elsif reaction == "Lets do Tesla arithmetic."; WeaverBot::AIRulesets.tesla_multiplication
138
- elsif reaction == "Lets give a morning prompt."; WeaverBot::AIRulesets.autonomous_prompting
139
- elsif reaction == "Lets measure a hypercube."; WeaverBot::AIRulesets.calculate_hyper
140
- elsif reaction == "Lets estimate digest size."; WeaverBot::AIRulesets.estimate_digest
141
- elsif reaction == "Lets write some poetry."; WeaverBot::AIRulesets.write_poetry
142
- elsif reaction == "Lets draw a line."; WeaverBot::AIRulesets.line
143
- elsif reaction == "Lets draw a square."; WeaverBot::AIRulesets.square
144
- elsif reaction == "Lets draw a cube."; WeaverBot::AIRulesets.cube
145
- elsif reaction == "Lets draw a hyper."; WeaverBot::AIRulesets.hyper
146
- elsif reaction == "Lets draw a image."; WeaverBot::AIRulesets.image
147
- elsif reaction == "Closing"; MyBot::Purge.old_data; abort
150
+ elsif reaction == "Lets check the hours."; WeaverBot::AIRulesets.give_hours
151
+ elsif reaction == "Lets do Tesla arithmetic."; WeaverBot::AIRulesets.tesla_multiplication
152
+ elsif reaction == "Lets give a morning prompt."; WeaverBot::AIRulesets.autonomous_prompting
153
+ elsif reaction == "Lets measure a hypercube."; WeaverBot::AIRulesets.calculate_hyper
154
+ elsif reaction == "Lets estimate digest size."; WeaverBot::AIRulesets.estimate_digest
155
+ elsif reaction == "Lets write some poetry."; WeaverBot::AIRulesets.write_poetry
156
+ elsif reaction == "Lets draw a line."; WeaverBot::AIRulesets.line
157
+ elsif reaction == "Lets draw a square."; WeaverBot::AIRulesets.square
158
+ elsif reaction == "Lets draw a cube."; WeaverBot::AIRulesets.cube
159
+ elsif reaction == "Lets draw a hyper."; WeaverBot::AIRulesets.hyper
160
+ elsif reaction == "Lets draw a image."; WeaverBot::AIRulesets.image
161
+ elsif reaction == "Lets study a language model."; WeaverBot::MachineLearning.language_model
162
+ elsif reaction == "Closing"; MyBot::Purge.old_data; abort
148
163
  else
149
164
  STDOUT.puts "#{bot_name} << #{reaction}"
150
165
  end
@@ -1,3 +1,3 @@
1
1
  module WeaverBot
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WeaverBot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LWFlouisa
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-12 00:00:00.000000000 Z
11
+ date: 2020-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: programr