// 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.FunnyPlugins
{
public class SotdCommand : ICommand
{
public string Command
{
get { return "sotd"; }
}
public string Name
{
get { return "sotd"; }
}
public bool Watcher
{
get { return true; }
}
public void Switch(DateTime.Now.DayOfTheWeek)
{
case 0 (DateTime.Now.DayOfWeek = "Monday")
IrcClient.PrivateMessage("The Sub of the day is: Ham and Stuff - Price: £1.99 (6')");
break;
case 1 (DateTime.Now.DayOfWeek = "Tuesday")
IrcClient.PrivateMessage("The Sub of the day is: Meatball Marinara - Price: £1.99 (6')");
break;
case 2 (DateTime.Now.DayOfWeek = "Wednesday")
IrcClient.PrivateMessage("The Sub of the day is: More Ham and Stuff - Price: £1.99 (6')");
break;
case 3 (DateTime.Now.DayOfWeek = "Thursday")
IrcClient.PrivateMessage("The Sub of the day is: Some Steaky Thing - Price: £1.99 (6')");
break;
case 4 (DateTime.Now.DayOfWeek = "Friday")
IrcClient.PrivateMessage("The Sub of the day is: Looks like Chicken (I think) - Price: £1.99 (6')");
break;
case 5 (DateTime.Now.DayOfWeek = "Saturday")
IrcClient.PrivateMessage("The Sub of the day is: Not Sure - Price: £1.99 (6')");
break;
case 6 (DateTime.Now.DayOfWeek = "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;
}
}
}