discordrb 1.3.10 → 1.3.11
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of discordrb might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/Rakefile +5 -2
- data/lib/discordrb/data.rb +1 -1
- data/lib/discordrb/events/message.rb +6 -0
- data/lib/discordrb/version.rb +1 -1
- data/util/update_lists.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95b3f567d892b4bd53571b18829ba7b762302d68
|
4
|
+
data.tar.gz: 1e97d316460fc288a8af594a907fa8f35e2efa72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfbcdcb900f9d8de5b19fd473f9219b1635ab2aa71f2f8c434773f19edc6dc9d5f6c0ab802eb4b5cd994769e3b8fc464410aa25ab23a037e65bfee8eef7652ea
|
7
|
+
data.tar.gz: 6b1da574ffeb5541aabe8cf50702a107ad34138761a1a3c67ae3eb8f2419feaa179d0c6dd06c5337059a5e64e0108616a648b7f519f05accef2a6feed56d585e
|
data/.rspec
ADDED
data/Rakefile
CHANGED
data/lib/discordrb/data.rb
CHANGED
@@ -17,6 +17,10 @@ module Discordrb::Events
|
|
17
17
|
@message.channel.send_message(content)
|
18
18
|
end
|
19
19
|
|
20
|
+
def from_bot?
|
21
|
+
@message.user.id == @bot.bot_user.id
|
22
|
+
end
|
23
|
+
|
20
24
|
alias_method :user, :author
|
21
25
|
alias_method :text, :content
|
22
26
|
alias_method :send, :send_message
|
@@ -57,6 +61,8 @@ module Discordrb::Events
|
|
57
61
|
a.delete('#') == e.name
|
58
62
|
elsif a.is_a? Fixnum
|
59
63
|
a == e.id
|
64
|
+
elsif a == ':bot'
|
65
|
+
e.from_bot?
|
60
66
|
else
|
61
67
|
a == e
|
62
68
|
end
|
data/lib/discordrb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: discordrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- meew0
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faye-websocket
|
@@ -88,6 +88,7 @@ extensions: []
|
|
88
88
|
extra_rdoc_files: []
|
89
89
|
files:
|
90
90
|
- ".gitignore"
|
91
|
+
- ".rspec"
|
91
92
|
- ".rubocop.yml"
|
92
93
|
- ".travis.yml"
|
93
94
|
- Gemfile
|
@@ -127,6 +128,7 @@ files:
|
|
127
128
|
- lib/discordrb/games_list.rb
|
128
129
|
- lib/discordrb/permissions.rb
|
129
130
|
- lib/discordrb/version.rb
|
131
|
+
- util/update_lists.rb
|
130
132
|
homepage: https://github.com/meew0/discordrb
|
131
133
|
licenses:
|
132
134
|
- MIT
|