commandrb 0.4.0 → 0.4.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/commandrb.rb +3 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e157c31805af8a1a19398b332dd1e711acc6086
4
- data.tar.gz: d9811c8a83caac8570795fb1e4525d2585dd72cf
3
+ metadata.gz: 51288c75ab522040fdf27c3c7e065e4ce32c1d28
4
+ data.tar.gz: 7e91d61b2dc09ae430b014871de04a97c57e6ccd
5
5
  SHA512:
6
- metadata.gz: d4f15b5e1e82bb14df045c85e207737c29a4b43fa44fbfcbd15d4d8b877dafdb7ef52dac2a0b45efdb422e55f8cd6d323de35617917743e41ccceee0ea1eac01
7
- data.tar.gz: 9acb080178dd98a8c15eacdd1673fefc9006be37db103e574cf481a5dea5bffe0e0ff3f63b25ccfde97ff70129f497ed0aa5edce3e96c991aba6ae16d1bd2e50
6
+ metadata.gz: 54e3155a4b1a31a347e61c74a16b47e3ebfc9f383d887a9688314f2aec760dc150b55077f771b0a227990eb2e7bf54a5431a0a37e6b1db4f5999011ed0c24874
7
+ data.tar.gz: 42bfc2dab44cf8f69b5959b3133cb80c399bd638b166dde36e28dc7a6a5524705f1f0bece9570ef9487f93aeec8c4ea9c9a88c1f92e1b0166ccd90d57142d1b8
@@ -196,7 +196,7 @@ class CommandrbBot
196
196
 
197
197
  args = event.message.content.split(' ')
198
198
  # Parse args if args exist !
199
- if args.length > 2
199
+ begin
200
200
  spaces = 1
201
201
  # Prefixes with spaces are special and need to be parsed differently : )
202
202
  if prefix.include? " "
@@ -208,6 +208,8 @@ class CommandrbBot
208
208
  # Split the argmuents into an array for easy usage but keep the raw args !!
209
209
  rawargs = args
210
210
  args = args.split(/ /)
211
+ rescue NoMethodError # Not the most elegant solution but it'll do. TODO: Make a more elegant solution.
212
+ args = []
211
213
  end
212
214
 
213
215
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commandrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erisa Komuro (Seriel)