botwayrb 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 8ec030b90add7aeb32edfb2ed5757c4832cb80c12a1d7d12a853a0d734814513
4
- data.tar.gz: 75c62a3c80cf5d1c0681eadafcef92f876459a32f9b8a02aaac675f4c3f8a4c8
3
+ metadata.gz: b54ca34ffde3ed1b7ec352e4cdd1a5b6effe551f82dcae810539bc383b794cc9
4
+ data.tar.gz: 8e013b1d840636b883d939b7c0e65d4bb53a37bd368d037ab945ad976ebb92e4
5
5
  SHA512:
6
- metadata.gz: b30e7b63dc1802e73a82bd819ad2492b5d9367f6be53143f4e99169996d66c2c734ad5b0df57cbb6bc08a48ac6d65df4672805f5adab7afd80b8947d3214b8af
7
- data.tar.gz: 0f19462fddca4a129a261017932979be58daac5bcb5f33c8b3fbf6e39026f10bc19788af61c52539768f1b990a342975aed7580e330c3c88d0653c8fba0cb591
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Botwayrb
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.1"
5
5
  end
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: Botway is not running in Ruby"
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: Botway is not running in Ruby"
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: Botway is not running in Ruby"
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: Botway is not running in Ruby"
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.0
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-05-20 00:00:00.000000000 Z
11
+ date: 2022-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaml