lib/Zeta/plugins/seen.rb in zetabot-1.1.0 vs lib/Zeta/plugins/seen.rb in zetabot-2.0.0
- old
+ new
@@ -4,10 +4,9 @@
class SeenStruct < Struct.new(:who, :where, :what, :time)
include ActionView::Helpers::DateHelper
def to_s
# "[#{time.asctime}] #{who} was seen in #{where} last saying #{what}"
time_ago = time_ago_in_words(Time.at(time))
- # "[ \x1F#{where.to_s.upcase}\x0F ] \x0304#{who}\x0F: \"\x0303#{what[0..300]}\x0F\" \x02#{time_ago}\x0F ago"
if where.to_s.upcase == 'STAFF' || where.to_s.upcase == 'SERVICES'
return ''
end
"Seen ∴ \x0304#{who}\x0F was last seen talking in \x1F#{where.to_s.upcase}\x0F \x02#{time_ago}\x0F ago."
end
\ No newline at end of file