lita-discord_oauth 0.1.1.alpha.32 → 0.1.1.alpha.33

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: 1325301c84375591429738fcc3c8c2d5b310588e
4
- data.tar.gz: b136f36dbb7123a74ce43e9842cd129c8a039ffa
3
+ metadata.gz: f5dea551f0efb55107c24d1f9149bcfa32808ebf
4
+ data.tar.gz: 5d720f23e906e742fc9e20aeb90b265981e17081
5
5
  SHA512:
6
- metadata.gz: e2b26a6f73c51b1ac1ee735b574655b0f9535dd150eed7804a98db4256e3b62ca17d8b9562436fea72708effe5d37aa8982edc48b5025c4534bc6488a82b25e4
7
- data.tar.gz: 318d1b7f9a2ee46fde8993174711571af29896e794b6e5d026eafea068f77c85b8d1428bc0b1d98377a959164434b0c6abac05fbe65c922466c60b83a88924b9
6
+ metadata.gz: aa0dad2be745ded4d3433cd4ae1948fe870d0b5679c578425b854034e95b4dc2d7da1bcf88cdff3299e2caee6f0620688f476651e92f5251da169f9a56c65963
7
+ data.tar.gz: 199fea4e5340f16869960c2eeaced159a5d76e321e20de8aa3cd81f475d1bbc2616b01a1021d8c21b806503c20245f7a7a14bf326b9979de9b6fc7c84c734dab
@@ -20,13 +20,14 @@ module Lita
20
20
  message = event.message
21
21
  message_text = message.content
22
22
 
23
- puts message_text
24
23
  puts message
25
24
  puts message.author.id
26
25
 
27
26
  user = Lita::User.find_by_id(message.author.id)
28
27
  user = Lita::User.create(user) unless user
29
28
 
29
+ puts user.id
30
+
30
31
  channel = event.channel.id
31
32
 
32
33
  source = Lita::Source.new(user: user, room: channel)
@@ -46,13 +47,13 @@ module Lita
46
47
  end
47
48
 
48
49
  def send_messages(target, messages)
49
- puts target
50
- puts target.user
51
- puts target.user.id
50
+ puts 'Target: ' + target
51
+ puts 'Target user: ' + target.user
52
+ puts 'Target user id: ' + target.user.id
52
53
 
53
54
  mention = @client.user(target.user.id).mention
54
55
 
55
- puts mention
56
+ puts 'Mention: ' + mention
56
57
 
57
58
  messages.each do |message|
58
59
  if mention
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.32
4
+ version: 0.1.1.alpha.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cas Eliëns