All pastes #763724 Raw Edit

Something

public text v1 · immutable
·published 2007-11-06 18:17 UTC
rendered paste body
// 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 DateCommand : ICommand
	{
		public string Command
		{
			get { return "sotd"; }
		}
		
		public string Name
		{
			get { return "sotd"; }
		}
		
		public bool Watcher
		{
			get { return true; }
		}
		
		public void Process(string line)
		{
			if (DateTime.Now = "Monday")
				IrcClient.PrivateMessage("The Sub of the day is: Ham and Stuff - Price: £1.99 (6')");
			
			if (DateTime.Now = "Tuesday")
				IrcClient.PrivateMessage("The Sub of the day is: Meatball Marinara - Price: £1.99 (6')");			

			if (DateTime.Now = "Wednesday")
				IrcClient.PrivateMessage("The Sub of the day is: More Ham and Stuff - Price: £1.99 (6')");
			
			if (DateTime.Now = "Thursday")
				IrcClient.PrivateMessage("The Sub of the day is: Some Steaky Thing - Price: £1.99 (6')");
			
			if (DateTime.Now = "Friday")
				IrcClient.PrivateMessage("The Sub of the day is: Looks like Chicken (I think) - Price: £1.99 (6')");
			
			if (DateTime.Now = "Saturday")
				IrcClient.PrivateMessage("The Sub of the day is: Not Sure - Price: £1.99 (6')");
			
			if (DateTime.Now = "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;
		}
	}
}