Sha256: 69ca98288045d5552234a7321f98f9d3c1e5d1523bf1194e69c5a48241eaa180
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
require 'rest-client' module Lita module Handlers class OnewheelNasaApod < Handler route(/cosmos/i, :handle_cosmos, help: { 'cosmos' => 'Get today\'s NASA APOD image.'}) route(/Good morning./, :handle_cosmos) def handle_cosmos(response) response.reply RestClient::get('https://kpp0tmzh76.execute-api.us-west-2.amazonaws.com/prod/nasaapod') end end Lita.register_handler(OnewheelNasaApod) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lita-onewheel-nasa-apod-0.0.0 | lib/lita/handlers/onewheel_nasa_apod.rb |