šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

cinch-basic_ctcp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cinch-basic_ctcp

1.1.1
Rubygems
Version published
Maintainers
1
Created
Source

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

:replies

This option is a hash table of custom responses to VERSION, SOURCE, and CLIENTINFO.

Example configuration

configure do |c|
  # send custom CTCP VERSION response
  c.plugins.options[Cinch::Plugins::BasicCTCP][:replies] = {
    :version => 'My robot v1.0'
  }
end

FAQs

Package last updated on 22 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts