def general_rules(user, command, processed, dest, files = [], rules_file = "")
from = user.name
display_name = user.profile.display_name
begin
case command
when /\A\s*(\d*)\s*echo\s(.+)/i
save_stats :echo
$1.to_s == '' ? times = 1 : times = $1.to_i
respond ($2*times).to_s
else
return false
end
return true
rescue => exception
if defined?(@logger)
@logger.fatal exception
respond "Unexpected error!! Please contact an admin to solve it: <@#{config.admins.join(">, <@")}>"
else
puts exception
end
return false
end
end