chronicle_bot/lib/addons/utils.rb

16 lines
389 B
Ruby
Raw Normal View History

2021-02-07 03:23:51 +00:00
# frozen_string_literal: true
module Chronicle
module Matrix
# Ping - Pong. Useful for testing
#
# @param client [Client object] The current Matrix client connection
# @param message [Message object] The relevant message object
def handle_ping(client, message)
room = client.ensure_room message.room_id
room.send_notice('Pong!')
end
end
end