lib/slack/smart-bot/utils/build_help.rb in slack-smart-bot-1.12.9 vs lib/slack/smart-bot/utils/build_help.rb in slack-smart-bot-1.13.0

- old
+ new

@@ -15,10 +15,10 @@ res = build_help(t, expanded) help_message[:master][t.scan(/\/(\w+)$/).join.to_sym] = res[:master] help_message[:admin][t.scan(/\/(\w+)$/).join.to_sym] = res[:admin] help_message[:normal][t.scan(/\/(\w+)$/).join.to_sym] = res[:normal] else - lines = IO.readlines(t) + lines = IO.readlines(t, encoding: 'UTF-8') data = {master:{}, admin:{}, normal:{}} data.master = lines.join #normal user help data.admin = lines.reject {|l| l.match?(/^\s*#\s*help\s*master\s*:.+$/i)}.join #not master help data.normal = lines.reject {|l| l.match?(/^\s*#\s*help\s*(admin|master)\s*:.+$/i)}.join #not admin or master help if expanded