// DateCommand.cs created with MonoDevelop
// User: damien at 20:08 27/09/2007
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
using DigitalNetworks.Irc.Bot.Common;
namespace DigitalNetworks.Irc.Bot
{
public class SotdCommand : ICommand
{
public string Command
{
get { return "sotd"; }
}
public string Name
{
get { return "sotd"; }
}
public bool Watcher
{
get { return true; }
}
public void Process(string line)
{
switch(DateTime.Now.DayOfTheWeek)
{
case Monday
IrcClient.PrivateMessage("The Sub of the day is: Ham and Stuff - Price: £1.99 (6')");
break;
case Tuesday
IrcClient.PrivateMessage("The Sub of the day is: Meatball Marinara - Price: £1.99 (6')");
break;
case Wednesday
IrcClient.PrivateMessage("The Sub of the day is: More Ham and Stuff - Price: £1.99 (6')");
break;
case Thursday
IrcClient.PrivateMessage("The Sub of the day is: Some Steaky Thing - Price: £1.99 (6')");
break;
case Friday
IrcClient.PrivateMessage("The Sub of the day is: Looks like Chicken (I think) - Price: £1.99 (6')");
break;
case Saturday
IrcClient.PrivateMessage("The Sub of the day is: Not Sure - Price: £1.99 (6')");
break;
case Sunday
IrcClient.PrivateMessage("The Sub of the day is: Could be Chicken and Bacon - Price: £1.99 (6')");
}
}
public void ProcessWatch(string line)
{
}
public string GetHelp()
{
return string.Empty;
}
}
}