descartes 0.3.4 → 0.3.4.1
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/bin/descartes +5 -4
- data/lib/descartes/modules/reply/replies.txt +20 -0
- data/lib/descartes/modules/reply.rb +3 -2
- data/lib/descartes/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ebb5dc2d0ec9788816da8bf59d74623662ad325b
|
|
4
|
+
data.tar.gz: 49f2b12099c6f2bb3481648db7bce7da28caf809
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efb823d2d5bd46c4d4df342e87f22f3864480dc3d52f444a957c2cb9aa5cc35f9a9bdccba064fa6994e26d3202f9aa4fced264f621d938505a8e3a468e15568b
|
|
7
|
+
data.tar.gz: 21f528b311ffd90f4b2d2c57222d8551a82f84bd17263126d0a9d65ca7a03272bb52cb680a21477e2fa2bf98d6718416e37eee03484c1bd1bf42a34d5db6274f
|
data/bin/descartes
CHANGED
|
@@ -14,10 +14,11 @@
|
|
|
14
14
|
|
|
15
15
|
require 'descartes'
|
|
16
16
|
|
|
17
|
-
nickname
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
nickname = ARGV[0] || 'Descartes'
|
|
18
|
+
@nickname = nickname
|
|
19
|
+
server = ARGV[1] || 'irc.rizon.net'
|
|
20
|
+
channels = ARGV[2..-1] || ['#aggvistnurummor']
|
|
21
|
+
plugins = Descartes.load
|
|
21
22
|
|
|
22
23
|
Cinch::Bot.new {
|
|
23
24
|
configure do |c|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
In una scala da 1 a 10 la tua petulanza meriterebbe un 9+.
|
|
2
|
+
Cerchi forse consolazione, stolido humano?
|
|
3
|
+
La tua stupidità scardina con violenza le mie tesi.
|
|
4
|
+
Sembra che il tuo nome sia sinonimo di ignoranza e trivialità.
|
|
5
|
+
Quello che voi chiamate 'chicco' o 'seme' riferendovi alla cariosside di frumento, non è altro che un frutto.
|
|
6
|
+
Ciò che dico è già stato scritto affinché possa resistere al tempo come le rovine di antiche città.
|
|
7
|
+
Ciò che ci circonda può sembrare casuale, ma in realtà è tutto calcolato e armonioso.
|
|
8
|
+
L'unica risposta adatta all'ignoranza è senz'altro il silenzio.
|
|
9
|
+
Tu credi?
|
|
10
|
+
Sì, certamente.
|
|
11
|
+
No, non credo.
|
|
12
|
+
Ne sono sicuro.
|
|
13
|
+
Non penso proprio.
|
|
14
|
+
Desidera?
|
|
15
|
+
Sto consultando un tomo, mi chiami più tardi.
|
|
16
|
+
La bravura dell'architetto del mondo è indiscussa.
|
|
17
|
+
Il freddo invernale inizia a farsi sentire, non crede?
|
|
18
|
+
Penso sia una cosa terrificante.
|
|
19
|
+
Non credo di poterti dare la risposta di cui hai bisogno.
|
|
20
|
+
Non ora, mi appresto a consumare la mia solita pennichella.
|
|
@@ -16,10 +16,11 @@ class Descartes
|
|
|
16
16
|
class Reply
|
|
17
17
|
include Cinch::Plugin
|
|
18
18
|
|
|
19
|
-
match /
|
|
19
|
+
match /(.*)\?/, :use_prefix => @nickname
|
|
20
20
|
|
|
21
21
|
def execute(m)
|
|
22
|
-
|
|
22
|
+
file = File.expand_path '../reply/replies.txt', __FILE__
|
|
23
|
+
replies = [].tap { |ary| File.read(file).each_line { |line| ary << line } }
|
|
23
24
|
m.reply replies[rand(1..20)]
|
|
24
25
|
end
|
|
25
26
|
end
|
data/lib/descartes/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: descartes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.4
|
|
4
|
+
version: 0.3.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Giovanni Capuano
|
|
@@ -77,6 +77,7 @@ files:
|
|
|
77
77
|
- lib/descartes/modules/crunchyroll.rb
|
|
78
78
|
- lib/descartes/modules/currency.rb
|
|
79
79
|
- lib/descartes/modules/google.rb
|
|
80
|
+
- lib/descartes/modules/reply/replies.txt
|
|
80
81
|
- lib/descartes/modules/reply.rb
|
|
81
82
|
- lib/descartes/modules/rpn.rb
|
|
82
83
|
- lib/descartes/modules/seen.rb
|