listcordrb 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/listcordrb/stats.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88b997be35a8a0d96eb6fa0985cb2c2dc08b680e
|
4
|
+
data.tar.gz: e8bb8208be552aec1b6fe5ea6a178f633e687eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e4169550541bde29ec8ab9c8a76e8b33b28b1d4de0be70eef95622b59dcdf4fa5800a8c98bef60e21bb5bea05a8136d4db08a8a391aef78d31fd8f1894c864d
|
7
|
+
data.tar.gz: c754cce5b667bf20ad8e9f3f70661ab7f63ef611b62f76d00797f9b902176e49c1f2c03bc9a499bdae50a3ef68430fad73faa3986abb397f9150e485cb65dc11
|
data/lib/listcordrb/stats.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Stats and stuff, ya know.
|
2
2
|
class ListCordRB::Stats
|
3
3
|
# Initialize the stats
|
4
|
-
# Program does this automatically when running
|
4
|
+
# Program does this automatically when running ListCordRB.new.
|
5
5
|
def initialize(apikey, id)
|
6
6
|
@api = apikey
|
7
7
|
@id = id
|
@@ -9,7 +9,7 @@ class ListCordRB::Stats
|
|
9
9
|
|
10
10
|
# Get the server count, returns an int.
|
11
11
|
def servers
|
12
|
-
url = "
|
12
|
+
url = "https://listcord.com/api/bot/#{@id}"
|
13
13
|
JSON.parse(RestClient.get(url))['servers'].to_i
|
14
14
|
end
|
15
15
|
|
@@ -17,7 +17,7 @@ class ListCordRB::Stats
|
|
17
17
|
|
18
18
|
# Update the bot's server count.
|
19
19
|
def servers=(count, shard = nil)
|
20
|
-
url = "
|
20
|
+
url = "https://listcord.com/api/bot/#{@id}/guilds"
|
21
21
|
json = {
|
22
22
|
'guilds' => count.to_s,
|
23
23
|
'shard' => shard.to_s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: listcordrb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chewsterchew
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07-
|
11
|
+
date: 2018-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|