sponge 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/proto/sponge.rb +1 -1
- data/lib/sponge/version.rb +1 -1
- metadata +2 -3
- data/lib/proto/plugins/seen.rb +0 -20
data/lib/proto/sponge.rb
CHANGED
data/lib/sponge/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 2
|
9
|
+
version: 0.3.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Lee 'injekt' Jarvis
|
@@ -50,7 +50,6 @@ files:
|
|
50
50
|
- lib/proto/plugins/log.rb
|
51
51
|
- lib/proto/plugins/logout.rb
|
52
52
|
- lib/proto/plugins/login.rb
|
53
|
-
- lib/proto/plugins/seen.rb
|
54
53
|
- lib/proto/plugins/help.rb
|
55
54
|
- lib/proto/plugins/say.rb
|
56
55
|
- lib/proto/sponge.rb
|
data/lib/proto/plugins/seen.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
class SeenPlugin < Sponge::Plugin
|
2
|
-
listen_to :privmsg
|
3
|
-
|
4
|
-
def initialize(bot)
|
5
|
-
@users = {}
|
6
|
-
end
|
7
|
-
|
8
|
-
def listen(message)
|
9
|
-
@users[message.nick] = message
|
10
|
-
end
|
11
|
-
|
12
|
-
def reply(m, arg)
|
13
|
-
if @users.include?(arg)
|
14
|
-
m.reply "I have seen #{arg}"
|
15
|
-
else
|
16
|
-
m.reply "I haven't seen #{arg}"
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|