From bffdcca14eed4fdf4414bdb7dac4e26c70c0c68b Mon Sep 17 00:00:00 2001 From: schnevets Date: Tue, 28 Jan 2014 23:44:46 -0500 Subject: [PATCH] Added 'ty' as shortened alias to thanks --- lib/bro.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/bro.rb b/lib/bro.rb index 7d29f19..99f5fac 100755 --- a/lib/bro.rb +++ b/lib/bro.rb @@ -37,7 +37,7 @@ def require_relative(path) VanillaText.apply end -command :thanks do |c| +yesblock = lambda { |c| c.syntax = 'bro thanks [COMMAND]' c.summary = 'Upvote an entry, bro' c.description = 'Upvote a bro entry. If called without a COMMAND argument, it will upvote the last thing you looked up with bro' @@ -79,7 +79,10 @@ def require_relative(path) end end end -end +} + +command :thanks, &yesblock +command :ty, &yesblock noblock = lambda { |c| c.syntax = 'bro ...no [ID]'