summaryrefslogtreecommitdiffstats
path: root/modules/Credits.rb
blob: 1df7d1809cfb3e90936e66eb53164401c233a547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# -*- coding: utf-8 -*-
require 'xmpp4r/message'

require_relative '../module_base'

module Lain
  module Modules
    class Credits < Base
      CreditText = <<END

I am Lain (レイン) #{Version}.

Coded by NeoRaider -- code at http://git.universe-factory.net/lain/
END

      def on_message(muc, message)
        return unless /\A!credits\b/ =~ message.body

        
        muc.say CreditText.chomp
      end

      def commands
        {
          '!credits' => 'show credits'
        }
      end
    end
  end
end