No commit activity in last 3 years
No release in over 3 years
A "last seen" plugin for the Cinch framework
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 1.0
~> 2.2.2
 Project Readme

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