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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bf39d5c0b4ae298a7ceb8b4226322b29352af050
4
- data.tar.gz: fdbe7648d95139d7a14b804b4554911d172e07a6
3
+ metadata.gz: ebb5dc2d0ec9788816da8bf59d74623662ad325b
4
+ data.tar.gz: 49f2b12099c6f2bb3481648db7bce7da28caf809
5
5
  SHA512:
6
- metadata.gz: e4fa5e569cf4dc04e5d0e9b10a3cc900faaaba2b72c7c73694dca263727971d10883cc94fd69e3905a47c37a468eac9c63acfe89086e3abc9551ae88c7168d4c
7
- data.tar.gz: 01aec979d11effa7ca842b235828cdfb67a5802d2bc1865fac0f3a9c86597cfe0b3d65aff0aa0cf65e727edd8faaa40d4d7b8731fd224ff1a62653a17558fa74
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 = ARGV[0] || 'Descartes'
18
- server = ARGV[1] || 'irc.rizon.net'
19
- channels = ARGV[2..-1] || ['#aggvistnurummor']
20
- plugins = Descartes.load
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 /Descartes.*\?/, :use_prefix => false
19
+ match /(.*)\?/, :use_prefix => @nickname
20
20
 
21
21
  def execute(m)
22
- replies = [].tap {|ary| File.read('modules/reply/replies.txt').each_line { |line| ary << line } }
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
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.3.4'
17
+ '0.3.4.1'
18
18
  end
19
19
  end
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