botbase-module-phrases 0.2.1 → 0.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fb52bd6f5c10bc8237a853279c20d03cef0853a46f429567339c1b186e72ca5
4
- data.tar.gz: acd4bd1ee6ff205e2fb0e29f7aa9cc5e06a6722cda038c0b8b6f49351443dc09
3
+ metadata.gz: 8cf8b1d171757d06459572b78cc9aa63a7680c9f9d0f3dbd22a9d1248325dea3
4
+ data.tar.gz: ad11bdf5e328dd1905ed805c5fff9d32d40af8e105b9c8b4c08e2fc3e24f94d0
5
5
  SHA512:
6
- metadata.gz: dcf077f4a846aa51971a2618f8c59fbf6a0e1985a2142627c81c8fc49b5b1528a3628e1cf2d12fa79ab07c4223520dd22cc101d7f67604a9f3d611ccd789a0ba
7
- data.tar.gz: d47be80b35a8245fb0c93f66feb26a49c941086307126795e21f761321273cbe5e46221a61f69b758b87d40121044ee966cb81fe223d1a4b30166b02761bcc8c
6
+ metadata.gz: 856e70d108027a1234523ed23867f5ca74405ab84e8800d493c94c8ede6832809029642269101f2d53e1d23288853b4b12fc6118a51f252429b045fc1f311cfe
7
+ data.tar.gz: 0dc77d64eac69f886f07041a955ac58d1c38bcf8b519334e8c531a112914f10051852113241e0319e03ba77aeaa825178ad83e7c6c71a16fcedf4a194bd7f36c
@@ -1,5 +1,4 @@
1
-
2
- m/�#q��rK�O%�`���
3
- �--&ɥ.��z�`�é
4
- �
5
- ?�X�gߊk�ǟ
1
+ !NT��,�����c��Okڹ��[VJ��/-,�����w���Y�z���޲rRh�� ���}™G�\g7t�\h��*|�cPM!#�,��Y��(PŴ����6|������$��O�2���G 'I�#��P�-�g�o�jMy��>�d�QT�k�^�hu�����=&���-ι.�'*���ׂ*��Nl�x�b��٭��YY"�����3د���v�ᨒ�
2
+
3
+ '��X>��Z�J�;m�ŗ����"b��?6�o�F���/���nh:�|����qaN���s�)�HPa!~F���-VŸ�KN�R-��C� ��B��gw���#PoG��HZ�D����M@�c?^0K +��h�C�
4
+ ~� �$�J'�q��
data.tar.gz.sig CHANGED
Binary file
@@ -14,9 +14,9 @@ require 'spstrigger_execute'
14
14
  class BotBaseModulePhrases
15
15
 
16
16
  def initialize(host: nil, reg: nil, keywords: '',
17
- px_url: nil, voiceassistant: 'emma', callback: nil)
17
+ px_url: nil, voiceassistant: 'emma', callback: nil, debug: false)
18
18
 
19
- @rsc = RSC.new host
19
+ @rsc, @debug = RSC.new(host), debug
20
20
 
21
21
  # px may be use in future for advanced rules which use conditionals
22
22
  #px = Polyrex.new px_url
@@ -63,14 +63,12 @@ class BotBaseModulePhrases
63
63
  ste: ->(x, rsc){ @ste.run x }
64
64
  }
65
65
 
66
- end
67
-
66
+ end
68
67
 
69
68
  r = nil
70
69
 
71
70
  a2 = a.map do |type, x|
72
-
73
-
71
+
74
72
  if @bot.log then
75
73
 
76
74
  instruction = x.length > 60 ? x[0..57] + '...' : x
@@ -80,7 +78,14 @@ class BotBaseModulePhrases
80
78
  end
81
79
 
82
80
  begin
83
- r = h[type].call x, @rsc
81
+
82
+ r, chan, prefix = h[type].call x, @rsc
83
+
84
+ if chan then
85
+ @bot.channel_lock = chan
86
+ @bot.message_prefix = prefix
87
+ end
88
+
84
89
  rescue
85
90
 
86
91
  if @bot.log then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: botbase-module-phrases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  zJeJvMM+IyBvJlppieIezSGxMZ9INu/2o5OyJGNmBETYbsWbt0EnbY2xT9+xKgB5
36
36
  TzZHYncJZRgc+rpXe9YDypIB
37
37
  -----END CERTIFICATE-----
38
- date: 2020-06-30 00:00:00.000000000 Z
38
+ date: 2020-07-01 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rsc
@@ -106,7 +106,7 @@ dependencies:
106
106
  version: '0.5'
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 0.5.11
109
+ version: 0.5.1
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
@@ -116,7 +116,7 @@ dependencies:
116
116
  version: '0.5'
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
- version: 0.5.11
119
+ version: 0.5.1
120
120
  description:
121
121
  email: james@jamesrobertson.eu
122
122
  executables: []
metadata.gz.sig CHANGED
Binary file