I made a quick tweak to the issue code. Creating a new issue is still the same, but if you type 'bug new' with nothing else, it'll take you to the editor to write your issue.
Change this line:
when /^(bug|typo|idea)\s+(\d+)\s+(show|del|add|status)(\s+(.+))?$/i
to this:
when /^(bug|typo|idea)\s+(\d+)\s+(show|del|add|status|new)(\s+(.+))?$/i
And these lines:
when "new"
issue = Issues.add_issue event[:itype], player.name, event[:value]
player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."
To these:
when "new"
if event[:value]
issue = Issues.add_issue event[:itype], player.name, event[:value]
player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."
else
player.editor([], 50) do |data|
unless data.nil?
issue = Issues.add_issue event[:itype], player.name,data
player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."
end
end
end