aboutsummaryrefslogtreecommitdiff
path: root/test.rb
blob: f2010a0895c214922cd5da9dbc372902a3f69b78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require_relative 'module'

module Dinobot
  class Test < Module
    def initialize
      super

      @commands << :echo << :error
    end

    def echo(user, channel, argument)
      [[:say, channel, argument]]
    end

    def error(user, channel, argument)
      x
    end
  end
end