botemon 0.5.5.1 → 0.5.5.2

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: ea4fd7d9ba4c873cf2d9eec79137f16374525d14
4
- data.tar.gz: a15bb15e4ba42f403edb474666b36f999b7e4e11
3
+ metadata.gz: 7f3db08fdb6747e0ce2640f5d85dc13f776b7652
4
+ data.tar.gz: f041d6ead16cea598148f69f410fbc0f23ec1e71
5
5
  SHA512:
6
- metadata.gz: 5e3e9ea872c38ef527921c9c251f3509358980539ed22011e28134c8e5721e72462fb1b01d7d99422018a128e96705387f9c5def16833a6485cffc896dbf0448
7
- data.tar.gz: f1f82ca14d80e82dbaee6a82938ca22d9efd614af8a4aca03c6f28ff0eefc8f67aa0fe65f9cd85cd71b1a909a568f93f0acb9ba4cf20f854282a038aead68697
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? c
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
- }.start
206
+ }
207
+ bot.start
@@ -23,7 +23,7 @@ class String
23
23
  self.to_i.to_s == self || self.to_f.to_s == self
24
24
  end
25
25
 
26
- def oper?(c)
26
+ def oper?(bot)
27
27
  bot.channels.each { |c| return true if c.ops.include? self }
28
28
  end
29
29
 
@@ -19,6 +19,6 @@
19
19
 
20
20
  module Botemon
21
21
  def self.version
22
- '0.5.5.1'
22
+ '0.5.5.2'
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botemon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5.1
4
+ version: 0.5.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Capuano