// SubCommand.cs created with MonoDevelop
// User: rik at 20:08 06/10/2007
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
using Roboter.Common;
namespace Roboter.Plugins.Fun
{
public class SubCommand : ICommand
{
public string Command
{
get { return "sub"; }
}
public string Name
{
get { return "Sub"; }
}
public bool Watcher
{
get { return true; }
}
public void Process(string line)
{
}
public void Day2Day()
{
string day = "";
day = Helper.GetParameters(line);
if (day == "Monday" || day == "monday")
System.Threading.Thread.Sleep(500);
IrcClient.PrivateMessage("Mondays Sub of the Day is: Ham and Stuff");
}
public void SuboftheDay()
{
switch(DateTime.Now.DayOfWeek)
{
case DayOfWeek.Monday:
IrcClient.PrivateMessage("The Sub of the day is: Ham and Stuff - Price: £1.99 (6\")");
break;
case DayOfWeek.Tuesday:
IrcClient.PrivateMessage("The Sub of the day is: Meatball Marinara - Price: £1.99 (6\")");
break;
case DayOfWeek.Wednesday:
IrcClient.PrivateMessage("The Sub of the day is: More Ham and Stuff - Price: £1.99 (6\")");
break;
case DayOfWeek.Thursday:
IrcClient.PrivateMessage("The Sub of the day is: Some Steaky Thing - Price: £1.99 (6\")");
break;
case DayOfWeek.Friday:
IrcClient.PrivateMessage("The Sub of the day is: Looks like Chicken (I think) - Price: £1.99 (6\")");
break;
case DayOfWeek.Saturday:
IrcClient.PrivateMessage("The Sub of the day is: Not Sure - Price: £1.99 (6\")");
break;
case DayOfWeek.Sunday:
IrcClient.PrivateMessage("The Sub of the day is: Could be Chicken and Bacon - Price: £1.99 (6\")");
break;
}
}
public void ProcessWatch(string line)
{
}
public string GetHelp()
{
return string.Empty;
}
}
}