Created
January 13, 2012 07:12
-
-
Save ryanlowdermilk/1604975 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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