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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slacky (0.1.2)
4
+ slacky (0.1.3)
5
5
  dotenv
6
6
  em-cron
7
7
  eventmachine
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
@@ -22,8 +22,8 @@ module Slacky
22
22
  begin
23
23
  @slackthread = Thread.new do
24
24
  bot = Bot.new @config
25
- bot.run
26
25
  @bot_class.new bot
26
+ bot.run
27
27
  end
28
28
  run
29
29
  rescue => e
@@ -1,3 +1,3 @@
1
1
  module Slacky
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: -2997700079597391011
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: -2997700079597391011
238
+ hash: -1788595073098613166
239
239
  requirements: []
240
240
  rubyforge_project:
241
241
  rubygems_version: 1.8.23