Sha256: 9ff87163592fcd042084a7c2436bd1fba4deee4f5979527d00a892cbed48cee6

Contents?: true

Size: 517 Bytes

Versions: 2

Compression:

Stored size: 517 Bytes

Contents

require 'muzang/version'

module Muzang
  module Plugins
    class Motd
      include Muzang::Plugins::Helpers

      def initialize(bot)
        @bot = bot
      end

      def call(connection, message)
        on_join(connection, message) do
          connection.msg(message.channel, "Muzang | Version: #{Muzang::VERSION} | Plugins: #{plugins}")
        end
      end

      def plugins
        list = ""
        @bot.plugins.each{|plugin, instance| list << "*#{plugin}* "}
        list
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
muzang-plugins-1.1.6 lib/muzang-plugins/muzang-motd.rb
muzang-plugins-1.1.5 lib/muzang-plugins/muzang-motd.rb