botwayrb 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/.gitignore +0 -0
- data/.rspec +0 -0
- data/.rubocop.yml +0 -0
- data/Gemfile +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/botwayrb.gemspec +0 -0
- data/lib/botwayrb/version.rb +1 -1
- data/lib/botwayrb.rb +6 -6
- 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: b54ca34ffde3ed1b7ec352e4cdd1a5b6effe551f82dcae810539bc383b794cc9
|
|
4
|
+
data.tar.gz: 8e013b1d840636b883d939b7c0e65d4bb53a37bd368d037ab945ad976ebb92e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f87272500a431e682dcafa040291ad6f0e3c00e4256f869e5df61a135ca8a08bc56fc350733033cbd0821ecd8336f24b8d2e4d2603aa6635b1602acbe1320792
|
|
7
|
+
data.tar.gz: 8e2c65a20c3e4632fe3bbe3bac2dabab02d5ac926bfecb371d416b7cd334fa605bb7ae71b29aa2538c7b39c592f85f7ff16012e883dff8c8eb5ec9a69d8a49e4
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.rubocop.yml
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/botwayrb.gemspec
CHANGED
|
File without changes
|
data/lib/botwayrb/version.rb
CHANGED
data/lib/botwayrb.rb
CHANGED
|
@@ -18,7 +18,7 @@ module Botwayrb
|
|
|
18
18
|
|
|
19
19
|
def get_token()
|
|
20
20
|
if get_bot_info("lang") != "ruby"
|
|
21
|
-
raise Error, "ERROR:
|
|
21
|
+
raise Error, "ERROR: Your Bot language is not Ruby"
|
|
22
22
|
else
|
|
23
23
|
BotwatConfig["botway"]["bots"][get_bot_info("name")]["bot_token"]
|
|
24
24
|
end
|
|
@@ -26,7 +26,7 @@ module Botwayrb
|
|
|
26
26
|
|
|
27
27
|
def get_app_id()
|
|
28
28
|
if get_bot_info("lang") != "ruby"
|
|
29
|
-
raise Error, "ERROR:
|
|
29
|
+
raise Error, "ERROR: Your Bot language is not Ruby"
|
|
30
30
|
else
|
|
31
31
|
if get_bot_info("type") == "slack"
|
|
32
32
|
BotwatConfig["botway"]["bots"][get_bot_info("name")]["bot_app_token"]
|
|
@@ -38,9 +38,9 @@ module Botwayrb
|
|
|
38
38
|
|
|
39
39
|
def get_guild_id(serverName)
|
|
40
40
|
if get_bot_info("lang") != "ruby"
|
|
41
|
-
raise Error, "ERROR:
|
|
41
|
+
raise Error, "ERROR: Your Bot language is not Ruby"
|
|
42
42
|
elsif get_bot_info("type") != "discord"
|
|
43
|
-
raise Error, "ERROR: This function/feature is only working with discord bots
|
|
43
|
+
raise Error, "ERROR: This function/feature is only working with discord bots"
|
|
44
44
|
else
|
|
45
45
|
BotwatConfig["botway"]["bots"][get_bot_info("name")]["guilds"][serverName]["server_id"]
|
|
46
46
|
end
|
|
@@ -48,9 +48,9 @@ module Botwayrb
|
|
|
48
48
|
|
|
49
49
|
def get_signing_secret()
|
|
50
50
|
if get_bot_info("lang") != "ruby"
|
|
51
|
-
raise Error, "ERROR:
|
|
51
|
+
raise Error, "ERROR: Your Bot language is not Ruby"
|
|
52
52
|
elsif get_bot_info("type") != "slack"
|
|
53
|
-
raise Error, "ERROR: This function/feature is only working with slack bots
|
|
53
|
+
raise Error, "ERROR: This function/feature is only working with slack bots"
|
|
54
54
|
else
|
|
55
55
|
BotwatConfig["botway"]["bots"][get_bot_info("name")]["signing_secret"]
|
|
56
56
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: botwayrb
|
|
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
|
- abdfnx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: yaml
|