Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from schnevets/master
Browse files Browse the repository at this point in the history
Added 'ty' as shortened alias to thanks
  • Loading branch information
hubsmoke committed Feb 3, 2014
2 parents 4aac10b + bffdcca commit b2fbbc1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/bro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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]'
Expand Down

0 comments on commit b2fbbc1

Please sign in to comment.