Sha256: 26f0702624b2d6facd1333d02215e5070000ce35cc6fbb4a89c8af7624f7c6db

Contents?: true

Size: 586 Bytes

Versions: 43

Compression:

Stored size: 586 Bytes

Contents

module Plugins
  class DBZ
    include Cinch::Plugin
    include Cinch::Helpers

    enable_acl

    self.plugin_name = 'DragonBall Z!'
    self.help = "It's Over Nine Thousand!"

    # Regex
    match /(^9000$|overninethousand|ninethousand|Over\ Nine\ Thousand|Over\ 9000)/,
          use_prefix: false, method: :randomquote

    # Initialization
    def initialize(*args)
      @sample = load_locale('dbz')
      super
    end

    # Methods
    def randomquote(msg)
      msg.reply @sample['over9k'].sample
    end

  end

end

# AutoLoad
Bot.config.plugins.plugins.push Plugins::DBZ

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
zetabot-2.1.2 lib/Zeta/plugins/dbz.rb
zetabot-2.1.1 lib/Zeta/plugins/dbz.rb
zetabot-2.1.0 lib/Zeta/plugins/dbz.rb
zetabot-2.0.9 lib/Zeta/plugins/dbz.rb
zetabot-2.0.8 lib/Zeta/plugins/dbz.rb
zetabot-2.0.7 lib/Zeta/plugins/dbz.rb
zetabot-2.0.6 lib/Zeta/plugins/dbz.rb
zetabot-2.0.5 lib/Zeta/plugins/dbz.rb
zetabot-2.0.4 lib/Zeta/plugins/dbz.rb
zetabot-2.0.3 lib/Zeta/plugins/dbz.rb
zetabot-2.0.2 lib/Zeta/plugins/dbz.rb
zetabot-2.0.1 lib/Zeta/plugins/dbz.rb
zetabot-2.0.0 lib/Zeta/plugins/dbz.rb
zetabot-1.1.0 lib/Zeta/plugins/dbz.rb
zetabot-1.0.7 lib/Zeta/plugins/dbz.rb
zetabot-1.0.6 lib/Zeta/plugins/dbz.rb
zetabot-1.0.5 lib/Zeta/plugins/dbz.rb
zetabot-1.0.4 lib/Zeta/plugins/dbz.rb
zetabot-1.0.3 lib/Zeta/plugins/dbz.rb
zetabot-1.0.2 lib/Zeta/plugins/dbz.rb