Skip to content

Instantly share code, notes, and snippets.

@ryanlowdermilk
Created January 13, 2012 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanlowdermilk/1604975 to your computer and use it in GitHub Desktop.
Save ryanlowdermilk/1604975 to your computer and use it in GitHub Desktop.
using System.Collections.Generic;
using Jabbot.CommandSprockets;
namespace WeatherSprocket
{
public class WeatherSprocket : CommandSprocket
{
public override IEnumerable<string> SupportedInitiators
{
get { yield return "weather"; }
}
public override IEnumerable<string> SupportedCommands
{
get { yield return "93063"; }
}
public override bool ExecuteCommand()
{
Bot.Say("Temp: 64F", Message.Receiver);
return true;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment