botemon 0.5.5.1 → 0.5.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/botemon +4 -3
- data/lib/botemon/string.rb +1 -1
- data/lib/botemon/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f3db08fdb6747e0ce2640f5d85dc13f776b7652
|
4
|
+
data.tar.gz: f041d6ead16cea598148f69f410fbc0f23ec1e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f35930c0fdca24e4effaa9cfdf00470d5ebb352e0ea6ec3fe837bc24f11f3ebc148e04e9263b1c76927dca519c0ddd9caa3be87642524a1b6d40dd972bfec9c8
|
7
|
+
data.tar.gz: 5cc6ed97cff2bdeb5c01e78c30a7f40ff249b54259fd3537edf1f7a693bf53999e0e6208c7cccf0b5edba23d07c116081e09ba98a292b21694603aad27028444
|
data/bin/botemon
CHANGED
@@ -24,7 +24,7 @@ require 'open-uri'
|
|
24
24
|
|
25
25
|
abort 'Usage: botemon <bot_name> <server> <channels>' if ARGV.length < 3
|
26
26
|
|
27
|
-
Cinch::Bot.new {
|
27
|
+
bot = Cinch::Bot.new {
|
28
28
|
configure do |c|
|
29
29
|
c.nick = ARGV[0]
|
30
30
|
c.realname = ARGV[0]
|
@@ -170,7 +170,7 @@ Cinch::Bot.new {
|
|
170
170
|
end
|
171
171
|
|
172
172
|
on :message, /^pkcache$/ do |m|
|
173
|
-
if m.user.nick.to_s.oper?
|
173
|
+
if m.user.nick.to_s.oper? bot
|
174
174
|
File.delete('./cache.db') if File.exists? './cache.db'
|
175
175
|
|
176
176
|
@storage = Storage.new './cache.db'
|
@@ -203,4 +203,5 @@ Cinch::Bot.new {
|
|
203
203
|
m.reply Format(:red, "- pstats Scizor 70 Adamant 0/252/0/0/6/252 ")
|
204
204
|
m.reply Format(:red, "- pkrandom, pktrivia, pkdebug, pkstop, pkcache, pkversion ")
|
205
205
|
end
|
206
|
-
}
|
206
|
+
}
|
207
|
+
bot.start
|
data/lib/botemon/string.rb
CHANGED
data/lib/botemon/version.rb
CHANGED