slacky 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/slacky/bot.rb +6 -6
- data/lib/slacky/daemon.rb +1 -1
- data/lib/slacky/version.rb +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/lib/slacky/bot.rb
CHANGED
@@ -8,6 +8,9 @@ module Slacky
|
|
8
8
|
attr_reader :client, :config, :slack_id
|
9
9
|
|
10
10
|
def initialize(config)
|
11
|
+
config.log "#{config.name} is starting up..."
|
12
|
+
puts "#{config.name} is starting up..."
|
13
|
+
|
11
14
|
@config = config
|
12
15
|
@restarts = []
|
13
16
|
@command_handlers = []
|
@@ -40,6 +43,9 @@ module Slacky
|
|
40
43
|
|
41
44
|
Channel.bot = self
|
42
45
|
Message.bot = self
|
46
|
+
|
47
|
+
populate_users
|
48
|
+
populate_channels
|
43
49
|
end
|
44
50
|
|
45
51
|
def web_client
|
@@ -128,12 +134,6 @@ module Slacky
|
|
128
134
|
end
|
129
135
|
|
130
136
|
def run
|
131
|
-
@config.log "#{config.name} is starting up..."
|
132
|
-
puts "#{config.name} is starting up..."
|
133
|
-
|
134
|
-
populate_users
|
135
|
-
populate_channels
|
136
|
-
|
137
137
|
@bookkeeper.keep_the_books
|
138
138
|
|
139
139
|
@client.on :message do |data|
|
data/lib/slacky/daemon.rb
CHANGED
data/lib/slacky/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slacky
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -226,7 +226,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
226
226
|
version: '0'
|
227
227
|
segments:
|
228
228
|
- 0
|
229
|
-
hash: -
|
229
|
+
hash: -1788595073098613166
|
230
230
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
231
231
|
none: false
|
232
232
|
requirements:
|
@@ -235,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
235
235
|
version: '0'
|
236
236
|
segments:
|
237
237
|
- 0
|
238
|
-
hash: -
|
238
|
+
hash: -1788595073098613166
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
241
|
rubygems_version: 1.8.23
|