Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

Handler for lita bot for interacting with uptimerobot service

License

Notifications You must be signed in to change notification settings

civichacker/lita-uptimerobot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lita-uptimerobot Gem Version

lita-uptimerobot is a handler for Lita that gives your bot commands for retrieving monitor statuses and uptime ratios from uptimerobot.com

Installation

Add lita-uptimerobot to your Lita instance's Gemfile:

gem "lita-uptimerobot"

Configuration

Required attributes

  • api_key (String) – Your master API key from your uptimerobot.com dashboard.

Example

Lita.configure do |config|
    config.handlers.uptimerobot.api_key= ENV["UPTIME_API_KEY"]
end

Usage

Commands are called in the with the uptime prefix what can be optionally with the upt abbreviation. There's no need to prefix the command with your bot name.

uptime mysite (displays uptime and status for a monitor that matches)
upt all (displays uptime and statuses for all configured monitors)
upt example.com 15d (displays status and uptime for example.com where uptime is averaged over 15 days)

License

MIT

About

Handler for lita bot for interacting with uptimerobot service

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages