summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Gerus <arachnist@i.am-a.cat>2014-04-28 12:20:36 +0200
committerRobert Gerus <arachnist@i.am-a.cat>2014-04-28 12:20:36 +0200
commit6ab55a865b094d008e0292701328f5a698f5a807 (patch)
treec039956bcadd3af117b7bdf0e0ca9ee892dcdb5e
parentf4aff75127d27bb43eb5fe01a2b484310ed9416a (diff)
downloadrepost-6ab55a865b094d008e0292701328f5a698f5a807.tar.gz
repost-6ab55a865b094d008e0292701328f5a698f5a807.tar.bz2
repost-6ab55a865b094d008e0292701328f5a698f5a807.tar.xz
repost-6ab55a865b094d008e0292701328f5a698f5a807.zip
revert all this shit for now.
-rw-r--r--plugins/commands/jan.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/commands/jan.rb b/plugins/commands/jan.rb
index 5cbd605..716fe51 100644
--- a/plugins/commands/jan.rb
+++ b/plugins/commands/jan.rb
@@ -1,14 +1,7 @@
Client.register_command("jan") { |args|
- p args
- if args =~ /ał$/ then
- predicate = args
- else
- predicate = File.readlines(Config[:commands][:jan][:predicates]).sample.strip
- end
-
[
Config[:commands][:jan][:subject],
- predicate,
+ File.readlines(Config[:commands][:jan][:predicates]).sample.strip,
Config[:commands][:jan][:attribute],
File.readlines(Config[:commands][:jan][:object]).sample.strip
].join " "