protonbot-relay 0.1.0 → 0.1.1

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: '09c15f2e5dce3cd89e1160266b2ab5f5f8a4a1e8'
4
- data.tar.gz: 1612435c812775edb7a4c75a5adccf228ccb4221
3
+ metadata.gz: 60209aea9978f80a3f5b82f87cdf0f89e51543bf
4
+ data.tar.gz: dc4a32474d55113246c3ade8448f0c543a819e2a
5
5
  SHA512:
6
- metadata.gz: 38caa7830aee4763527bc9f4a51852776d6f02c78161388924da7aa05c4f80999b3fcb1c5810b2e06f1c59b2225dbee56ecf0a8368d51d3323c9871b7c5a3b6d
7
- data.tar.gz: a577a689b0260b525d5f0bb4da6e76e9b25eb68b62fa8971edb91966392162ba143215df595fd368975f7c2a3002d295bed88467d6770674b681729b396d3b7b
6
+ metadata.gz: 2664f0eb11cac84ff3bbd0903d25a416efe5d883a3e156e21a798f00c43e5a5c0e4a55a4c05d97d4c13ed6a1641dcefd583fdc911d865d0b4479bdc827eb0989
7
+ data.tar.gz: 42ede46afcaee4dc7459233209fb61b2b72d1301e4e4e27ae4073ab4afce8f9475ccb68cb8b324db9e3bfa9c01485086199e776f07733916b88a392961b95a1a
@@ -1,5 +1,5 @@
1
1
  module ProtonBot
2
2
  module Relay
3
- VERSION = '0.1.0'.freeze
3
+ VERSION = '0.1.1'.freeze
4
4
  end
5
5
  end
@@ -57,10 +57,10 @@ ProtonBot::Plugin.new do
57
57
  dat.nreply 'Done!'
58
58
  end.perm!('manage-relays')
59
59
 
60
- core.help_add('relays', 'relayinfo', 'relayinfo (id)', 'Shows info about relay')
60
+ core.help_add('relays', 'relayinfo', 'relayinfo {id}', 'Shows info about relay')
61
61
  cmd(cmd: 'relayinfo') do |dat|
62
62
  if dat[:split].empty?
63
- dat.nreply ProtonBot::Bot::Messages::NOT_ENOUGH_PARAMETERS
63
+ dat.nreply "I have %B#{@relays.length}%N relays"
64
64
  else
65
65
  dat[:split].each do |id|
66
66
  if @relays[id.to_i]
@@ -113,7 +113,7 @@ ProtonBot::Plugin.new do
113
113
  this, other = *getchan(dat, v)
114
114
  if op = getop(this, other) and op.chans[other['channel']]
115
115
  if dat[:cmd] == 'ACTION'
116
- op.privmsg(other['channel'], "%N[%Br#{k}%B]%N %B<%N#{dat[:nick]}%B>%N %C%BLUE* #{dat[:split].join(' ')}")
116
+ op.privmsg(other['channel'], "%N[%Br#{k}%B]%N %C%BLUE* #{dat[:nick]} #{dat[:split].join(' ')}")
117
117
  else
118
118
  op.privmsg(other['channel'], "%N[%Br#{k}%B]%N %B<%N#{dat[:nick]}%B>%N %C%BLUE[CTCP] #{dat[:message]}")
119
119
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protonbot-relay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nickolay Ilyushin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-13 00:00:00.000000000 Z
11
+ date: 2017-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler