descartes 0.3.4.2 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e756fccdc6cc18002aa034727f5613b8b15d76c9
4
- data.tar.gz: 9be102cd53d407cd313ae029667d14a5a0b7707b
3
+ metadata.gz: 83606d65464496323278094ce1d30fb8a6143513
4
+ data.tar.gz: 2a3cdceff046aa16e446d42703d753f7cff8c638
5
5
  SHA512:
6
- metadata.gz: 658314779e0bdf42638853001b9faab53b394c890a4e39709aefff1429fae4acbf2080a42df518bfd7e2553bc692478da9b1949f2477b3a78a14217a76d87421
7
- data.tar.gz: 97e3f110d2f7151b75901831409a2d782c1b4c7294ec8af20327d20279bbdd24aa0bcc65d6dd786266510fbf0117fa8feb58a72d1a5aef2ebfbef59f2489089d
6
+ metadata.gz: 6e4b732c321ebf557ae6b0ba46f143c12ceb96e0d9cf4df028a6e711522d2f1135daa684e3582bc145cd8d417b1dbd2c4284f4498001788b2ac32629485dafce
7
+ data.tar.gz: b9222026e688fcb0a9a950dbf233d0f1d65ea49549699c398b1c9814f0f84d5471e5bb5f983d655aad0a4e49d0da26cdc984e1b816607d928b32687b6889f2e4
data/bin/descartes CHANGED
@@ -36,4 +36,12 @@ Cinch::Bot.new {
36
36
  m.reply m.bot.plugins.join ', '
37
37
  end
38
38
 
39
+ on :message, '!è' do |m|
40
+ m.reply 'È'
41
+ end
42
+
43
+ on :message, '!"' do |m|
44
+ m.reply '“ ”'
45
+ end
46
+
39
47
  }.start
@@ -17,7 +17,7 @@ require 'crunchyroll'
17
17
  class Descartes
18
18
  class Crunchybot
19
19
  include Cinch::Plugin
20
- match /\.cr (.+)/, :use_prefix => false
20
+ match /\.cr) (.+)/, :use_prefix => false
21
21
 
22
22
  def execute(m)
23
23
  series = Crunchyroll::find m.params[1].split('.cr ')[1]
@@ -0,0 +1,12 @@
1
+ E così vuoi fare il fansubber? Quanto hai detto nche porta di reggiseno la tua ragazza?
2
+ He's the hero that your girlfriend deserves. But not the one she needs right now.
3
+ Ma se gli FTF sono una grande famiglia, non è che il sindaco stava solo mettendo a letto la bambina?
4
+ Sindaco-chan, mi hanno detto che ti sei portato due pigiamo a Pisa con la mia ragazza / Sì, Ptole-kun, ma stai tranquillo: non li abbiamo usati.
5
+ One does not simply: sifon your girlfriend like Sindaco.
6
+ One cannot simply have a girlfriend, if he is in FTF.
7
+ I used to be a fansubber like you. Then I took a Ptole's girlfriend in the bed.
8
+ I don't always sifon. But when I do, it's your girlfriend.
9
+ Tisifone? No, Tisifono.
10
+ http://i.imgur.com/B7gBq.jpg
11
+ Ho chiesto alla fidanzata di Ptolemaios se mi aiutava a sistemare il tubo del lavandino che perdeva.
12
+ http://i47.tinypic.com/fjj3gx.jpg
@@ -20,8 +20,10 @@ class Descartes
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 } }
24
- m.reply replies[rand(1..20)]
23
+ replies = [].tap { |ary|
24
+ File.read(file).each_line { |line| ary << line unless line.empty? }
25
+ }
26
+ m.reply replies[rand(1..replies.length)]
25
27
  end
26
28
  end
27
29
  end
@@ -0,0 +1,29 @@
1
+ ##
2
+ ## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
3
+ ## Version 2, December 2004
4
+ ##
5
+ ## Everyone is permitted to copy and distribute verbatim or modified
6
+ ## copies of this license document, and changing it is allowed as long
7
+ ## as the name is changed.
8
+ ##
9
+ ## DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
10
+ ## TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
11
+ ##
12
+ ## 0. You just DO WHAT THE FUCK YOU WANT TO.
13
+ ##
14
+
15
+ class Descartes
16
+ class Sindaco
17
+ include Cinch::Plugin
18
+
19
+ match /Sindaco/
20
+
21
+ def execute(m)
22
+ file = File.expand_path '../reply/sindaco.txt', __FILE__
23
+ replies = [].tap { |ary|
24
+ File.read(file).each_line { |line| ary << line unless line.empty? }
25
+ }
26
+ m.reply replies[rand(1..replies.length)]
27
+ end
28
+ end
29
+ end
@@ -14,6 +14,6 @@
14
14
 
15
15
  class Descartes
16
16
  def self.version
17
- '0.3.4.2'
17
+ '0.3.6'
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.2
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano
@@ -78,10 +78,12 @@ files:
78
78
  - lib/descartes/modules/currency.rb
79
79
  - lib/descartes/modules/google.rb
80
80
  - lib/descartes/modules/reply/replies.txt
81
+ - lib/descartes/modules/reply/sindaco.txt
81
82
  - lib/descartes/modules/reply.rb
82
83
  - lib/descartes/modules/rpn.rb
83
84
  - lib/descartes/modules/seen.rb
84
85
  - lib/descartes/modules/shinbo.rb
86
+ - lib/descartes/modules/sindaco.rb
85
87
  - lib/descartes/modules/trec.rb
86
88
  - lib/descartes/modules/url.rb
87
89
  - lib/descartes/utils.rb