|
|
@ -1,6 +1,8 @@
|
|
|
|
class WechatsController < ActionController::Base
|
|
|
|
class WechatsController < ActionController::Base
|
|
|
|
wechat_responder
|
|
|
|
wechat_responder
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
included ApplicationHelper
|
|
|
|
|
|
|
|
|
|
|
|
# default text responder when no other match
|
|
|
|
# default text responder when no other match
|
|
|
|
on :text do |request, content|
|
|
|
|
on :text do |request, content|
|
|
|
|
request.reply.text "echo: #{content}" # Just echo
|
|
|
|
request.reply.text "echo: #{content}" # Just echo
|
|
|
|