ronimopi 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/ronimopi.rb +7 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/ronimopi.rb
CHANGED
@@ -17,8 +17,14 @@
|
|
17
17
|
require 'isaac/bot'
|
18
18
|
CFGDIR=File::join(ENV['HOME'], '.config', 'ronimopi')
|
19
19
|
|
20
|
-
|
20
|
+
# add start_with? to string unless there
|
21
|
+
class String
|
22
|
+
def start_with? pfx
|
23
|
+
return slice(0, pfx.length) == pfx
|
24
|
+
end
|
25
|
+
end unless String.method_defined? "start_with?"
|
21
26
|
|
27
|
+
$ronimopi = Isaac::Bot.new do
|
22
28
|
@channels = []
|
23
29
|
@owner = ''
|
24
30
|
|