test.
parent
499e1b0875
commit
d094f868a6
|
@ -1,7 +1,13 @@
|
||||||
Client.register_command("jan") { |args|
|
Client.register_command("jan") { |args|
|
||||||
|
if args =~ /ał$/ then
|
||||||
|
predicate = args
|
||||||
|
else
|
||||||
|
predicate = File.readlines(Config[:commands][:jan][:predicates]).sample.strip
|
||||||
|
end
|
||||||
|
|
||||||
[
|
[
|
||||||
Config[:commands][:jan][:subject],
|
Config[:commands][:jan][:subject],
|
||||||
File.readlines(Config[:commands][:jan][:predicates]).sample.strip,
|
predicate
|
||||||
Config[:commands][:jan][:attribute],
|
Config[:commands][:jan][:attribute],
|
||||||
File.readlines(Config[:commands][:jan][:object]).sample.strip
|
File.readlines(Config[:commands][:jan][:object]).sample.strip
|
||||||
].join " "
|
].join " "
|
||||||
|
|
Loading…
Reference in New Issue