moonbot 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,6 @@
1
1
  module MoonBot::Plugin
2
+ attr_reader :nick, :login, :name
3
+
2
4
  class Auth
3
5
  def initialize bot
4
6
  @bot = bot
@@ -1,3 +1,3 @@
1
1
  module MoonBot
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/readme.md CHANGED
@@ -15,12 +15,12 @@ class Ping
15
15
 
16
16
  def on_ping message
17
17
  pong = "PONG #{message[:args]}"
18
- @bot.client.send_data pong
18
+ @bot.command pong
19
19
  end
20
20
  end
21
21
  ```
22
22
 
23
- The initializer takes the bot as a paramater so you can access the client to send data as well as access plugins so you can call methods from them (for example you have an authorization plugin that you want to use on the user). There is also the "any" method, if your plugin has this method it will be called every time the server sends back data.
23
+ The initializer takes the bot as a paramater so you can access the client to send data and also access plugins so you can call methods from them (for example you have an authorization plugin that you want to use on the user). There is also the "any" method, if your plugin has this method it will be called every time the server sends back data. To send data to the server call @bot.command, which will send the proper data to the server, including "\r\n".
24
24
 
25
25
  ## How do I get started?
26
26
  First, Add moonbot to your Gemfile.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-30 00:00:00.000000000 Z
12
+ date: 2012-12-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70138858589920 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70138858589920
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
25
30
  description: Amazingly simple IRC bot that handles everything via plugins with the
26
31
  exception of connecting.
27
32
  email:
@@ -65,8 +70,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
70
  version: '0'
66
71
  requirements: []
67
72
  rubyforge_project:
68
- rubygems_version: 1.8.11
73
+ rubygems_version: 1.8.23
69
74
  signing_key:
70
75
  specification_version: 3
71
76
  summary: Amazingly simple IRC bot.
72
77
  test_files: []
78
+ has_rdoc: