Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cinch-yaml-keywords

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cinch-yaml-keywords

  • 1.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Cinch YAML keywords plugin

A Cinch plugin to define keywords and display description when keyword matches, keywords are saved in yaml file for persistence.

Installation

First install the gem by running:

gem install cinch-yaml-keywords

Then load it in your bot:

require "cinch"
require "cinch/plugins/yamlkeywords"

bot = Cinch::Bot.new do
  configure do |c|
    c.plugins.plugins = [Cinch::Plugins::YamlKeywords]
  end
end

bot.start

Commands

!keywords                         # list all definitions
!keyword? <keyword>               # show single definition
!keyword  <keyword>  <definition> # define without spaces
!keyword '<keyword>' <definition> # define with spaces
!keyword "<keyword>" <definition> # define with spaces
!forget   <keyword>               # remove definition
<keyword>                         # display definition

Example

<mpapis>: !keyword 'gist it' Please use https://gist.github.com for anything longer then 2 lines of text.
<user8549586> I get error 4838948: fkjfdlg
<mpapis>: gist it all so I can see the context
<smfbot>: Please use https://gist.github.com for anything longer then 2 lines of text.

Development

Run the ./test-run.sh script to play with results of your changes in channel listed in example/config.yaml

FAQs

Package last updated on 20 Dec 2013

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc