Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 cinch-last_seen.gemspec
README.md

Last seen plugin

This plugin provides the traditional last seen functionality for Cinch bots.

Installation

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

Then load it in your bot: require "cinch" require "cinch/plugins/last_seen"

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

bot.start

Commands

!seen

This checks if and when someone was last seen. The plugin will either respond with the time, channel and message or state that it has never seen the person before.

Options

:channels

:include

Specify a list of channels the bot should log messages for. If this option is set, :exclude will be ignored.

:exclude

Specify a list of channels the bot should not log messages for. All other channels will be logged.

A note

If neither :include nor :exclude are set, all channels will be logged.

Example configuration

# ...
configure do |c|
  # only log messages for #cinch-bots
  c.plugins.options[Cinch::Plugins::LastSeen][:channels] = {:include => ["#cinch-bots"]}
end
Something went wrong with that request. Please try again.