Sha256: ebecac07de17406fdf22982063afa057a441110acf6472611ef99930501f0307

Contents?: true

Size: 412 Bytes

Versions: 5

Compression:

Stored size: 412 Bytes

Contents

require 'muzang/version'

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
muzang-plugins-1.1.4 lib/muzang-plugins/muzang-motd.rb
muzang-plugins-1.1.3 lib/muzang-plugins/muzang-motd.rb
muzang-plugins-1.1.2 lib/muzang-plugins/muzang-motd.rb
muzang-plugins-1.1.1 lib/muzang-plugins/muzang-motd.rb
muzang-plugins-1.1.0 lib/muzang-plugins/muzang-motd.rb