descartes 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/descartes +4 -3
- data/lib/descartes/modules/reply.rb +26 -0
- data/lib/descartes/version.rb +1 -1
- metadata +2 -2
- data/lib/descartes/modules/hi.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf39d5c0b4ae298a7ceb8b4226322b29352af050
|
4
|
+
data.tar.gz: fdbe7648d95139d7a14b804b4554911d172e07a6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4fa5e569cf4dc04e5d0e9b10a3cc900faaaba2b72c7c73694dca263727971d10883cc94fd69e3905a47c37a468eac9c63acfe89086e3abc9551ae88c7168d4c
|
7
|
+
data.tar.gz: 01aec979d11effa7ca842b235828cdfb67a5802d2bc1865fac0f3a9c86597cfe0b3d65aff0aa0cf65e727edd8faaa40d4d7b8731fd224ff1a62653a17558fa74
|
data/bin/descartes
CHANGED
@@ -14,13 +14,14 @@
|
|
14
14
|
|
15
15
|
require 'descartes'
|
16
16
|
|
17
|
-
|
18
|
-
|
17
|
+
nickname = ARGV[0] || 'Descartes'
|
18
|
+
server = ARGV[1] || 'irc.rizon.net'
|
19
|
+
channels = ARGV[2..-1] || ['#aggvistnurummor']
|
19
20
|
plugins = Descartes.load
|
20
21
|
|
21
22
|
Cinch::Bot.new {
|
22
23
|
configure do |c|
|
23
|
-
c.nick =
|
24
|
+
c.nick = nickname
|
24
25
|
c.realname = 'Descartes'
|
25
26
|
c.user = 'Descartes'
|
26
27
|
c.server = server
|
@@ -0,0 +1,26 @@
|
|
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 Reply
|
17
|
+
include Cinch::Plugin
|
18
|
+
|
19
|
+
match /Descartes.*\?/, :use_prefix => false
|
20
|
+
|
21
|
+
def execute(m)
|
22
|
+
replies = [].tap {|ary| File.read('modules/reply/replies.txt').each_line { |line| ary << line } }
|
23
|
+
m.reply replies[rand(1..20)]
|
24
|
+
end
|
25
|
+
end
|
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
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Capuano
|
@@ -77,7 +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/
|
80
|
+
- lib/descartes/modules/reply.rb
|
81
81
|
- lib/descartes/modules/rpn.rb
|
82
82
|
- lib/descartes/modules/seen.rb
|
83
83
|
- lib/descartes/modules/shinbo.rb
|
data/lib/descartes/modules/hi.rb
DELETED
@@ -1,25 +0,0 @@
|
|
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 Hi
|
17
|
-
include Cinch::Plugin
|
18
|
-
|
19
|
-
match 'hello'
|
20
|
-
|
21
|
-
def execute(m)
|
22
|
-
m.reply "hello, #{m.user.nick}"
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|