from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
import GlobalVars

class Instantiate(Function):
	Help = "nope, donotwant, yes, yup, store, goat, stupid, fixyou, heya, HNGH, PS, whoa, what, mybrand, both, no -- Used to post silly things!"
	
	def GetResponse(self, message):
		if message.Type != "PRIVMSG":
			return

		if message.Command == "nope":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=gvdf5n-zI14", message.ReplyTo)
			
		elif message.Command == "donotwant":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=oKI-tD0L18A", message.ReplyTo)
			
		elif message.Command == "yes":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=P3ALwKeSEYs", message.ReplyTo)
			
		elif message.Command == "store":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=iRZ2Sh5-XuM", message.ReplyTo)
			
		elif message.Command == "stupid":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=yytbDZrw1jc", message.ReplyTo)
		
		elif message.Command == "fixyou":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=oin0KNElSG0", message.ReplyTo)
		
		elif message.Command == "yup":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=K0QHw7iy1Rg", message.ReplyTo)
		
		elif message.Command == "heya":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=ZZ5LpwO-An4", message.ReplyTo)
		
		elif message.Command == "what":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=PDXrXBsTFSE", message.ReplyTo)
		
		elif message.Command == "goat":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=SIaFtAKnqBU", message.ReplyTo)
		
		elif message.Command == "mybrand":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=V-fRuoMIfpw", message.ReplyTo)
			
		elif message.Command == "whoa":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=6q-gHrEaEAs", message.ReplyTo)
		
		elif message.Command == "hngh":
			return IRCResponse(ResponseType.Say, "http://24.media.tumblr.com/tumblr_malzltlKk21rggqwfo1_500.gif", message.ReplyTo)
		
		elif message.Command == "ps" or message.Command == "psc":
			return IRCResponse(ResponseType.Say, "https://docs.google.com/document/d/1C4Maba3fXrLYMMIXK67OOn7C2c31V6nff5inGAZStsw/edit?pli=1", message.ReplyTo)
		
		elif message.Command == "both":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=OawrlVoQqSs", message.ReplyTo)
		
		elif message.Command == "no":
			return IRCResponse(ResponseType.Say, "http://www.youtube.com/watch?v=YKss2uYpih8", message.ReplyTo)
			
@@ -391,24 +391,32 @@
 sage.Command
+.lower()
  == %22nope%22:%0A
@@ -411,24 +411,24 @@
  == %22nope%22:%0A
-
 %09%09%09return IR
@@ -540,24 +540,32 @@
 sage.Command
+.lower()
  == %22donotwa
@@ -694,24 +694,32 @@
 sage.Command
+.lower()
  == %22yes%22:%0A%09
@@ -842,24 +842,32 @@
 sage.Command
+.lower()
  == %22store%22:
@@ -992,24 +992,32 @@
 sage.Command
+.lower()
  == %22stupid%22
@@ -1142,24 +1142,32 @@
 sage.Command
+.lower()
  == %22fixyou%22
@@ -1292,24 +1292,32 @@
 sage.Command
+.lower()
  == %22yup%22:%0A%09
@@ -1439,24 +1439,32 @@
 sage.Command
+.lower()
  == %22heya%22:%0A
@@ -1587,24 +1587,32 @@
 sage.Command
+.lower()
  == %22what%22:%0A
@@ -1735,24 +1735,32 @@
 sage.Command
+.lower()
  == %22goat%22:%0A
@@ -1883,24 +1883,32 @@
 sage.Command
+.lower()
  == %22mybrand
@@ -2035,24 +2035,32 @@
 sage.Command
+.lower()
  == %22whoa%22:%0A
@@ -2183,24 +2183,32 @@
 sage.Command
+.lower()
  == %22hngh%22:%0A
@@ -2350,24 +2350,32 @@
 sage.Command
+.lower()
  == %22ps%22 or 
@@ -2385,24 +2385,32 @@
 sage.Command
+.lower()
  == %22psc%22:%0A%09
@@ -2580,24 +2580,32 @@
 sage.Command
+.lower()
  == %22both%22:%0A
@@ -2702,32 +2702,32 @@
 age.ReplyTo)%0A%09%09%0A
-
 %09%09elif message.C
@@ -2732,16 +2732,24 @@
 .Command
+.lower()
  == %22no%22

Make everything ignore case