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 +4 -4
- data/lib/WeaverBot.rb +45 -30
- data/lib/WeaverBot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 80212b6bef7c191a112bf313367a45810f51ba7e8584515cc35ff6e533db65a5
|
4
|
+
data.tar.gz: e06b2a2fb322dc232e29ca543e420f625538e69f8fc53da878eb7741310ae883
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c395aaa6ff1403e9dcc473f6ba8d8a741201faf9ff3cef24914fff1592a1b2452c21e05639ff670b32e9eb469fd312c4c6e1148537c32d708737a312609e0cd0
|
7
|
+
data.tar.gz: 0213fb72490964bdb643c67da076dc7daa1ab50637805e5f03726c97ba5b62a1630724254635815b6a94d92cf11b8c4bd9ed71aba8ecca498f4de9cc6810230c
|
data/lib/WeaverBot.rb
CHANGED
@@ -3,24 +3,30 @@ require "WeaverBot/version"
|
|
3
3
|
module WeaverBot
|
4
4
|
class Error < StandardError; end
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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 ==
|
137
|
-
elsif reaction ==
|
138
|
-
elsif reaction ==
|
139
|
-
elsif reaction ==
|
140
|
-
elsif reaction ==
|
141
|
-
elsif reaction ==
|
142
|
-
elsif reaction ==
|
143
|
-
elsif reaction ==
|
144
|
-
elsif reaction ==
|
145
|
-
elsif reaction ==
|
146
|
-
elsif reaction ==
|
147
|
-
elsif reaction ==
|
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
|
data/lib/WeaverBot/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: programr
|