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 +4 -4
- data/lib/protonbot/relay.rb +1 -1
- data/lib/protonbot/relay/plugin.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 60209aea9978f80a3f5b82f87cdf0f89e51543bf
|
4
|
+
data.tar.gz: dc4a32474d55113246c3ade8448f0c543a819e2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2664f0eb11cac84ff3bbd0903d25a416efe5d883a3e156e21a798f00c43e5a5c0e4a55a4c05d97d4c13ed6a1641dcefd583fdc911d865d0b4479bdc827eb0989
|
7
|
+
data.tar.gz: 42ede46afcaee4dc7459233209fb61b2b72d1301e4e4e27ae4073ab4afce8f9475ccb68cb8b324db9e3bfa9c01485086199e776f07733916b88a392961b95a1a
|
data/lib/protonbot/relay.rb
CHANGED
@@ -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
|
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
|
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 %
|
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.
|
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-
|
11
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|