~singpolyma/sgx-jmp

c85df3f9267ededf13df158275be4d96311c103a — Stephen Paul Weber 1 year, 6 months ago 35c6016
Reply to old bot address

Keep this deprecation message in so that users with this still in roster know
where bot has moved.
1 files changed, 6 insertions(+), 0 deletions(-)

M sgx_jmp.rb
M sgx_jmp.rb => sgx_jmp.rb +6 -0
@@ 113,6 113,12 @@ setup(
	workqueue_count: 0
)

message to: /\Aaccount@/ do |m|
	self << m.reply.tap do |out|
		out.body = "This bot is deprecated. Please talk to xmpp:cheogram.com"
	end
end

message to: /\Acustomer_/, from: /@#{CONFIG[:sgx]}(\/|\Z)/ do |m|
	Customer.for_customer_id(
		m.to.node.delete_prefix("customer_")