lita-discord_oauth 0.1.1.alpha.26 → 0.1.1.alpha.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de69322a254c71f0a6e9e1f8f8ea45efeb8baf7a
4
- data.tar.gz: 93959a307b0faa592b089706af0f1e9e4d3c3a31
3
+ metadata.gz: dafe1b1fe5e75075daa1721d27ea0b8227aacb04
4
+ data.tar.gz: 74b3a32a6a158ca9a19b41c914b13a259cdd843e
5
5
  SHA512:
6
- metadata.gz: ad57d0030e7713abede121bc645fa1ce0a318e7826531139bbd750633dd1c9275309e5a9f76ab57a5582dc28fdae58790b5038d851bd0b776dda59d8d64c8526
7
- data.tar.gz: e1b4154edfd7129301d924efa207502ed74580faf623b8c0ab77794f59f00e97ec406ed033b699a1eaf68b86669ef7e356b8012e7ab69b2b6828835f5264ab3b
6
+ metadata.gz: 1b2704a52e6430ade66aae946cc1410b753f85423faa065163f726aeb9db3a4f452d06791670160f3fc2c2d9decfcbf0ffafb485e58c647bbfb18e52995fcac7
7
+ data.tar.gz: 2d85db7967792cbe8d794885cda6e41cbebf443718dba1492a0aa844fe2cc100009851f0d2bae93b196807f6a6a555f430e60b98e1946fc47210488a7a5b9608
@@ -13,30 +13,28 @@ module Lita
13
13
 
14
14
  def run
15
15
  STDOUT.write('Starting')
16
- @client.ready do |event|
16
+ @client.ready do |e|
17
17
  robot.trigger(:connected)
18
- STDOUT.write('Connected to Discord')
19
- end
20
-
21
- @client.message do |event|
22
- message = event.message
23
- message_text = message.content
24
18
 
25
- user = Lita::User.find_by_id(message.author.id)
26
- user = Lita::User.create(user) unless user
19
+ @client.message do |event|
20
+ message = event.message
21
+ message_text = message.content
27
22
 
28
- channel = event.channel.id
23
+ user = Lita::User.find_by_id(message.author.id)
24
+ user = Lita::User.create(user) unless user
29
25
 
30
- source = Lita::Source.new(user: user, room: channel)
31
- msg = Lita::Message.new(robot, message_text, source)
26
+ channel = event.channel.id
32
27
 
33
- puts msg
28
+ source = Lita::Source.new(user: user, room: channel)
29
+ msg = Lita::Message.new(robot, message_text, source)
34
30
 
35
- robot.receive(msg) #unless message.from_bot?
31
+ robot.receive(msg) #unless message.from_bot?
36
32
 
33
+ end
37
34
  end
38
35
 
39
- @client.run(:async)
36
+
37
+ @client.run
40
38
  end
41
39
 
42
40
  def shut_down
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-discord_oauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.alpha.26
4
+ version: 0.1.1.alpha.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns