qwtf_discord_bot 6.2.1 → 6.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.example +2 -2
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/docker-compose.yml +3 -3
- data/lib/qwtf_discord_bot/qwtf_discord_bot_pug.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdc4e3f9f32f45c2da0ba71ef882dfb3e675816e764bfa916782d37e92615284
|
4
|
+
data.tar.gz: e5b85dfe5c9ba25847d27819022bd48708f58d7119dd39e7dd75813856ee4583
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2077dfbc5761ed7a4688bb9644bbf1e56d24d4042a66d4bc124685b2b390bd09fd73da4e3f5e3685b74ac55ab57f232c535cccdd787c4ed0e49209554eb2a1b8
|
7
|
+
data.tar.gz: 2d7c1e573bb5d34589d85f8283303e2a1aa0c0903fa4e29320a27e6709fe8c0bc3757004f972077c5c894af60ef45f409545e829902f5a9623713159e05e9f1f
|
data/.env.example
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export
|
2
|
-
export
|
1
|
+
export RESULTS_API_URL=http://ratings.fortressone.org/api/v1
|
2
|
+
export RESULTS_APP_URL=http://ratings.fortressone.org
|
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.2.
|
1
|
+
6.2.2
|
data/docker-compose.yml
CHANGED
@@ -34,8 +34,8 @@ services:
|
|
34
34
|
- redis
|
35
35
|
environment:
|
36
36
|
- REDIS_URL=redis://redis
|
37
|
-
-
|
38
|
-
-
|
37
|
+
- RESULTS_API_URL
|
38
|
+
- RESULTS_APP_URL
|
39
39
|
volumes:
|
40
40
|
- type: bind
|
41
41
|
source: "/home/ubuntu/.config/qwtf_discord_bot/config.yaml"
|
@@ -48,7 +48,7 @@ services:
|
|
48
48
|
- redis
|
49
49
|
environment:
|
50
50
|
- REDIS_URL=redis://redis
|
51
|
-
-
|
51
|
+
- RESULTS_API_URL
|
52
52
|
volumes:
|
53
53
|
- type: bind
|
54
54
|
source: "/home/ubuntu/.config/qwtf_discord_bot/config.yaml"
|
@@ -944,7 +944,7 @@ class QwtfDiscordBotPug # :nodoc:
|
|
944
944
|
end
|
945
945
|
|
946
946
|
def post_results(json)
|
947
|
-
uri = URI([ENV['
|
947
|
+
uri = URI([ENV['RESULTS_API_URL'], 'matches'].join('/'))
|
948
948
|
req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
|
949
949
|
req.body = json
|
950
950
|
|
@@ -954,7 +954,7 @@ class QwtfDiscordBotPug # :nodoc:
|
|
954
954
|
end
|
955
955
|
|
956
956
|
def get_fair_teams(channel_id:, players:)
|
957
|
-
uri = URI([ENV['
|
957
|
+
uri = URI([ENV['RESULTS_API_URL'], 'fair_teams', 'new'].join('/'))
|
958
958
|
params = { :channel_id => channel_id, 'players[]' => players }
|
959
959
|
uri.query = URI.encode_www_form(params)
|
960
960
|
req = Net::HTTP::Get.new(uri)
|
@@ -971,6 +971,6 @@ class QwtfDiscordBotPug # :nodoc:
|
|
971
971
|
end
|
972
972
|
|
973
973
|
def discord_channel_leaderboard_url(channel_id)
|
974
|
-
[ENV['
|
974
|
+
[ENV['RESULTS_APP_URL'], "discord_channels", channel_id].join('/')
|
975
975
|
end
|
976
976
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qwtf_discord_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.2.
|
4
|
+
version: 6.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sheldon Johnson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: discordrb
|