Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Merge pull request #1 from mpapis/master

fix displaying `require`'s in example
latest commit b3130dbcda
Dominik Honnef dominikh authored
Failed to load latest commit information.
lib/cinch/plugins
LICENSE
README.md
cinch-basic_ctcp.gemspec

README.md

Basic CTCP plugin

This plugin implements replies for the following CTCP commands:

  • CLIENTINFO
  • PING
  • SOURCE
  • TIME
  • VERSION

Installation

First install the gem by running: [sudo] gem install cinch-basic_ctcp

Then load it in your bot:

require "cinch"
require "cinch/plugins/basic_ctcp"

bot = Cinch::Bot.new do
  configure do |c|
    # add all required options here
    c.plugins.plugins = [Cinch::Plugins::BasicCTCP] # optionally add more plugins
  end
end

bot.start

Commands

None.

Options

:commands

If this option is set, the plugin will only reply to commands which are listed in this option.

Example configuration

configure do |c|
  # only reply to VERSION and TIME
  c.plugins.options[Cinch::Plugins::BasicCTCP][:commands] = [:version, :time]
end
Something went wrong with that request. Please try again.