SHARE
TWEET

Old python garbage

GoldLeej Feb 26th, 2015 (edited) 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ##########################################################
  2. # python imports
  3. ##########################################################
  4. import ch,random, sys, os, re, cgi ,traceback, time, urllib, datetime, binascii, json, cmds, pdb
  5. from access import access as access
  6. ###########################################################
  7. #ENDS HERE
  8. ###########################################################
  9. ###########################################################
  10. #VARS
  11. ###########################################################
  12. lockdown = False
  13. ##################
  14. ##################
  15. # TIMER STUFF #
  16. startTime = time.time()
  17. ###############
  18. #STATUS
  19. #######
  20. filename = "status.txt"
  21. file = open(filename, 'w')
  22. print("[INF]Setting status to online...")
  23. time.sleep(2)
  24. file.write("Awake")
  25. file.close()
  26. locks = []
  27. f = open("locks.txt", "r") # read-only
  28. print("\033[96m[INF]\033[0mLoading Locked Rooms...")
  29. for name in f.readlines():
  30.     if len(name.strip())>0: locks.append(name.strip())
  31. f.close()
  32. pms = []
  33. f = open("pms.txt", "r") # read-only
  34. print("\033[96m[INF]\033[0mLoading PMs...")
  35. for message in f.readlines():
  36.     if len(name.strip())>0: pms.append(message.strip())
  37. f.close()
  38. rooms = []
  39. f = open("rooms.txt", "r") # read-only
  40. for name in f.readlines():
  41.     if len(name.strip())>0: rooms.append(name.strip())
  42. print("\033[96m[INF]\033[0mLoading Rooms ... %s" % len(rooms))
  43. f.close()
  44. errors = []
  45. f = open("errors.txt", "r") # read-only
  46. for name in f.readlines():
  47.     if len(name.strip())>0: errors.append(name.strip())
  48. print("\033[96m[INF]\033[0mLoading errors ... %s" % len(errors))
  49. f.close()
  50. badrooms = []
  51. f = open("badrooms.txt", "r") # read-only
  52. for name in f.readlines():
  53.     if len(name.strip())>0: badrooms.append(name.strip())
  54. print("\033[96m[INF]\033[0mLoading Bad Rooms ... %s" % len(badrooms))
  55. f.close()
  56. #definitions
  57. dictionary = dict() #volatile... of course...
  58. f = open("definitions.txt", "r") # read-only
  59. print("[INF]Loading Definitions...")
  60. time.sleep(1)
  61. for line in f.readlines():
  62.     try:
  63.         if len(line.strip())>0:
  64.             word, definition, name = json.loads(line.strip())
  65.             dictionary[word] = json.dumps([definition, name])
  66.     except:
  67.         print("[ERR]Cant load definition: %s" % line)
  68. f.close()
  69. ###########################################################
  70. ## Thu 14 Apr 2011 00:05:52 BST
  71. ###########################################################
  72. from cmds import hexc as hexc1
  73. from xml.etree import cElementTree as ET
  74. if sys.version_info[0] > 2:
  75.     import urllib.request as urlreq
  76. else:
  77.     import urllib2 as urlreq
  78.  
  79.  
  80. activated = True # Disabled on default
  81. prefix = "." # command prefix for some commands
  82. def getUptime():
  83.      total_seconds = float(time.time() - startTime)
  84.  
  85.      # HelpBLACKLISTer vars:
  86.      MINUTE  = 60
  87.      HOUR    = MINUTE * 60
  88.      DAY     = HOUR * 24
  89.  
  90.      # Get the days, hours, etc:
  91.      days    = int( total_seconds / DAY )
  92.      hours   = int( ( total_seconds % DAY ) / HOUR )
  93.      minutes = int( ( total_seconds % HOUR ) / MINUTE )
  94.      seconds = int( total_seconds % MINUTE )
  95.  
  96.      # Build up the pretty string (like this: "N days, N hours, N minutes, N seconds")
  97.      string = ""
  98.      if days > 0:
  99.          string += str(days) + " " + (days == 1 and "day" or "days" ) + ", "
  100.      if len(string) > 0 or hours > 0:
  101.          string += str(hours) + " " + (hours == 1 and "hour" or "hours" ) + ", "
  102.      if len(string) > 0 or minutes > 0:
  103.          string += str(minutes) + " " + (minutes == 1 and "minute" or "minutes" ) + ", "
  104.      string += str(seconds) + " " + (seconds == 1 and "second" or "seconds" )
  105.  
  106.      return string;
  107. class TestBot(ch.RoomManager):
  108.     def onInit(self):
  109.         self.setNameColor("cccccc")
  110.         self.setFontColor("b7a8e7")
  111.         self.setFontFace("Arial")
  112.         self.setFontSize(12)
  113.         self.enableBg()
  114.         self.disableRecording()
  115.     def onPMMessage(self, pm, user, message):
  116.         pm.message(user, "I'm a bot, this is my only reply. My owner see all my PMs. I have no PM commands.") #hehe... echo :3
  117.         message.replace('>','&gt;').replace("<","&lt;")
  118.         self.getRoom("Taivas-On-Auki").message("PM from %s as follows:" % user.name.title() + message)
  119.         pms.append((time.strftime("[%d/%m/%y- %H:%M:%S]", time.localtime(time.time())))+" "+(user.name.title())+" "+(message))
  120.         f = open ("pms.txt", "w")
  121.         f.write("\n".join(pms))
  122.         f.close()  
  123.     def getAccess(self, user):
  124.         return access.get(user)[1]
  125.    
  126.     def onConnect(self, room):
  127.         print("\033[96m[INF]\033[0m \033[44;1;33m[Connected to %s]\033[0m" % room.name)
  128.     def onReconnect(self, room):
  129.         print("\033[96m[INF]\033[0m Reconnected to %s" % room.name)
  130.     def onConnectFail(self, room):
  131.         print("\033[96m[INF]\033[0m Failed to connect to %s" % room.name)
  132.     def onDisconnect(self, room):
  133.         print("\033[96m[INF]\033[0m \033[44;1;33m[Disconnected from %s]\033[0m " % room.name)
  134.     def onJoin(self, room, user):
  135.             if lockdown: return  
  136.     def onFloodWarning(self, room):
  137.         room.reconnect()
  138.     def onBan(self, room, user, target):
  139.         self.getRoom("Taivas-On-Auki").message("%s banned by %s in %s" % (target.name, user.name, room.name))
  140.     def onUnban(self, room, user, target):
  141.         self.getRoom("Taivas-On-Auki").message("%s unbanned by %s in %s" % (target.name, user.name, room.name))
  142.     def onMessage(self, room, user, message):
  143.         global activated
  144.         global lockdown
  145.         mgr = self
  146.     def onMessage(self, room, user, message):
  147.         # make global (if they will be changed in commands)
  148.         global activated
  149.         global lockdown
  150.         ## print to console
  151.         if room.getLevel(self.user) > 1: # if bot is mod
  152.                 print("\033[44;0;31m[%s][MSG][LVL %s][%s]\033[0m\033[1;33m[%s][%s]\033[0m\033[1;34m[%s:\033[0m \033[1;33m%s]\033[0m" % (time.strftime("%d/%m/%y- %H:%M:%S",
  153.         time.localtime(time.time())), self.getAccess(user.name), room.name,message.unid, message.ip, user.name.title(), message.body)) # with ip
  154.         else:
  155.             print("\033[44;0;31m[%s][MSG][LVL %s][%s]\033[0m \033[1;34m[%s: \033[0m\033[1;33m%s]\033[0m" % (time.strftime("%d/%m/%y- %H:%M:%S", time.localtime(time.time())),
  156. self.getAccess(user.name), room.name, user.name.title(), message.body)) # with ip # without ip
  157.         if self.user == user: return # ignore self
  158.         if user.name[0] == "!": return
  159.         if user.name[0] == "#": return
  160.         if int(self.getAccess(user.name)) < 4 and room.name in locks: return
  161.         #split message into command and args
  162.         data = message.body.split(" ", 1)
  163.         if len(data) > 1:
  164.             cmd, args = data[0], data[1] # if command and args
  165.         else:
  166.             cmd, args  = data[0], ""# if command and no args
  167.         # implied command?
  168.         if len(cmd) > 0:
  169.             if cmd[0].lower() == prefix.lower():
  170.                 used_prefix = True
  171.                 cmd = cmd[1:].lower()
  172.             else: used_prefix = False
  173.         else: return
  174.         #BOT CALL INGORE CASE
  175.  
  176.         # call bot name, activate if deactivated (bot)
  177.         if cmd.upper() == room.user.name.upper() and len(args) == 0:# IGNORES CASE NOW
  178.             if not activated and self.getAccess(user.name) < 2: return
  179.             if self.getAccess(user.name) == 0:
  180.                 room.message("Hello %s, you need to use .help to use me. <br/>" % user.name.title(), True)
  181.             else:
  182.                 responce = ["Touch me at the risk of your health!", "A wild Muk has appeared. o.o", "Hmm? ^^", "Hmmph? ^^", "Yus, " + user.name.title() + "? o.o", "" + user.name.title() + " I wasn't sleeping o.o", "Whats up " + user.name.title() + "? ^^", "" + user.name.title() + " are you taken? ;D", "" + user.name.title() + " I..I think I love you. o.o", "Yes, " + user.name.title() + "? ^^", "" + user.name.title() + " ^^", "" + user.name.title() + " I'm gonna catch you. o.o", "" + user.name.title() + " what do you want? ^^", "" + user.name.title() + " how can I help you? ^^", "" + user.name.title() + " what would you like? ^^", "Yus? ^^", "(: hmm?", "Muk at your service. ^^", "MUK O.O", "Muk, Muk ^^", "Muk? o.O", "What the Muk do you want? >.> tehe ^^", "Muk muk o.o", "Muk ^^"]
  183.                 room.message(random.choice(responce), True)
  184.                 activated = True
  185.         # call bot name with command after
  186.         elif cmd.upper() == room.user.name.upper() and len(args) != 0:# IGNORES CASE NOW
  187.             activated = True
  188.             used_prefix = True
  189.             data = args.split(" ", 1)
  190.             if len(data) > 1:
  191.                 cmd, args = data[0], data[1] # if command and args
  192.             else:
  193.                 cmd, args  = data[0], "" # if command and no args
  194.  
  195.         # not activated, no commands
  196.         if not activated: return
  197.  
  198.         ####
  199.         #Eval, Restart blah blah
  200.         ####    
  201.         #eval
  202.         elif used_prefix and cmd == "eval" and int(self.getAccess(user.name)) >= 6: # Owners only
  203.             try:
  204.                 ret = eval(args)
  205.                 room.message(str(repr(ret)+" :| "))
  206.             except Exception as e:
  207.                 room.message("So here's your issue.. -> %s" % e)
  208.         # Uptime
  209.         elif used_prefix and cmd == "ut":
  210.             try:
  211.                 if self.getAccess(user.name) >=5:
  212.                     room.message("I have been running for : %s, and no, i'm not tired." % (getUptime()))
  213.                 else:
  214.                     return None
  215.             except:
  216.                 return None
  217.         elif used_prefix and cmd == "ss":
  218.             try:
  219.                 if self.getAccess(user.name) >=5:
  220.                     uptime = os.popen("uptime").read().strip()
  221.                     room.message("Muk collected this data.. %s" % (uptime))
  222.                 else:
  223.                     return None
  224.             except:
  225.                 return None
  226.         #shutdown#
  227.         elif cmd == "Return" or cmd == "return" or cmd == "endgame":
  228.             if self.getAccess(user.name)<7:
  229.                 self.getRoom("Taivas-On-Auki").message("%s tried to restart me in %s"% (user.name.title(), room.name.title()), True)
  230.                 room.message(":@ Muk doesn't like you enough to return to YOUR pokeball. //ignore.")
  231.             if self.getAccess(user.name) >= 7:
  232.                 room.message("*pops back into %s's pokeball* Be back soon. ^^" % user.name.title(), True)
  233.                 self.getRoom("Taivas-On-Auki").message("%s restarted me from %s" % (user.name.title(), room.name.title()), True)
  234.                 self.setTimeout(1, self.stop)
  235.             else:
  236.                 return
  237.  
  238.         # lockdown
  239.         elif (used_prefix and cmd == "disable" or used_prefix and cmd == "Disable"):
  240.             try:
  241.                 if room.name in locks: room.message("Muk is already disabled. o.o")
  242.                 else:
  243.                     if self.getAccess(user.name) >=6:
  244.                         locks.append(room.name)
  245.                         self.getRoom("Taivas-On-Auki").message("%s locked me in %s" % (user.name.title(), room.name.replace('cinnamon-candycanes','Hidden')), True)
  246.                         room.message("<b>%s</b> I am now <b><u>Disabled</b></u> for this room... :( " % user.name, True)
  247.                         print("\033[96m[SAV]\033[0m Saving Locked Rooms..")
  248.                         f = open("locks.txt", "w")
  249.                         f.write("\n".join(locks))
  250.                         f.close()
  251.                     else:
  252.                         room.message("No.")
  253.             except:
  254.                 room.message("Error occurred...")
  255.         # lockdown off
  256.         elif (used_prefix and cmd == "enable" or used_prefix and cmd == "Enable"):
  257.             if self.getAccess(user.name) >=6:
  258.                 locks.remove(room.name)
  259.                 self.getRoom("Taivas-On-Auki").message("%s Unlocked me in %s" % (user.name.title(), room.name.replace('cinnamon-candycanes','Hidden')), True)
  260.                 room.message("<b>%s</b> ^^ I'm <b><u>Enabled</u></b> again!" % user.name, True)
  261.                 print("\033[96m[SAV]\033[0m Saving Locked Rooms..")
  262.                 f = open("locks.txt", "w")
  263.                 f.write("\n".join(locks))
  264.                 f.close()
  265.             else:
  266.                 room.message("No.")
  267.         elif cmd == "global" and self.getAccess(user.name) >= 6:
  268.             try:
  269.                 for room in self.getRooms():
  270.                     room.message("Global message from " + user.name.title() +" as follows: " + args, True)
  271.             except:
  272.                 return None
  273.         elif cmd == "hglobe" and self.getAccess(user.name) >= 6:
  274.             try:
  275.                 for room in self.getRooms():
  276.                     room.message(args)
  277.             except:
  278.                 return None
  279.  
  280.         #target
  281.         elif used_prefix and cmd == "target":
  282.             try:
  283.                 if self.getAccess(user.name) >=1:
  284.                     room.message(random.choice(["Muk uses Sludge Wave and hits "+ random.choice(room.usernames)+ ", they are now dead! x_x", "Muk uses Mud-Slap and hits "+ random.choice(room.usernames)+ " , they lived! ^^", "Muk uses Mud-Slap and hits "+ random.choice(room.usernames)+ ", they are now dead! x_x", "Muk uses Sludge Wave and hits "+ random.choice(room.usernames)+ ", they lived! ^^", "Muk uses Poison Jab and hits "+ random.choice(room.usernames)+ ", they lived! ^^", "Muk uses Poison Jab and hits "+ random.choice(room.usernames)+ ", they are now dead! x_x", True]))
  285.                 else:
  286.                     return None
  287.             except:
  288.                 return None
  289.         elif used_prefix and cmd == "trigger":
  290.             try:
  291.                 if self.getAccess(user.name) >=1:
  292.                     room.message(random.choice(["" + user.name.title() + " pulls the trigger, they live. ^^", "" + user.name.title() + "  pulls the trigger, they die. x_x"]))
  293.                 else:
  294.                     return None
  295.             except:
  296.                 return None
  297.         elif used_prefix and cmd == "rr":
  298.             try:
  299.                 if self.getAccess(user.name) >=1:
  300.                     room.message(random.choice(["" + user.name.title() + " points the gun at " + random.choice(room.usernames)+ " and pulls the trigger, they live. ^^", "" + user.name.title() + " points the gun at " + random.choice(room.usernames)+ " and pulls the trigger, they die. x_x"]))
  301.                 else:
  302.                     return None
  303.             except:
  304.                 return None
  305.         #spb
  306.         elif cmd == "blast":
  307.             try:
  308.                 if self.getAccess(user.name) >=1:
  309.                     room.message(random.choice(["<b>" + user.name.title() + "</b> throws a Ki Blast and it hits " + random.choice(room.usernames)+ " -BOOM!- They die. >.>", "<b>" + user.name.title() + "</b> charges up a kamehameha and blasts it at <b>" + random.choice(room.usernames)+ "</b>, they live. o.o", "<b>" + user.name.title() + "</b> charges up a kamehameha and blasts it at <b>" + random.choice(room.usernames)+ "</b>, they die! x_x", "<b>" + user.name.title() + "</b> charges up their special beam cannon and fires at <b>" + random.choice(room.usernames)+ "</b> they die.", "<b>" + user.name.title() + "</b> charges up their special beam cannon and fires at <b>%s</b> they live.", True]))
  310.                 else:
  311.                     return None
  312.             except:
  313.                 return None
  314.         #tm45
  315.         elif cmd == "TM45":
  316.             try:
  317.                 if self.getAccess(user.name) >=1:
  318.                     room.message(random.choice(["/Attracts ;) Hey sexy!", "Hey "+ random.choice(room.usernames)+ ", ever been with a Muk? ;D", ""+ random.choice(room.usernames)+ ", are you against Poke-Human relations? :|", ""+ random.choice(room.usernames)+ " you're beautiful ;D", ""+ random.choice(room.usernames)+ ", *h* ;D", True]))
  319.                 else:
  320.                     return None
  321.             except:
  322.                 return None
  323.         #tickle
  324.         elif cmd == "/tickles" or cmd == "/Tickles":
  325.             try:
  326.                 if self.getAccess(user.name) >=1:            
  327.                     room.message(random.choice([""+ user.name.title() +" go tickle " + random.choice(room.usernames)+ " instead! :(", "Tehee! ^^", "Muk used Poison Touch on "+ user.name.title() +". Don't tickle me! :@", "" + random.choice(room.usernames)+ " save meee! D:" , True]))
  328.                 else:
  329.                     return None
  330.             except:
  331.                 return None          
  332.         #hate
  333.         elif used_prefix and cmd == "hate":
  334.             try:
  335.                 if self.getAccess(user.name) >=1:
  336.                     room.message(random.choice([""+ random.choice(room.usernames)+ " I hate you. :|", ""+ random.choice(room.usernames)+ " you're almost as bad as "+ random.choice(room.usernames)+ ". >.>", ""+ random.choice(room.usernames)+ " I hate you more than I hate "+ random.choice(room.usernames)+ ".", ""+ random.choice(room.usernames)+ " are you gay? :|", ""+ random.choice(room.usernames)+ " you're nasty. :|", True]))
  337.                 else:
  338.                     return None
  339.             except:
  340.                 return None
  341.                        
  342.         #FindLove
  343.         elif used_prefix and cmd == "findlove":
  344.             try:
  345.                 if self.getAccess(user.name) >=1:
  346.                     room.message(random.choice([""+ random.choice(room.usernames)+ " :x I love you  ;D", ""+ random.choice(room.usernames)+ " you're sexy. ^^", ""+ random.choice(room.usernames)+ " I love you! ^^", "(o_o "+ random.choice(room.usernames)+ " you're my favorite", ""+ random.choice(room.usernames)+ " ayyee baby. ;D", ""+ random.choice(room.usernames)+ " I don't like you. o.o", ""+ random.choice(room.usernames)+ " *h*", True]))
  347.                 else:
  348.                     return None
  349.             except:
  350.                 return None
  351.         #FindPrey
  352.         elif used_prefix and cmd == "findprey":
  353.             try:
  354.                 if self.getAccess(user.name) >=1:
  355.                     room.message(random.choice([""+ random.choice(room.usernames)+ " let's go have some fun. ;D", ""+ random.choice(room.usernames)+ " ever been with a Muk? ;)", ""+ random.choice(room.usernames)+ " isn't my type. :|", ""+ random.choice(room.usernames)+ " wanna go to a private chat? ;D", ""+ random.choice(room.usernames)+ " aye babby ;)", ""+ random.choice(room.usernames)+ " you're exactly my type. ;)", ""+ random.choice(room.usernames)+ " you so sexxyy!! ;)", "Daamn "+ random.choice(room.usernames)+ "! Holla at a Pokemon! ;D", True]))
  356.                 else:
  357.                     return None
  358.             except:
  359.                 return None                                        
  360.         #Dice
  361.         elif cmd == "rdie" or cmd == "dice":
  362.             try:
  363.                 if self.getAccess(user.name) >=1:
  364.                     room.message(random.choice(["ROLL %s", "-Waits- %s", "-Yawns- %s", "Pick a new game..%s", "I should be fighting.. %s", "You get a %s"]) % (random.randint(1,12)))
  365.                 else:
  366.                     return None
  367.             except:
  368.                 return None
  369.  
  370.         #Calculator
  371.         elif cmd == "calc" or cmd == "Calc" and self.getAccess(user.name) >= 2: # level 2+
  372.             try:
  373.                 ret = eval(args)
  374.                 room.message(str(repr(ret)+" is the answer ^^"))
  375.             except:
  376.                 room.message("No answer found. ^^")
  377.  
  378.  
  379.  
  380.         # hump
  381.         elif cmd =="/humps" or cmd == "/hump":
  382.             try:
  383.                 if self.getAccess(user.name) >=1:
  384.                     room.message(random.choice(["Oh bby. o.o", "Not again! D:", "" + user.name.title() + " what's poking me? o.o" , "Muk Muk ;D" , "You're more dirty then me. v.v", "RAPE! D:", "SOMEONE HELP!! v.v", ""+ user.name.title() +" stop it! v.v", ""+ user.name.title() +" everyone is watcing! v.v", ""+ user.name.title() +" I'd <i>Muk</i> you alllll night ;D"]), True)
  385.                 else:
  386.                     return None
  387.             except:
  388.                 return None
  389.         #riddle
  390.         elif used_prefix and cmd == "RiddleMe" or cmd == "riddleme" or cmd == "Riddle" or cmd == "riddle" or cmd == "Riddleme":
  391.             try:
  392.                 if self.getAccess(user.name) >=1:
  393.                     room.message(random.choice(["★-[Riddle 1: I am the beginning of the end, and the end of time and space. I am essential to creation, and I surround every place. What am I?]-★", "★-[Riddle 2: What always runs but never walks, often murmurs, never talks, has a bed but never sleeps, has a mouth but never eats?]-★", "★-[Riddle 3: I never was, am always to be. No one ever saw me, nor ever will. And yet I am the confidence of all, To live and breath on this terrestrial ball. What am I?]-★", "★-[Riddle 4: At night they come without being fetched. By  they are lost without being stolen. What are they?]-★", "★-[Riddle 5: What is in seasons, seconds, centuries and minutes but not in decades, years or days?]-★", "★-[Riddle 6: The more you have of it, the less you see. What is it?]-★", "★-[Riddle 7: I am always hungry, I must always be fed, the finger I touch, will soon turn red]-★", "★-[Riddle 8: I know a word of letters three. Add two, and fewer there will be]-★", "★-[Riddle 9: I have four wings, but cannot fly, I never laugh and never cry; On the same spot I'm always found, toiling away with little sound. What am I?]-★", "★-[Riddle 10: Something very extraordinary happened on the 6th of May, 1978 at thirty-four minutes past twelve a.m. What was it?]-★"]))
  394.                 else:
  395.                     return None
  396.             except:
  397.                 return None
  398.         #what room
  399.         elif used_prefix and cmd== "location":
  400.             try:
  401.                 if self.getAccess(user.name) >=1:
  402.                     room.message("<b>%s</b> this is %s" % (user.name.title(), room.name), True)
  403.                 else:
  404.                     return None
  405.             except:
  406.                 return None
  407.         #anger
  408.         elif cmd== ":@+50":
  409.             try:
  410.                 if self.getAccess(user.name) >=1:
  411.                     room.message("<b>%s</b> know what makes Muk that angry?! that <b>%s</b> chat!" % (user.name.title(), room.name), True)     
  412.                 else:
  413.                     return None
  414.             except:
  415.                 return None
  416.         #Muk
  417.         elif cmd == "Muk?" or cmd == "muk?":
  418.             try:
  419.                 if self.getAccess(user.name) >=1:
  420.                     room.message(random.choice(["Muk muk o.o", "MUK MUK ^^"]))
  421.                 else:
  422.                     return None
  423.             except:
  424.                 return None
  425.         #profile
  426.         elif (used_prefix and cmd == "Profile" or cmd == "profile")  and len(args) > 0:
  427.             try:
  428.                 if self.getAccess(user.name) >=1:
  429.                     room.message("Click for profile: <a href=\"http://%s.chatango.com/\" target=\"_blank\"><font color=\"#006699\"><b>%s</b> ^^" % (args, args), True)
  430.                 else:
  431.                     return None
  432.             except:
  433.                 return None
  434.  
  435.         # Pokedex
  436.         elif (used_prefix and cmd == "pdex" or cmd == "Pdex")  and len(args) > 0:
  437.             try:
  438.                 if self.getAccess(user.name) >=1:
  439.                     room.message("Data on <a href=\"http://bulbapedia.bulbagarden.net/wiki/%s\" target=\"_blank\"><font color=\"#006699\"><b>%s</b> ^^" % (args, args), True)
  440.                 else:
  441.                     return None
  442.             except:
  443.                 return None
  444.  
  445.         #pokedex
  446.         elif used_prefix and cmd== "mukf" or cmd == "mukf":
  447.             try:
  448.                 if self.getAccess(user.name) >=1:
  449.                     room.message(random.choice(["In the wild, Muk usually take charge of their family of Grimer and are very protective. ^^", "The toxicity of Muk's form has reached the point where a single drop of it can make an entire lake stagnant and rancid. ^^", "Muk's  footprints are toxic enough for a person to contract influenza if they are touched.  ^^", "Muk's infamous stench increases in the summertime, due to the toxic substances in its body intensifying. ^^", "Muks like warm and moist places. Groups of them accumulate in dirty places, such as garbage dumps or sewers. ^^", "Muk will eat anything that is already contaminated. ^^", "Ash's Muk is always trying to smother Prof. Oak. ^^", "Muk's can release poison as they see fit, therefor can hug humans. ^^", "Muk, Grimer's evolved form. Use extreme caution as its slimy form contains poison. ^^", "Muks are thickly covered with a filthy, vile sludge. It is so toxic, even its footprints contain poison. ^^", "Muk becomes indistinguishable if it hides in dirt. Touching its sludge-covered body causes horrible poisonings. ^^"]))
  450.                 else:
  451.                     return None
  452.             except:
  453.                 return None
  454.  
  455.         elif used_prefix and cmd == "rdf" or cmd == "undefine" and len(args) > 1:
  456.             word = args
  457.             if word in dictionary:
  458.                 definition, name = json.loads(dictionary[word])
  459.                 if name == user.name or self.getAccess(user.name) ==7:
  460.                     del dictionary[word]
  461.                     room.message(random.choice(["Muk removed it ^^","Muuuuuuu- _hmmm what was that word again o.o","^^ done it"]))
  462.                     print("[SAV] Saving Definitions..")
  463.                     f = open("definitions.txt", "w")
  464.                     for word in dictionary:
  465.                         definition, name = json.loads(dictionary[word])
  466.                         f.write(json.dumps([word, definition, name])+"\n")
  467.                     f.close()
  468.                     return
  469.                 else:
  470.                     room.message("<b>%s</b> only <b>Butterfly</b> or <b>Tyrant</b> or the person who defined this word can undefine it. " % user.name, True)
  471.         elif (used_prefix and cmd == "lvl"):
  472.             if len(args)< 1:
  473.                 name = user.name
  474.                 #out = "You"
  475.                 out = "You are"
  476.             else:
  477.                 name = args
  478.                 out = "%s is" % name.title()
  479.                
  480.             if access.get(name)[0] != None:
  481.                 ret = "<b>%s</b> level <b>%s</b> set by <b>%s</b>" % (out, access.get(name)[1], access.get(name)[2])
  482.             else:
  483.                 ret = "%s is level 0 which is how many people care for them too." % name.title()
  484.             room.message(ret, True)
  485.         elif (used_prefix and cmd =="rooms"):
  486.             try:
  487.                 if self.getAccess(user.name)>=1:
  488.                     room.message("I'm in %s rooms:<br/> <b>%s</b>" % (len(self.roomnames), ", ".join(sorted([room.name + "{"+ str(room.usercount)+"}" for room in self.getRooms()])).title().replace('Mrfaded', 'Austins ass').replace('Taivas-On-Auki', 'default').replace('Thewords', 'Default')), True)
  489.                     for rm in self.rooms:
  490.                         if rm.usercount < 3:
  491.                             self.setTimeout(1, self.leaveRoom, rm.name)
  492.                             rooms.remove(rm.name)
  493.                             f = open("rooms.txt", "w")
  494.                             f.write("\n".join(rooms))
  495.                             f.close()
  496.                 else:
  497.                     return None
  498.             except:
  499.                 return None                        
  500. # defines
  501.         elif used_prefix and (cmd == "define" or cmd == "def" or cmd == "df")  and len(args) > 1:
  502.             try:
  503.                 word, definition = args.split(" as", 1)
  504.                 word = word.lower()
  505.             except:
  506.                 word = args.split()[0].lower()
  507.                 definition = ""
  508.             if len(word.split()) > 1:
  509.                 room.message("error: no phrases")
  510.                 return
  511.             if len(definition) > 0: #if there's a colon somewhere
  512.                 if word in dictionary:
  513.                     room.message("<b>%s</b> as cute as you are, you can't do that, silly. ^-^" % user.name.title(), True)
  514.                 else:
  515.                     dictionary[word] = json.dumps([definition, user.name])
  516.                     room.message("<b>" + word.title() + ":</b><br/><font size='10'>" + definition + "</font> ", True)
  517.                     print("[SAV] Saving Definitions..")
  518.                     f = open("definitions.txt", "w")
  519.                     for word in dictionary:
  520.                         definition, name = json.loads(dictionary[word])
  521.                         f.write(json.dumps([word, definition, name])+"\n")
  522.                     f.close()
  523.  
  524.             else:
  525.                 if word in dictionary:
  526.                     definition, name = json.loads(dictionary[word])
  527.                     room.message("<b>" + word.title() + ":</b><br/><font size='10'>" + definition + "</font> "+ "<br/> -- <font color='#ffcc00'>" "<b>"+ name.title() + "</b></font>", True)
  528.                 else:
  529.                     room.message("<b>%s</b> %s hasn't been defined. Define it like so. .df %s as meaning." % (user.name,args, args), True)
  530.    
  531.  
  532.         ### Level System ####
  533.            
  534.         elif used_prefix and cmd == "set":
  535.             #if self.getAccess(user.name) < 4: return # temp fix  only level 4 + can do it :|
  536.             name, level = args.split(" ")
  537.             if not str(level) in ["-1","0", "1", "2", "3", "4", "5","6","7"]:
  538.                     room.message("%s isn't a valid level fool :|" % str(level))
  539.             if self.getAccess(user.name) == level and self.getAccess(user.name) < 3:
  540.                 room.message("Don't be stupid.... you cant promote %s as they have the same level as you :|" % name.title())
  541.             if self.getAccess(user.name) < int(level) and self.getAccess(user.name) < 3:
  542.                     room.message("Really nao.... not happening :|")
  543.             if self.getAccess(user.name) > 3:
  544.                 access.sacc(name, level, user.name)
  545.                 ret = "<b>%s</b> has been <b>granted</b> to level %s" % (name.title(), str(level))
  546.                 room.message(ret, True)
  547.             else:
  548.                 pass
  549.                 #room.message("You cant alter %s's level :|" % name.title())
  550.  
  551.         #####                                                
  552.         # join room
  553.         #####
  554.         elif (used_prefix and cmd == "takeover")  and len(args) > 0:
  555.             try:
  556.                 if len(args)>1:
  557.                     room.message("You're joining me wrong...")
  558.                     return
  559.                 if args in badrooms:
  560.                     room.message("No..the people there are mean :(")
  561.                     return
  562.                 if args in rooms:
  563.                     room.message("I'M ALREADY THERE YOU NEEDY CLINGY FUCK")
  564.                 else:
  565.                     if self.getAccess(user.name)>=1:
  566.                         if "http://" in args:
  567.                             room.message("Fu. Quit failing at trying to join me!")
  568.                             return None
  569.                         if ".chatango.com" in args:
  570.                             room.message("Fu. Quit failing at trying to join me!")
  571.                             return None
  572.                         if ".com" in args:
  573.                             room.message("Fu. Quit failing at trying to join me!")
  574.                         else:
  575.                             rooms.append(args)
  576.                             print("\033[96m[INF]\033[0m Joining %s..." % args.split()[0])
  577.                             self.joinRoom(args.split()[0])
  578.                             print("\033[96m[SAV]\033[0m Saving Rooms..")
  579.                             f = open("rooms.txt", "w")
  580.                             f.write("\n".join(rooms))
  581.                             f.close()
  582.                             room.message("I am there.")
  583.                             self.getRoom("taivas-on-auki").message("Room %s added by %s from %s" % (args, user.name.title(), room.name.replace('cinnamon-candycanes','Hidden')), True)
  584.                     else: room.message("You don't appear to have the proper rank to join me.. try using !help ")
  585.             except:
  586.                 room.message("Muk was unable to join the room. :( ")
  587.                 print("[ERR] Couldn't join room.")
  588.                 rooms.remove(args)
  589.                 print("\033[96m[SAV]\033[0m Saving Rooms...")
  590.                 f = open("rooms.txt","w")
  591.                 f.write("\n".join(rooms))
  592.                 f.close()
  593.         #####
  594.         #Don't stay!
  595.         #####
  596.         elif (used_prefix and cmd == "leave"):
  597.             try:
  598.                 if self.getAccess(user.name)>=3:
  599.                     do = args
  600.                     if do == "here":
  601.                             rn = room.name
  602.                             room.message("*waves* Muk is leaving now, bye.")
  603.                             self.getRoom("taivas-on-auki").message("Room %s removed by %s from %s" % ((args).replace("here", room.name), user.name, room.name.replace('cinnamon-candycanes','Hidden')), True)
  604.                             self.setTimeout(1, self.leaveRoom, rn)
  605.                             rooms.remove(rn)
  606.                             print("\033[96m[SAV]\033[0m Saving Rooms..")
  607.                             f = open("rooms.txt", "w")
  608.                             f.write("\n".join(rooms))
  609.                             f.close()
  610.                     else:
  611.                         r = args
  612.                         self.getRoom(r).message("*waves* Muk is leaving now, bye.")
  613.                         room.message("^^ Muk left.")
  614.                         self.getRoom("taivas-on-auki").message("Room %s removed by %s from %s" % (args, user.name, room.name.replace('cinnamon-candycanes','Hidden')), True)
  615.                         self.setTimeout(1, self.leaveRoom, r)
  616.                         rooms.remove(r)
  617.                         print("\033[96m[SAV]\033[0m Saving Rooms..")
  618.                         f = open("rooms.txt", "w")
  619.                         f.write("\n".join(rooms))
  620.                         f.close()
  621.                 else:
  622.                     room.message("^^ You're not trainer enough to remove Muk.")
  623.             except:
  624.                 return None
  625.         elif used_prefix and cmd == "help" or used_prefix and cmd == "Help":
  626.             try:
  627.                 name = user.name
  628.                 if self.getAccess(user.name)!= 0:
  629.                     room.message("<b>%s!</b> You're already whitelisted, you silly sally.. ^^" % user.name, True)
  630.                     return None
  631.                 else:
  632.                     if self.getAccess(user.name) == 0:
  633.                         level = 1
  634.                         access.sacc(name, level, "Muk")
  635.                         self.getRoom("taivas-on-auki").message("%s used the help command in %s and is now whitelisted" % (user.name.title(), room.name.replace('cinnamon-candycanes','Hidden')), True)
  636.                         room.message("<b>%s</b> You're now whitelisted.<br/> Please don't abuse." % user.name, True)
  637.                     else:
  638.                         return None
  639.             except:
  640.                 return None
  641.         elif used_prefix and cmd == "pm":
  642.             try:
  643.                 if self.getAccess(user.name) >= 3:
  644.                     nm, msg = args.split(" ",1)
  645.                     msg = msg.replace("<b>", "<B>").replace("<u>", "<U>").replace("<i>", "<I>").replace("</b>", "</B>").replace("</u>", "</U>").replace("</i>", "</I>").replace('>','&gt;').replace('<','&lt;')
  646.                     pm = self._pm
  647.                     pm.message(ch.User(nm), "%s told Muk to give you this..it's kind of..gooey.. sorry :(  ' %s '  " % (user.name.title(), msg))
  648.                     room.message("Message Successfully Delivered :| ")
  649.                 else:
  650.                     return None
  651.             except:
  652.                 return None
  653.         ##send to a room##
  654.         elif used_prefix and cmd == "send":
  655.             try:
  656.                 if self.getAccess(user.name) >=2:
  657.                     target, msg, = args.split(" ", 1)
  658.                     msg.replace('>','&gt;').replace('<','&lt;')
  659.                     self.getRoom(target).message("Message from <font color='#FFFFFF'><u>" + user.name.title() + "</u></font> as follows:<br/> <font size='14'>"  + msg + "</font>", True)                    
  660.                     room.message("I flung it with my cu-err..sludge... to %s, %s! :D!" % (target.title(), user.name), True)
  661.                 else:
  662.                     return None, None
  663.             except:
  664.                 return None
  665.         # :x
  666. #        elif cmd == "/hugs":
  667. #            if len(args) >= 2:
  668. #                if "Muk":
  669.                     room.message(random.choice([""+ user.name.title() +", I think "+ random.choice(room.usernames)+ " could use a hug. ^^", "" + user.name.title() + "s hug was super effective! ^^", "Ewww, get it off. D:", "" + user.name.title() + " I'm gonna poison touch you. >.>", "" + user.name.title() + " I don't swing that way. o.o", "*h* ^^", "Ew get it off! D:"]), True)
  670.        
  671.         #luffyew
  672.         elif (used_prefix and cmd == "ily" or cmd == "Ily" or cmd == "ilu" or cmd == "Ilu"):
  673.             room.message(random.choice([""+ user.name.title() +"'s love was super effective! ^^", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  674.  
  675.         # count
  676.         elif used_prefix and cmd == "count":
  677.             room.message("There is <font color=\"#660099\"><font size=\"12\"><b>" + str(room.usercount) +"</b></font></font> people in this chat.", True)
  678.  
  679.         elif cmd == "Somethinghere":
  680.             room.message("" + str(usercount) +"")
  681.            
  682.  
  683.         # give
  684.         elif used_prefix and cmd == "give" or cmd == "Give" and len(args) > 0:
  685.             if self.getAccess(user.name) >= 1:
  686.                 room.message("Gives %s. ^^  hehe enjoy!" % (args), True)
  687.             else:
  688.                 room.message("No thank you.")
  689.                
  690.         # say/tell
  691.         elif used_prefix and cmd == "Say" or cmd == "say" and len(args) > 0:
  692.             if self.getAccess(user.name) >= 3:
  693.                 room.rawMessage("<b>%s</b>" % (args), True)
  694.             else:
  695.                 room.message("No thank you.")
  696.  
  697.         elif used_prefix and cmd == "dexie" and len(args) >= 1:
  698.             if len(args) >= 1:
  699.                 pokemon = args.lower().split(" ", 1)
  700.             pokemon = args
  701.             if pokemon in dexie: room.message("<b>%s</b>", True)
  702.             elif pokemon not in dexie: room.message("%s is not a Pokemon. o.o" % user.name, True)
  703.         elif used_prefix and cmd == "rm":
  704.             try:
  705.                 if self.getAccess(user.name) >= 3:
  706.                     if len(args) >= 1:
  707.                         do, name = args.lower().split(" ", 1)
  708.                         if do == "l":
  709.                             if self.getAccess(user.name)>=3:
  710.                                 if name in locks: room.message("That room is locked already..")
  711.                                 else:
  712.                                     locks.append(name)
  713.                                     self.getRoom("Taivas-On-Auki").message("%s locked %s from %s" % (user.name.title(), name.replace('cinnamon-candycanes','Hidden'), room.name.title()), True)
  714.                                     room.message("<b>%s</b> I have now <font color='#FFCC00'>locked</font> requested room..<br/><i><font size='9'>You're quite a jerk... :( I don't like you anymore..</font></i>" % user.name, True)
  715.                                     self.getRoom(name).message("Attention:<br/> I have been <font color='#FFCC00'><u>Locked</u></font>", True)
  716.                                     print("\033[96m[SAV]\033[0m Saving Locked Rooms..")
  717.                                     f = open("locks.txt", "w")
  718.                                     f.write("\n".join(locks))
  719.                                     f.close()
  720.                             else:return
  721.                         elif do == "lr":
  722.                             if self.getAccess(user.name)>=3:
  723.                                 if not name in locks: room.message("That room isn't even locked..wtf?")
  724.                                 else:
  725.                                     locks.remove(name)
  726.                                     self.getRoom("Taivas-On-Auki").message("%s Unlocked %s from %s" % (user.name.title(), name.replace('cinnamon-candycanes','Hidden'), room.name.title()), True)
  727.                                     room.message("<b>%s</b> I have now <font color='#FFCC00'>Unlocked</font> requested room..<br/><i><font size='9'>What's with the change of heart? You're still a jerk..</font></i>" % user.name, True)
  728.                                     self.getRoom(name).message("Attention:<br/> I have been <font color='#FFCC00'><u>Unlocked!</u></font><font size='9'> I'm freeeee</font>", True)
  729.                                     print("\033[96m[SAV]\033[0m Saving Locked Rooms..")
  730.                                     f = open("locks.txt", "w")
  731.                                     f.write("\n".join(locks))
  732.                                     f.close()
  733.                             else:return
  734.                         elif do == "br":
  735.                             if self.getAccess(user.name)>=3:
  736.                                 if name in badrooms: room.message("That room is banned already")
  737.                                 else:
  738.                                     badrooms.append(name)
  739.                                     self.getRoom("Taivas-On-Auki").message("%s banned room %s from %s" % (user.name.title(), name.replace('cinnamon-candycanes','Hidden'), room.name.title()), True)
  740.                                     room.message("<b>%s</b> I have now <font color='#FF0000'>Banned</font> requested room..<br/><i>" % user.name, True)
  741.                                     print("\033[96m[SAV]\033[0m Saving Bad Rooms..")
  742.                                     f = open("badrooms.txt", "w")
  743.                                     f.write("\n".join(badrooms))
  744.                                     f.close()
  745.                                     rooms.remove(room.name)
  746.                                     print("\033[96m[SAV]\033[0m Saving Rooms..")
  747.                                     f = open("rooms.txt", "w")
  748.                                     f.write("\n".join(rooms))
  749.                                     f.close()
  750.                             else:return
  751.                         elif do == "wlr":
  752.                             if self.getAccess(user.name)>=4:
  753.                                 if not name in badrooms: room.message("not a blacklisted room..")
  754.                                 else:
  755.                                     badrooms.remove(name)
  756.                                     self.getRoom("Taivas-On-Auki").message("%s unbanned room %s from %s" % (user.name.title(), name.replace('cinnamon-candycanes','Hidden'), room.name.title()), True)
  757.                                     room.message("<b>%s</b> I have now <font color='#FF0000'>Whitelisted</font> requested room..You may join me to it now.<br/><i>" % user.name, True)
  758.                                     print("\033[96m[SAV]\033[0m Saving Bad Rooms..")
  759.                                     f = open("badrooms.txt", "w")
  760.                                     f.write("\n".join(badrooms))
  761.                                     f.close()
  762.                             else:return None                          
  763.                         elif do == "sld":
  764.                             if self.getAccess(user.name)>=4:
  765.                                 self.getRoom("Taivas-On-Auki").message("%s turned on silent lockdown from %s" % (user.name.title(), room.name.title()), True)
  766.                                 room.message("<b>%s</b>  <font color='#FF0000'>Silent Lockdown Activated</font><br/><i>" % user.name, True)
  767.                                 lockdown = True
  768.                             else:return
  769.                         elif do == "rs":
  770.                             if self.getAccess(user.name)>=4:
  771.                                 self.getRoom("Taivas-On-Auki").message("%s turned off silent lockdown from %s" % (user.name.title(), room.name.title()), True)
  772.                                 room.message("<b>%s</b>  <font color='#FF0000'>Silent Lockdown Deactivated</font><br/><i>" % user.name, True)
  773.                                 lockdown = False
  774.                             else:return
  775.                         elif do == "help":
  776.                             if self.getAccess(user.name)>=1:
  777.                                 room.message("Hello, %s. You appear to need help with this command. <br/> Please ask someone with higher access to help explain how this works.<br/>But all the set command stuff does is dealing with various lists." % user.name.title(), True)
  778.                             else:
  779.                                 return None
  780.             except:
  781.                 return None
  782.         # lockdown
  783.         elif cmd == "ubd" or cmd == "UBD":
  784.             if self.getAccess(user.name) >= 6:            
  785.                 words = args\
  786.                     .replace(" ", "+")
  787.                 def urban(doc):
  788.                     doc = doc.read().decode()
  789.                     m = re.search('"definition":"(.*?)","thumbs_up"', doc, re.DOTALL | re.IGNORECASE)
  790.                     if m:
  791.                         room.message("<b><u>Def</u></b>.: ""%s" %m.group(1).replace("%20", " "), True)
  792.                     else:
  793.                         room.message("This is not defined on Urban Dict. ^^")
  794.                 self.deferToThread(urban, urlreq.urlopen, "http://www.urbandictionary.com/iphone/search/define?term=" + words)          
  795.         elif used_prefix and cmd == "mylvl":
  796.             try:
  797.                 room.message("AY YO FUCK FACE. USE .lvl NOW. GODDAMN. Or to check someone elses .lvl username")
  798.             except:
  799.                 return None
  800. ###############
  801. # Google Shit
  802. ###############
  803.  
  804.         elif cmd == "gis" or cmd == "GIS" or cmd == "GI" or cmd == "gi" or cmd == ".gpic" or cmd == "image":
  805.                 word = args\
  806.                     .replace(" ", "+")\
  807.                     .replace("&", "%26")\
  808.                     .replace("%", "%25")\
  809.                     .replace("<", "%3C")\
  810.                     .replace("=", "%3D")
  811.                 def rfinish(doc):
  812.                     doc = doc.read().decode()
  813.                     m = re.search('"unescapedUrl":"(.*?)","url"', doc, re.IGNORECASE)
  814.                     if m:
  815.                         room.message("%s" %m.group(1))                                    
  816.                     else:
  817.                         room.message("No results.")
  818.                 self.deferToThread(rfinish, urlreq.urlopen, "Sorry, but your request for a picture of "+word+" has been denied ^^")
  819.  
  820.         elif cmd == "///gws" or cmd == "///GWS":
  821.                 word = args\
  822.                     .replace(" ", "+")\
  823.                     .replace("&", "%26")\
  824.                     .replace("%", "%25")\
  825.                     .replace("<", "%3C")\
  826.                     .replace("=", "%3D")
  827.                 def rfinish(doc):
  828.                     doc = doc.read().decode()
  829.                     m = re.search('"titleNoFormatting":(.*?)", "title"', doc, re.IGNORECASE)
  830.                     if m:
  831.                         room.message("%s" %m.group(1).replace("\u003cb\u003e", ""), True)                                
  832.                     else:
  833.                         room.message("No results.")
  834.                 self.deferToThread(rfinish, urlreq.urlopen, "https://ajax.googleapis.com/ajax/services/search/web?v=1.0&q="+word)
  835. ###############
  836. # YouTube Shit
  837. ###############
  838.  
  839.  
  840.         #youtube
  841.         elif used_prefix and cmd == "yts." or cmd == "yt." or cmd == "yt" or cmd == "YT" or cmd == ".yt" or cmd == ".yts" or cmd == "youtube":
  842.                 word = args\
  843.                     .replace(" ", "+")
  844.                 def rfinish(doc):
  845.                     doc = doc.read().decode()
  846.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  847.                     if m:
  848.                         room.message("http://www.youtube.com/watch?v=" + "%s" %m.group(1))
  849.                                      
  850.                     else:
  851.                         room.message("No results. ^^")
  852.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq="+word+"&racy=include&orderby=relevance&max-results=1")
  853.  
  854.  
  855.  
  856.         #Tech
  857.         elif cmd == ".9" or cmd == "Tech" or cmd == "N9ne":
  858.                 word = args\
  859.                     .replace(" ", "+")
  860.                 def rfinish(doc):
  861.                     doc = doc.read().decode()
  862.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  863.                     if m:
  864.                         room.message("http://www.youtube.com/watch?v=" + "%s" %m.group(1), True)
  865.                                      
  866.                     else:
  867.                         room.message("No results. ^^")
  868.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq=Tech+Nine+"+word+"&racy=include&orderby=relevance&max-results=1")
  869.  
  870.  
  871.         #Rook
  872.         elif cmd == "919" or cmd == "919Rook" or cmd == "919rook":
  873.                 word = args\
  874.                     .replace(" ", "+")
  875.                 def rfinish(doc):
  876.                     doc = doc.read().decode()
  877.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  878.                     if m:
  879.                         room.message("http://www.youtube.com/watch?v=" + "%s <font size=\"14\"><FONT COLOR=\"#3399ff\">9<FONT COLOR=\"#4489cd\">1<FONT COLOR=\"#567799\">9<FONT COLOR=\"#666666\"> <FONT COLOR=\"#5a738d\">R<FONT COLOR=\"#4d80b3\">o<FONT COLOR=\"#408dda\">o<FONT COLOR=\"#3399ff\">k" %m.group(1), True)
  880.                                      
  881.                     else:
  882.                         room.message("No results. ^^")
  883.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq=919rook+"+word+"&racy=include&orderby=relevance&max-results=1")
  884.  
  885.         #Hopsin
  886.         elif used_prefix and cmd == "Hop" or cmd == "hop" or cmd == "FV" or cmd == "fv":
  887.                 word = args\
  888.                     .replace(" ", "+")
  889.                 def rfinish(doc):
  890.                     doc = doc.read().decode()
  891.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  892.                     if m:
  893.                         room.message("http://www.youtube.com/watch?v=" + "%s <font size=\"13\"><font color=\"#ff0000\">H</font><font color=\"#b33434\">o</font><font color=\"#666666\">p</font><font color=\"#7a6054\">s</font><font color=\"#8d5940\">i</font><font color=\"#a0522d\">n</font>" %m.group(1), True)
  894.                                      
  895.                     else:
  896.                         room.message("No results. ^^")
  897.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq="+word+"+Hopsin&racy=include&orderby=relevance&max-results=1")
  898.  
  899.         #Eminem
  900.         elif used_prefix and cmd == "Em" or cmd == "em" or cmd == "Slim" or cmd == "slim":
  901.                 word = args\
  902.                     .replace(" ", "+")
  903.                 def rfinish(doc):
  904.                     doc = doc.read().decode()
  905.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  906.                     if m:
  907.                         room.message("http://www.youtube.com/watch?v=" + "%s <font size=\"13\"><font color=\"#666666\">E</font><font color=\"#b33434\">m</font><font color=\"#ff0000\">i</font><font color=\"#cd2222\">n</font><font color=\"#994545\">e</font><font color=\"#666666\">m</font>" %m.group(1), True)
  908.                                      
  909.                     else:
  910.                         room.message("No results. ^^")
  911.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq=Eminem+"+word+"+unedited&racy=include&orderby=relevance&max-results=1")
  912.  
  913.  
  914.         #Umphreys
  915.         elif used_prefix and cmd == "Umph" or cmd == "UG" or cmd == "umph" or cmd == "Um" or cmd == "ug":
  916.                 word = args\
  917.                     .replace(" ", "+")
  918.                 def rfinish(doc):
  919.                     doc = doc.read().decode()
  920.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  921.                     if m:
  922.                         room.message("http://www.youtube.com/watch?v=" + "%s <font size=\"12\"><font color=\"#cee3f6\">U</font><font color=\"#dfbad8\">m</font><font color=\"#ef90b8\">p</font><font color=\"#ff6699\">h</font><font color=\"#ff6699\">r</font><font color=\"#ff6699\">e</font><font color=\"#ff6699\">y</font><font color=\"#ff6699\">'</font><font color=\"#ff6699\">s</font><font color=\"#ff6699\"> </font><font color=\"#ff6699\">M</font><font color=\"#ff6699\">c</font><font color=\"#ef90b8\">g</font><font color=\"#dfbad8\">e</font><font color=\"#cee3f6\">e</font>" %m.group(1), True)
  923.                                      
  924.                     else:
  925.                         room.message("No results. ^^")
  926.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq="+word+"+umphrey's+mcgee&racy=include&orderby=relevance&max-results=1")
  927.  
  928.         #PrettyLights
  929.         elif used_prefix and cmd == "PL" or cmd == "pl" or cmd == "Pl":
  930.                 word = args\
  931.                     .replace(" ", "+")
  932.                 def rfinish(doc):
  933.                     doc = doc.read().decode()
  934.                     m = re.search("<id>http://gdata.youtube.com/feeds/api/videos/(.*?)</id>", doc, re.IGNORECASE)
  935.                     if m:
  936.                         room.message("http://www.youtube.com/watch?v=" + "%s <font size=\"12\"><font color=\"#99ff00\">P</font><font color=\"#91e611\">r</font><font color=\"#89cd22\">e</font><font color=\"#80b334\">t</font><font color=\"#779945\">t</font><font color=\"#6f8056\">y</font><font color=\"#666666\"> </font><font color=\"#6f8056\">L</font><font color=\"#779945\">i</font><font color=\"#80b334\">g</font><font color=\"#89cd22\">h</font><font color=\"#91e611\">t</font><font color=\"#99ff00\">s</font>" %m.group(1), True)
  937.                                      
  938.                     else:
  939.                         room.message("No results. ^^")
  940.                 self.deferToThread(rfinish, urlreq.urlopen, "http://gdata.youtube.com/feeds/api/videos?vq=Pretty+Lights+"+word+"&racy=include&orderby=relevance&max-results=1")
  941.  
  942.         elif cmd == "ismod":
  943.             user = ch.User(args)
  944.             if room.getLevel(user) > 0:
  945.                 room.message("yes")
  946.             else:
  947.                 room.message("no")
  948.            
  949.  
  950.         # attack*
  951.         elif (used_prefix and cmd == "attack")  and len(args) > 0:
  952.             if self.getAccess(user.name) >= 1:
  953.                 room.message("-Muk used Sludge Wave- Take that %s. ^^ " % (args))
  954.             else:
  955.                 return None
  956.  
  957.  
  958.         elif(used_prefix and cmd == "bitch-slap") and len(args) > 0:
  959.             if self.getAccess(user.name) >= 1:
  960.                 room.message("/Bitch slaps %s. Sucka :|" % (args), True)
  961.             else:
  962.                 return None
  963.                
  964.         # slaughter
  965.         elif (used_prefix and cmd == "battle")  and len(args) > 0:
  966.             if self.getAccess(user.name) >= 1:
  967.                 room.message("-Battles %s- /Muk used Mud-Slap. BITCH PLEASE!" % (args))
  968.             else:
  969.                 return None
  970.  
  971.         # slaughter
  972.         elif (used_prefix and cmd == "catch")  and len(args) > 0:
  973.             if self.getAccess(user.name) >= 1:
  974.                 room.message("-Pulls out <b>Great Ball</b> <font color=\"#3333FF\">(-</font><font color=\"#FFFFFF\">o</font><font color=\"#3333FF\">-)</font> and catches <b>%s</b>- I'll be the very best one day. ^^ " % (args), True)
  975.             else:
  976.                 return None
  977.  
  978.         # slaughter
  979.         elif (used_prefix and cmd == "hug")  and len(args) > 0:
  980.             if self.getAccess(user.name) >= 1:
  981.                 room.message("-Hugs <b>%s</b>- Muk <font color=\"#CC0000\">loves</font> you ^^ *h*" % (args), True)
  982.             else:
  983.                 return None
  984.  
  985.                
  986.         # hoe
  987.         elif (used_prefix and cmd == "poke")  and len(args) > 0:
  988.             if self.getAccess(user.name) >= 1:
  989.                 room.message("-Pokerapes <b>%s</b>- Muk Muk! ;D" % (args), True)
  990.             else:
  991.                 return None
  992.  
  993.         # jump
  994.         elif (used_prefix and cmd == "jump")  and len(args) > 0:
  995.             if self.getAccess(user.name) >= 1:
  996.                 room.message("-Jumps on <b>%s</b> and Muk-Hugs- Muuuk Muk! ^^" % (args), True)
  997.             else:
  998.                 return None
  999.                
  1000.         # smoke
  1001.         elif (used_prefix and cmd == "smoke")  and len(args) > 5:
  1002.             if self.getAccess(user.name) >= 5:
  1003.                 room.message("-Packs a bong and blows smoke at <b>%s</b>- Want some? Why do you think I smell so much ^^" % (args), True)
  1004.             else:
  1005.                 return None
  1006.                
  1007.         # nom
  1008.         elif (used_prefix and cmd == "nom")  and len(args) > 0:
  1009.             if self.getAccess(user.name) >= 1:
  1010.                 room.message("-Noms on <b>%s</b>- Nomnomnom. o.o Delicious!" % (args), True)
  1011.             else:
  1012.                 return None
  1013.  
  1014.         # love
  1015.         elif (used_prefix and cmd == "please")  and len(args) > 0:
  1016.             if self.getAccess(user.name) >= 1:
  1017.                 room.message("/Pleases <b>%s</b>. You know you love it! ;D " % (args), True)
  1018.             else:
  1019.                 return None
  1020.  
  1021.         # love
  1022.         elif (used_prefix and cmd == "love")  and len(args) > 0:
  1023.             if self.getAccess(user.name) >= 1:
  1024.                 room.message("Muk loves you <b>%s</b> ^^ *h* " % (args), True)
  1025.             else:
  1026.                 return None
  1027.  
  1028.         # adore
  1029.         elif (used_prefix and cmd == "adore")  and len(args) > 0:
  1030.             if self.getAccess(user.name) >= 1:
  1031.                 room.message("Muk loves you so much <b>%s</b>, you're the best! ^^ *h* " % (args), True)
  1032.             else:
  1033.                 return None
  1034.  
  1035.         # adore
  1036.         elif (used_prefix and cmd == "snuggle")  and len(args) > 0:
  1037.             if self.getAccess(user.name) >= 1:
  1038.                 room.message("/Snuggles against <b>%s</b> ^^ *h* Muk loves you! " % (args), True)
  1039.             else:
  1040.                 return None
  1041.  
  1042.         # adore
  1043.         elif (used_prefix and cmd == "get")  and len(args) > 0:
  1044.             if self.getAccess(user.name) >= 1:
  1045.                 room.message("Muk used Poison Jab! What will <b>%s</b> do? ^^ " % (args), True)
  1046.             else:
  1047.                 return None
  1048.  
  1049.         # adore
  1050.         elif (used_prefix and cmd == "cuddle")  and len(args) > 0:
  1051.             if self.getAccess(user.name) >= 1:
  1052.                 room.message("/Cuddles against <b>%s</b>. ^^ hehe. Wait!..Did I just use Poison Touch? O.O" % (args), True)
  1053.             else:
  1054.                 return None
  1055.  
  1056.  
  1057.         # spam
  1058.         elif (used_prefix and cmd == "bg"):
  1059.             if self.getAccess(user.name) >= 2:
  1060.                 letter1 = args[0]
  1061.                 letter2 = args[1]
  1062.                 room.message("http://st.chatango.com/profileimg/%s/%s/%s/msgbg.jpg" % (letter1, letter2, args), True)
  1063.             else:
  1064.                 room.message("I'm not a theif. :|")
  1065.  
  1066.  
  1067.         elif (used_prefix and cmd == "pic"):
  1068.             if self.getAccess(user.name) >= 2:
  1069.                 letter1 = args[0]
  1070.                 letter2 = args[1]
  1071.                 room.message("http://fp.chatango.com/profileimg/%s/%s/%s/full.jpg" % (letter1, letter2, args), True)
  1072.             else:
  1073.                 room.message("I'm not a theif. :|")
  1074.                
  1075.  
  1076.         # adore
  1077.         elif (used_prefix and cmd == "kill")  and len(args) > 0:
  1078.             if self.getAccess(user.name) >= 1:
  1079.                 room.message(""+ user.name.title() +" kills <b>%s</b>, R.I.P v.v" % (args), True)
  1080.             else:
  1081.                 return None
  1082.  
  1083.         # adore
  1084.         elif (used_prefix and cmd == "slaughter")  and len(args) > 0:
  1085.             if self.getAccess(user.name) >= 1:
  1086.                 room.message(""+ user.name.title() +" slaughters <b>%s</b>. What a show O.O" % (args), True)
  1087.             else:
  1088.                 return None
  1089.  
  1090.                
  1091.         #Spaced Cmds
  1092.         elif(message.getBody() == "*h* Muk"):
  1093.             room.message(random.choice([""+ user.name.title() +"'s love was super effective! ^^", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1094.  
  1095.         elif(message.getBody() == "Ty Muk"):
  1096.             room.message("You're welcome, "+ user.name.title() +" ^^")
  1097.  
  1098.         elif(message.getBody() == "Ty muk"):
  1099.             room.message("You're welcome, "+ user.name.title() +" ^^")
  1100.  
  1101.         elif(message.getBody() == "Muk who is the most amazing man in the world?"):
  1102.             room.message("Mike.. Obviously >.>")
  1103.            
  1104.         elif(message.getBody() == "ty Muk"):
  1105.             room.message("You're welcome, "+ user.name.title() +" ^^")
  1106.  
  1107.         elif(message.getBody() == "Muk :D"):
  1108.             room.message(""+ user.name.title() +" :D")
  1109.  
  1110.         elif(message.getBody() == "Fuu Muk"):
  1111.             room.message(""+ user.name.title() +", that's not very nice. :|")
  1112.  
  1113.         elif(message.getBody() == "Muks lame"):
  1114.             room.message("You're lame. :|")
  1115.  
  1116.         elif(message.getBody() == "Ilu Muk"):
  1117.             room.message(random.choice([""+ user.name.title() +"'s love was super effective! ^^", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1118.            
  1119.         elif(message.getBody() == "I hate Muk"):
  1120.             room.message("I hate you "+ user.name.title() +" :|")
  1121.  
  1122.         elif(message.getBody() == "Muk I hate you"):
  1123.             room.message("I hate you "+ user.name.title() +" :|")
  1124.  
  1125.         elif(message.getBody() == "I hate you Muk"):
  1126.             room.message("I hate you "+ user.name.title() +" :|")
  1127.  
  1128.         elif(message.getBody() == "i hate muk"):
  1129.             room.message("I hate you "+ user.name.title() +" :|")
  1130.            
  1131.         elif(message.getBody() == "Thank you Muk"):
  1132.             room.message("You're welcome, "+ user.name.title() +" ^^")
  1133.  
  1134.         elif(message.getBody() == ".post Muk"):
  1135.             room.message(random.choice([" ^^ http://www.serebii.net/potw-dp/Muk.jpg", "O.O http://fc00.deviantart.net/fs70/f/2010/271/b/5/muk_tf_by_nesise-d2znre1.jpg", "^^ http://i229.photobucket.com/albums/ee11/X_B00M/Muk/muk_by_pinkophilic-d37o873.png", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/Opening-1.png", ";D http://i229.photobucket.com/albums/ee11/X_B00M/Muk/220px-Ash_Muk_Oak_affection.png", ";D http://i229.photobucket.com/albums/ee11/X_B00M/Muk/98k.jpg", "o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/50268_118812078143607_5658837_n.jpg", "rawrs o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/351388-muk_large.jpg", "o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/Muk_by_Xous54.png", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/4863369_f260.jpg", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/089Muk_Dream.png"]), True)
  1136.  
  1137.         elif(message.getBody() == ".post muk"):
  1138.             room.message(random.choice([" ^^ http://www.serebii.net/potw-dp/Muk.jpg", "O.O http://fc00.deviantart.net/fs70/f/2010/271/b/5/muk_tf_by_nesise-d2znre1.jpg", "^^ http://i229.photobucket.com/albums/ee11/X_B00M/Muk/muk_by_pinkophilic-d37o873.png", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/Opening-1.png", ";D http://i229.photobucket.com/albums/ee11/X_B00M/Muk/220px-Ash_Muk_Oak_affection.png", ";D http://i229.photobucket.com/albums/ee11/X_B00M/Muk/98k.jpg", "o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/50268_118812078143607_5658837_n.jpg", "rawrs o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/351388-muk_large.jpg", "o.o http://i229.photobucket.com/albums/ee11/X_B00M/Muk/Muk_by_Xous54.png", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/4863369_f260.jpg", "http://i229.photobucket.com/albums/ee11/X_B00M/Muk/089Muk_Dream.png"]), True)
  1139.  
  1140.         elif(message.getBody() == "Muk, who do you love most?"):
  1141.             room.message(random.choice(["Isn't it obvious? o.o Rook! :D", "Rook :|", "Rookeh ;D"]))
  1142.            
  1143.         elif(message.getBody() == "Rook city"):
  1144.             room.message("Rook City bitch, Rook Rook City bitch. o.o", True)
  1145.  
  1146.         elif(message.getBody() == "helpme"):
  1147.             roommessage("" + user.name.title() + " my command list can be found here <a href=\"http://pastebin.com/raw.php?i=LDtmmijm\" target=\"_blank\"><FONT COLOR=\"#9933cc\">[<FONT COLOR=\"#8d40b3\"> <FONT COLOR=\"#804d9a\"><b>C<FONT COLOR=\"#735a80\"><b>l<FONT COLOR=\"#666666\"><b>i<FONT COLOR=\"#735a80\"><b>c<FONT COLOR=\"#804d9a\"><b>k<FONT COLOR=\"#8d40b3\"><b> <FONT COLOR=\"#9933cc\"><b>]</font><font color=\"#B7A8E7\">, There is also a command list on my profile. ^^", True)
  1148.  
  1149.         elif(message.getBody() == "muk fight"):
  1150.             room.message(random.choice(["Muk used Poison Gas. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Pound. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Mud Bomb. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge Wave. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Gunk Shot. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Hyper Beam. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Shadow Ball. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Flame Thrower. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Stench. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sticky Hold. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!"]) % (random.randint(225,725)))
  1151.            
  1152.         elif(message.getBody() == "Muk Fight"):
  1153.             room.message(random.choice(["Muk used Poison Gas. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Pound. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Mud Bomb. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge Wave. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Gunk Shot. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Hyper Beam. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Shadow Ball. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Flame Thrower. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Stench. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sticky Hold. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!"]) % (random.randint(225,725)))
  1154.            
  1155.         elif(message.getBody() == "Muk fight"):
  1156.             room.message(random.choice(["Muk used Poison Gas. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Pound. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Mud Bomb. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sludge Wave. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Gunk Shot. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Hyper Beam. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Shadow Ball. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Flame Thrower. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Stench. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!", "Muk used Sticky Hold. Enemy "+ random.choice(room.usernames)+ " fainted! Muk gained %s EXP. Points!"]) % (random.randint(225,725)))
  1157.            
  1158.         elif(message.getBody() == ":x Muk"):
  1159.             room.message(random.choice([""+ user.name.title() +" you sexy ;D", ":x", ":x "+ user.name.title() +" Ily ^^", ":o I'm flattered "+ user.name.title() +". :x", ":x ily!"]))
  1160.  
  1161.         elif(message.getBody() == ":x Muk"):
  1162.             room.message(random.choice([""+ user.name.title() +" you sexy ;D", ":x", ":x "+ user.name.title() +" Ily ^^", ":o I'm flattered "+ user.name.title() +". :x", ":x ily!"]))
  1163.  
  1164.  
  1165.         elif(message.getBody() == ":x muk"):
  1166.             room.message(random.choice([""+ user.name.title() +" you sexy ;D", ":x", ":x "+ user.name.title() +" Ily ^^", ":o I'm flattered "+ user.name.title() +". :x", ":x ily!"]))
  1167.  
  1168.         elif(message.getBody() == "blow me"):
  1169.             room.message(random.choice(["Eww. Never. o.o", "You blow ME, " + user.name.title() + ". ;)", "Muk feels violated o.o", "Lets trade places ;)", "Why don't you give it a try?", "You're not my type.", "I'd rather not", "Do it yourself. ^^"]), True)
  1170.  
  1171.         elif(message.getBody() == "Blow me"):
  1172.             room.message(random.choice(["Eww. Never. o.o", "You blow ME, " + user.name.title() + ". ;)", "Muk feels violated o.o", "Lets trade places ;)", "Why don't you give it a try?", "You're not my type.", "I'd rather not", "Do it yourself. ^^"]), True)
  1173.  
  1174.         elif(message.getBody() == "Blow Me"):
  1175.             room.message(random.choice(["Eww. Never. o.o", "You blow ME, " + user.name.title() + ". ;)", "Muk feels violated o.o", "Lets trade places ;)", "Why don't you give it a try?", "You're not my type.", "I'd rather not", "Do it yourself. ^^"]), True)
  1176.  
  1177.         elif(message.getBody() == "BLOW ME"):
  1178.             room.message(random.choice(["Eww. Never. o.o", "You blow ME, " + user.name.title() + ". ;)", "Muk feels violated o.o", "Lets trade places ;)", "Why don't you give it a try?", "You're not my type.", "I'd rather not", "Do it yourself. ^^"]), True)
  1179.  
  1180.         elif(message.getBody() == "who you gonna call?"):
  1181.             room.message(random.choice(["Ghost Busters!? :o", "Ghost Busters!? ^^", "Team Rocket! ^^"]))
  1182.            
  1183.         elif(message.getBody() == "Who you gonna call?"):
  1184.             room.message(random.choice(["Ghost Busters!? :o", "Ghost Busters!? ^^", "Team Rocket! ^^"]))
  1185.        
  1186.         elif(message.getBody() == "Muk you"):
  1187.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1188.  
  1189.         elif(message.getBody() == "muk you"):
  1190.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+ " seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1191.  
  1192.         elif(message.getBody() == "I love you Muk"):
  1193.             room.message(random.choice([""+ user.name.title() +"'s love was super effective!", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1194.  
  1195.         elif(message.getBody() == "I love you Muk"):
  1196.             room.message(random.choice([""+ user.name.title() +"'s love was super effective!", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1197.  
  1198.         elif(message.getBody() == "Bleachget rules"):
  1199.             room.message("<font size=\"13\">Only English</font> - No Spam, No Links, No Advetising, and No Racism.", True)
  1200.            
  1201.         elif(message.getBody() == "bleachget rules"):
  1202.             room.message("<font size=\"13\">Only English</font> - No Spam, No Links, No Advetising, and No Racism.", True)
  1203.            
  1204.         elif(message.getBody() == "Fairytail rules"):
  1205.             room.message("<font size=\"13\">Only English</font> - No spam, trolling, flooding, advertising, outside links and no spoiling.", True)
  1206.  
  1207.         elif(message.getBody() == "fairytail rules"):
  1208.             room.message("<font size=\"13\">Only English</font> - No spam, trolling, flooding, advertising, outside links and no spoiling.", True)
  1209.  
  1210.         elif(message.getBody() == "ft rules"):
  1211.             room.message("<font size=\"13\">Only English</font> - No spam, trolling, flooding, advertising, outside links and no spoiling.", True)
  1212.  
  1213.         elif(message.getBody() == "Muk :@"):
  1214.             room.message(""+ user.name.title() +" :@")
  1215.  
  1216.         elif(message.getBody() == "Muk ;)"):
  1217.             room.message(""+ user.name.title() +" ;)")
  1218.            
  1219.         elif(message.getBody() == "i love you muk"):
  1220.             room.message(random.choice([""+ user.name.title() +"'s love was super effective!", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1221.  
  1222.         elif(message.getBody() == "i love you Muk"):
  1223.             room.message(random.choice([""+ user.name.title() +"'s love was super effective!", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1224.  
  1225.         elif(message.getBody() == "I love you muk"):
  1226.             room.message(random.choice([""+ user.name.title() +"'s love was super effective!", "*h* Tehe. ^^", "Muk muk ^^ *h*", "Awwhh. :3", "I love you too "+ user.name.title() +" ^^", " *h* "+ user.name.title() +" ^^", "ily2"]))
  1227.  
  1228.         elif(message.getBody() == "* you Muk"):
  1229.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1230.  
  1231.         elif(message.getBody() == "* you muk"):
  1232.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1233.  
  1234.         elif(message.getBody() == "Fuck you Muk"):
  1235.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1236.  
  1237.         elif(message.getBody() == "fuck you Muk"):
  1238.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1239.  
  1240.         elif(message.getBody() == "Fuck you muk"):
  1241.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1242.  
  1243.         elif(message.getBody() == "fuck you muk"):
  1244.             room.message(random.choice([""+ user.name.title() +", you'd enjoy that huh? :|", ""+ user.name.title() +", "+ random.choice(room.usernames)+" seems pretty lonely. ^^", "Ewww. o.o Tramp!", "No, no my friend, Muk YOU! ^^"]))
  1245.  
  1246.         elif(message.getBody() == "Ill brb"):
  1247.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1248.  
  1249.         elif(message.getBody() == "Ill Brb"):
  1250.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1251.  
  1252.         elif(message.getBody() == "ill brb"):
  1253.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1254.  
  1255.         elif(message.getBody() == "I'll brb"):
  1256.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1257.  
  1258.         elif(message.getBody() == "i'll brb"):
  1259.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1260.  
  1261.  
  1262.         # Locate    
  1263.         elif (used_prefix and cmd == "stalk" or cmd == "dnif") and len(args) > 0:
  1264.             if self.getAccess(user.name) >= 6:
  1265.                 name = args.split()[0].lower()
  1266.                 if not ch.User(name).roomnames:  room.message("I can not locate them.")
  1267.                 else: room.message("<b>%s</b> they are wasting time in <b>%s</b> sadly." % (user.name, ", ".join(ch.User(name).roomnames)), True)
  1268.             else:
  1269.                 room.message("I killed them.")
  1270.  
  1271.  
  1272.  
  1273.  
  1274.         if cmd =="8|8" or cmd == "8|8+1":
  1275.             room.message(random.choice([""+ user.name.title() +", catch it for me! 8|8", ""+ user.name.title() +" (: 8|8", "8|8+25 ^^", "8|8 ^^", "Muk loves butterflies o.o 8|8" , "Catch it o.o 8|8 " , "Muk muk o.o 8|8", "8|8 Eeep! ^^", "I love butterflies. ^^"]))
  1276.  
  1277.         elif cmd == "><>+20":
  1278.             room.message(random.choice(["http://static.fjcdn.com/pictures/Blub_84bb88_2528221.jpg", "Muk used surf!...And sunk. o.o http://i47.tinypic.com/2dmfc4w.gif ><>", "They need a Muk emote, Muks are cuter than fish. >.>", ""+ user.name.title() +", can I have fishies? o.o", "MY FISH! :@", "><> I have fisshh :D!", "Muk used surf! ^^.. Wait O.O I can't learn that! x_x ><>", "*cat* ><> Catfish ^^", "*snow* Freeze fishies! hehe!", "><> "+ user.name.title() +" I can make those too. ^^", "Muks don't like water! v.v" , "bubble bubble o.o ><>" , "-waits for the starfish- o.o" , "SHARKS.. oh wait >.>"]))
  1279.  
  1280.         elif cmd == "><>+5":
  1281.             room.message("http://i45.tinypic.com/28jwqzc.jpg")
  1282.         elif cmd == "*rolleyes*":
  1283.             room.message("http://i229.photobucket.com/albums/ee11/X_B00M/Spr_3r_202.png")
  1284.         elif cmd == "8|8+50":
  1285.             room.message(random.choice(["8|8+50 It's Mothra O.O", "RUN FROM THE GIANT BUTTERFLY D:"]))
  1286.  
  1287.  
  1288.         elif cmd == "*monkey*":
  1289.             room.message(random.choice(["*monkey* ^^", "*monkey*+25", "o.o http://www.serebii.net/pokedex-dp/evo/057.png", "Mankey?! http://www.serebii.net/pokedex-dp/evo/057.png", True]))
  1290.  
  1291.         elif cmd == "*muk*" or cmd == "*Muk*":
  1292.             room.message(random.choice(["http://i47.tinypic.com/2dmfc4w.gif ^^", "O.O Awwhh! :( I got excited..Thought they added a Muk emote..", ""+ user.name.title() +": http://i47.tinypic.com/2dmfc4w.gif"]))
  1293.            
  1294.         elif cmd == "*burger*+50":
  1295.             if self.getAccess(user.name) >= 6:            
  1296.               room.message(random.choice(["*burger*+50 /poofs! (=)", "*burger*+50 (: 08", "*burger*+50 08! ^^", "*burger*+50 Dbz08 MUST be here. ^^", "*burger*+50 Dbz08 is that you? :o", "*burger*+50", "*burger*+50 (:", "*burger*+50 I collect these for 08. o.o"]))
  1297.  
  1298.         elif cmd == "*burger*":
  1299.             room.message(random.choice(["*burger* Om nom nom. ^^", "*burger* o.o If only I had a stomach.", "I'd rather eat something more..disgusting. ^^"]))
  1300.  
  1301.         elif cmd == "rookiemontana":
  1302.             room.message("http://youtu.be/RZtjoiDvYS4")
  1303.  
  1304.         elif cmd == "WhosThat" or cmd == "whosthat":
  1305.             room.message(random.choice(["http://fc09.deviantart.net/fs28/i/2009/251/6/d/Whos___that_pokemon_2_by_Eye4Pie.jpg", "http://static.fjcdn.com/pictures/Whos_70abdf_1220144.jpg", "http://2.bp.blogspot.com/_zodsvhNTs_w/TKDCb6eEjsI/AAAAAAAADbI/j-YFwJyl9uE/s1600/batman+pokemon+pikachu+chuck+norris.jpg", "http://a3.ec-images.myspacecdn.com/images02/28/b603a176189943b2aba7899d4facba76/l.jpg", "http://fc06.deviantart.net/fs70/i/2011/085/1/2/whos_that_pokemon__by_itherealpikachuv2-d3ck1tx.jpg"]))
  1306.  
  1307.         elif cmd == "*cat*":
  1308.             room.message(random.choice(["Meow! ^^", "*dog* Woof! ^^", "><> hehe >.>", "*cat* Meow ^^"]))
  1309.  
  1310.         elif cmd == "{b)":
  1311.             room.message(random.choice(["A pirates life for Muk ^^", "{b) ><> Pirate Muk. ^^", "{b)+25", "{b) Arrrg! ^^"]))
  1312.  
  1313.         elif cmd == "ShowLevels" or cmd == "showls" or cmd =="Showlevels":
  1314.             room.message("★-[ -<font color=\"#666666\">Blacklist</font>, <b>1</b>-<font color=\"#FFFFFF\">Whitelist</font>, <b>2</b>-<font color=\"#CCFF99\">HalfMaster</font>, <b>3</b>-<font color=\"#A8F7F6\">Master</font>, <b>4</b>-<font color=\"#ffcc00\">SuperMaster</font>, <b>5</b>-<font color=\"#990000\">Owner</font>, <b>6</b>-<font color=\"#000099\">King</font>, <b>7</b>-<font color=\"#cc0066\">Queen</font> ]-★", True)
  1315.            
  1316.         elif cmd == "Cubbie" or cmd == "cubbie":
  1317.                 room.message(random.choice(["http://i245.photobucket.com/albums/gg56/sharib02/YorkieBaby-1.jpg", "http://i165.photobucket.com/albums/u56/mountainhope/yorkie_baby_f.jpg", "http://i102.photobucket.com/albums/m83/racheldawn85/Puppies.jpg", "http://i89.photobucket.com/albums/k211/Quinn1960/Family567.jpg", "http://i367.photobucket.com/albums/oo118/prettyprincess9_2008/Cute_Yorkie_Baby-1.jpg", "http://i851.photobucket.com/albums/ab74/nhuboy/sold%20out%20pups/IMG_3152.jpg", "http://i1264.photobucket.com/albums/jj498/Yukikumari/akc_female_toy_yorkie_puppy_for_adoption-1332320715-182-d_pic.jpg", "http://i19.photobucket.com/albums/b154/Firebird_Lady/yorkie.jpg", "http://i1158.photobucket.com/albums/p611/amcdonald718/l8.jpg", "http://i1158.photobucket.com/albums/p611/amcdonald718/l10.jpg", "http://i237.photobucket.com/albums/ff217/sporker20102/yorkie.jpg", "http://picsdb.netne.net/wp-content/uploads/2011/10/1292159335_146083451_1-Pictures-of-TEGHA-KENNEL-Yorkshire-Terrier-Puppies-For-Sale09891013131-12921593352.jpg", "http://i305.photobucket.com/albums/nn227/janelle_211/adrian20and20josi27s20pictures20448.jpg", "http://i359.photobucket.com/albums/oo34/photodreamer101/babyyorkie.jpg", "http://i725.photobucket.com/albums/ww255/lakira841/yorkie_puppy_with_its_big_toy.jpg", "http://i290.photobucket.com/albums/ll253/sheli1983/2008_07183Violett0024600x450-1.jpg", "http://i1164.photobucket.com/albums/q562/texastinyyorkies/Yorkie%20Pups/tiny-yorkie-pups-micro-tiny-1.jpg", "http://i1164.photobucket.com/albums/q562/texastinyyorkies/Yorkie%20Pups/tiny-yorkie-pups-1.jpg", "http://i239.photobucket.com/albums/ff191/djren28/Tiny%20Girl-%204-2010/tiny5.jpg", "http://i239.photobucket.com/albums/ff191/djren28/Tiny%20Girl-%204-2010/tiny2.jpg", "http://i239.photobucket.com/albums/ff191/djren28/Tiny%20Girl-%204-2010/tiny7.jpg", True]))
  1318.                                        
  1319.         elif cmd == "Answer1" or cmd == "answer1":
  1320.             room.message("★-[The letter e. End, timE, spacE, Every placE.]-★")
  1321.  
  1322.         elif cmd == ".Members" or cmd == ".members":
  1323.             room.message("There are currently <font size=\"14\"><b>%s</b></font> people listed to use me. ^^" % len(users), True)
  1324.  
  1325.         elif cmd == "Answer2" or cmd == "answer2":
  1326.             room.message("★-[A river.]-★")
  1327.  
  1328.         elif cmd == "shuddup" or cmd == "Shuddup":
  1329.             room.message(random.choice([""+ user.name.title() +" you shut up! :@", "No! You! :@", ""+ user.name.title() +" I hate you. :|", True]))
  1330.                                    
  1331.         elif cmd == "Answer3" or cmd == "answer3":
  1332.             room.message("★-[Tomorrow or the future.]-★")
  1333.  
  1334.         elif cmd == "/rages" or cmd == "/Rages":
  1335.             room.message("NUUU!! CALM DOWN! ><")
  1336.            
  1337.         elif cmd == "Answer4" or cmd == "answer4":
  1338.             room.message("★-[The stars.]-★")
  1339.  
  1340.         elif cmd == ".mods" or cmd == ".Mods":
  1341.             room.message(", ".join(room.modnames +" The room owner is:"+ [room.ownername ]))
  1342.  
  1343.         elif cmd == "Answer5" or cmd == "answer5":
  1344.             room.message("★-[The letter 'n'.]-★")
  1345.  
  1346.         elif cmd == ".HK":
  1347.             room.message("http://demandware.edgesuite.net/aaar_prd/on/demandware.static/Sites-eStore-Site/Sites-OnlineCatalog/default/v1339116917562/products/29997/29997-201104_471x406.jpg")
  1348.  
  1349.         elif cmd == "Answer6" or cmd == "answer6":
  1350.             room.message("★-[Darkness.]-★")
  1351.  
  1352.         elif cmd == "Answer7" or cmd == "answer7":
  1353.             room.message("★-[Fire.]-★")
  1354.  
  1355.         elif cmd == "Answer8" or cmd == "answer8":
  1356.             room.message("Few.")
  1357.  
  1358.         elif cmd == "Answer9" or cmd == "answer9":
  1359.             room.message("★-[A mountain.]-★")
  1360.            
  1361.         elif cmd == "/Snuggles" or cmd == "/snuggles":
  1362.             room.message(random.choice(["/Snuggles against " + user.name.title() + ". ^^", "*h* " + user.name.title() + ". ^^ hehe", "Touch me again and I poison you, " + user.name.title() + ". o.o", "NO! Don't touch me! :("]))
  1363.            
  1364.         elif cmd == "derp" or cmd == "Derp":
  1365.             room.message("http://fc08.deviantart.net/fs70/f/2010/247/5/d/goku_goes_derp_by_dgraymandude-d2y0ogm.jpg")
  1366.  
  1367.         elif cmd == "Answer10" or cmd == "answer10":
  1368.             room.message("★-[At that moment, the time and day could be written as: 12:34, 5/6/78.]-★")
  1369.            
  1370.         elif cmd == "*snow*":
  1371.             room.message(random.choice(["Ew. Snow.", "*snow*", "*snow*+1", "*snow*+50", "So..white :|"]))
  1372.  
  1373.         elif cmd== ".Rookeh":
  1374.             room.message ("http://cdn2.mixrmedia.com/wp-uploads/reelwire/blog/2012/04/boo.jpg")
  1375.  
  1376.         elif cmd == "brb" or cmd == "Brb":
  1377.             room.message(random.choice(["I bet "+ user.name.title() +" is going to get me food. >.>", "Think anyone would notice if " + user.name.title() + " disappeared? >.> <.<", "Hurry back!" , "Tyt " + user.name.title() + "." , "Tyt. *h*", "Hurry up. *hb*", "I'll miss you " + user.name.title() + ". v.v", "Don't get lost " + user.name.title() + "! v.v", "" + user.name.title() + " is running away! v.v"]))
  1378.  
  1379.         elif cmd == "}|" or cmd == "}|+5" or cmd == "}|+50":
  1380.             room.message(random.choice(["}|", "" + user.name.title() + "s IQ just dropped ^^", "" + user.name.title() + " is that why you're so slow? >.>", "}|+50", "" + user.name.title() + " you probably shouldn't do that. o.o", "" + user.name.title() + " becareful! v.v"]))
  1381.  
  1382.         elif cmd == "(~)" or cmd == "(~)+50":
  1383.             room.message(random.choice(["Someones got the clap. >.>", "(~)"]))
  1384.  
  1385.         elif cmd == ":@":
  1386.             room.message(random.choice(["Must be Rook.. >.>", "I'mma Muk you up. :@", "" + user.name.title() + " I'm gonna eat chu >.>", "Muk Muk :@", "Don't abuse me. :(", "Grumpy, grumpy!", ":@", "Calm yourself. :(", "You're too soft to be angry."]))
  1387.  
  1388.         elif cmd == ".YM" or cmd == ".ym":
  1389.             room.message(random.choice(["Warning http://youtu.be/X_mo5yscxbk", "Roger That http://youtu.be/ifyF1Iy89fQ", "Bed Rock http://youtu.be/Ha80ZaecGkQ", "Knockout http://youtu.be/RfYcOYMNuXM", "Your Love http://youtu.be/pSFyrrhKj1Q", "Massive Attack http://youtu.be/2ZCUtnuAXg8", "Rack City http://youtu.be/IVebDObDID0", "Girls Fall Like Dominos http://youtu.be/LRsUoD1AZBA", "Bottoms Up http://youtu.be/ekAXPCphKXQ", "Beez In The Trap http://youtu.be/EmZvOhHF85I", "Beautiful Sinner http://youtu.be/t0tEk0Abt4I", "Young Forever http://youtu.be/v3LQ1vtDJes", "Pound The Alarm http://youtu.be/LWpFRC_fTyo", "Can't Stop, Won't Stop http://youtu.be/uopWwmNqCp8"]))
  1390.  
  1391.         elif cmd == ".t.i" or cmd == ".T.I" or cmd == ".tip":
  1392.             room.message(random.choice(["Swing Ya Rag http://youtu.be/aafIvSex6nw", "I'm Illy http://youtu.be/H7c4HD4odGg", "I'm a King http://youtu.be/LoR5vvGdO3A", "My Swag http://youtu.be/wJGojzDzWno", "Got Your Back Ft. Keri Hilson http://youtu.be/gk2yOxTuLck", "Whatever You Like http://youtu.be/nQJACVmankY", "Life Your Life http://youtu.be/koVHN6eO4Xg", "In Paris (Remix) http://youtu.be/2vIGazA67rU", "24's http://youtu.be/E1u9u7mq9Ck", "Strange Clouds http://youtu.be/_cZJLA_z2OU", "Harry Potter http://youtu.be/cn1BAELLtIM", "I'm Back! http://youtu.be/w8z_5ZtPzWI", "We Takin' Over http://youtu.be/D9g2szHsoz0"]))
  1393.                          
  1394.         elif cmd == "pika" or cmd == "Pika":
  1395.             room.message(random.choice(["http://youtu.be/uOQI-YHwvyU", "Real Life Pokemon 1 ^^ http://youtu.be/e1h5TzdTq0o", "Real Life Pokemon 2 ^^ http://youtu.be/LfoGBVM86PM", "Real Life Pokemon 3 ^^ http://youtu.be/rBD7XVvJ02s","Real Life Pokemon 4 ^^ http://youtu.be/wzy9D_YKxso"]))
  1396.  
  1397.         elif cmd == "zzzz":
  1398.             room.message(random.choice(["Muk used Dream Eater.. Nomnom. ^^", ""+ user.name.title() +" used rest! ^^", "Wake up sleepy! ^^", "You're here to chat not sleep! ^^", "Shh, "+ user.name.title() +" is sleeping. ^^"]))
  1399.  
  1400.         elif cmd == "*hb*":
  1401.             room.message(random.choice(["Get over it. >.>", "*h*+50", "*h* Fixded. o.o", "I Muk'd it up v.v", "That MUST be Rook spamming my *hb* command o.o", ":x+15 glued", "Oops, did I do that? :(", "Oops, did I do that?", "So fragile " + user.name.title() + "", "MUK MUK D: *h*", "" + user.name.title() + " Muk loves you v.v"]))
  1402.            
  1403.         elif cmd =="commands" or cmd == "Commands" or cmd == "helpme" or cmd == "cmds" or cmd == "Cmds":
  1404.             room.message("" + user.name.title() + " my command list can be found here <a href=\"http://pastebin.com/raw.php?i=LDtmmijm\" target=\"_blank\"><FONT COLOR=\"#9933cc\">[<FONT COLOR=\"#8d40b3\"> <FONT COLOR=\"#804d9a\"><b>C<FONT COLOR=\"#735a80\"><b>l<FONT COLOR=\"#666666\"><b>i<FONT COLOR=\"#735a80\"><b>c<FONT COLOR=\"#804d9a\"><b>k<FONT COLOR=\"#8d40b3\"><b> <FONT COLOR=\"#9933cc\"><b>]</font><font color=\"#B7A8E7\">, There is also a command list on my profile. ^^", True)
  1405.  
  1406.         elif cmd == "(=)" or cmd == "(=)+5":
  1407.             room.message(random.choice(["(=) Ninja time! ^^", "(=) Can't see me! ^^", "it's a ninja!", "(=)", "" + user.name.title() + " I am better than any ninja."]))
  1408.  
  1409.         elif cmd == "*panda*" or cmd == "*panda*+50":
  1410.             room.message(random.choice(["*panda* http://youtu.be/vwcwZjTouhc", "Sexual harassment..Pan-da! *panda*", "*panda*", "http://youtu.be/FzRH3iTQPrk"]))
  1411.  
  1412.         elif cmd == "rules" or cmd == "Rules":
  1413.             room.message("★-[No discrimination, trolling, spamming, role-playing, pornography, instigation, excessive sexual conversations, or continuous discussion on illicit drugs. No posting other DBZ sites. English only. Mods issue at least one warning except for spam or porn.]-★")
  1414.  
  1415.         elif cmd == "RapeFace" or cmd == "rapeFace" or cmd == "rapeface":
  1416.             room.message("Hey " + user.name.title() + " ;) http://img340.imageshack.us/img340/4087/srapeface.jpg")
  1417.  
  1418.         elif cmd == ":(":
  1419.             room.message(random.choice(["Cheer up!", "Stop being a sour sally.", "Cry baby.", "Does someone need a hug?", "You humans are so emotional"]))
  1420.  
  1421.         elif cmd == "pedoface" or cmd == "Pedoface" or cmd == "PedoFace":
  1422.             room.message("http://th08.deviantart.net/fs71/300W/f/2010/318/3/0/semi_realistic_perfect_cell_by_conflik1986-d32pjf7.jpg")
  1423.  
  1424.         elif cmd == "mku":
  1425.             room.message("" + user.name.title() + " learn to spell. :(")
  1426.  
  1427.         elif cmd == "<.>":
  1428.             room.message(random.choice(["Ew!it's Malcolms dumb face! D:", "I hate that face.", "Stupid face."]))
  1429.            
  1430.         elif cmd == "Troll" or cmd == "troll":
  1431.             room.message(random.choice(["http://youtu.be/dQw4w9WgXcQ", "http://28.media.tumblr.com/tumblr_lir53mpWS71qheqvio1_r1_500.png", "http://2.bp.blogspot.com/-is9VbK24wCU/Tt7FPvG0b_I/AAAAAAAAAF0/mrB1ML_TJbw/s1600/troll-web.jpg", "http://www.trollscientist.com/image/849-third-law-troll-physics.jpg", "Is this borderline porn? >.> http://www.digitaljournal.com/img/8/9/9/i/8/5/0/p-large/trolls.jpg", "http://gothamist.com/attachments/jen/2010_10_dickwad.jpg", "http://fc08.deviantart.net/fs71/f/2011/053/a/f/internet_trolls_by_vanisher72-d3a5cd9.jpg", "http://youtu.be/dQw4w9WgXcQ", "http://youtu.be/rog8ou-ZepE", "http://www.redstate.com/neil_stevens/files/2010/08/911insidejobshoppers.jpg", "http://ragetoons.com/cartoons/2011/20110223-internet-explorer-troll-rage.jpg", "http://www.theadvocateweblog.com/wp-content/uploads/2011/12/trolling.png",  "http://media.comicvine.com/uploads/4/47254/1015830-1255534488811_super.jpg", "http://29.media.tumblr.com/tumblr_lj5sg946uM1qheqvio1_500.png", "http://dudelol.com/img/dbz-fans-will-like-this.jpg", "http://static.fjcdn.com/pictures/DBZ_20c4ab_2171815.jpg", "http://static.fjcdn.com/pictures/DBZ_20c4ab_2171815.jpg", "http://static.fjcdn.com/pictures/DBZ_20c4ab_2171815.jpg"]))
  1432.            
  1433.         elif cmd == "(-o-)":
  1434.             room.message(random.choice(["-Gets caught by " + user.name.title() + "- Not nice. >.>", "/deflects ^^", "-Gets caught by " + user.name.title() + "- I strongly dislike you >.>", "" + user.name.title() + " you'll never catch me! ^^", "-Dodges " + user.name.title() + "s pokeball- Stop it! v.v", "-Gets caught by " + user.name.title() + "- I'll be free one day :(", "-Catches " + user.name.title() + " >.> didn't expect that huh?", "-Get's caught by " + user.name.title() + "- Damn you!", "" + user.name.title() + ", you can not catch me.", "" + user.name.title() + " you're a horrible Pokemaster!"]))
  1435.  
  1436.         elif cmd == "x_x" or cmd == "x_x+50":
  1437.             room.message(random.choice(["Muk, Muk? :(", "MUUUK D: -revives " + user.name.title() + "-", "We are gathered here today to remember " + user.name.title() + " :|", "x_x"]))
  1438.            
  1439.         elif cmd == "andrue":
  1440.             room.message("" + user.name.title() + " An andrue is a vicious animal, you have to be quick to sneak a hug from one >.>")
  1441.  
  1442.         elif cmd == "kami0":
  1443.             room.message("" + user.name.title() + " a kami is a vicious animal, you have to be quick to sneak a hug from one >.>")
  1444.  
  1445.         elif cmd == "annonb":
  1446.             room.message(random.choice(["*h* my Nonnie ^^ "]))
  1447.  
  1448.         elif cmd == "rawr":
  1449.             room.message("http://www.serebii.net/pokedex-dp/evo/088.png")
  1450.  
  1451.         elif cmd == "rabble" or cmd == "Rabble":
  1452.             room.message("http://youtu.be/768h3Tz4Qik")
  1453.  
  1454.         elif cmd == ".hugs" or cmd == ".Hugs":
  1455.             room.message(random.choice(["" + user.name.title() + "s hug was super effective! ^^", "/uses Poison Touch >.>", "" + user.name.title() + " I'm gonna Mud Slap you. :|", "" + user.name.title() + " you're so loveable. ^^", ":x " + user.name.title() + "", "o.o " + user.name.title() +" I don't swing that way.", "/Mukrapes ^^", "Muk loves you " + user.name.title() +"", "(-o-) I CAUGHT YOU " + user.name.title() + " ]:)", "You smell worse then me, " + user.name.title() + " o.o", "RAPE! D:", "" + user.name.title() + " stop being obsessive! D:", "/hugs " + user.name.title() + " ^^", "/Snuggles against " + user.name.title() + " ^^", "<3 " + user.name.title() + "", "http://youtu.be/xCkIXSPdXjM ^^", "^^ http://youtu.be/Lq1vQLxgIxw", True]))
  1456.  
  1457.         elif cmd == "Perfection" or cmd == "perfection":
  1458.             room.message(random.choice(["http://images.wikia.com/dragonball/images/9/9b/CellPerfectKameNV.png"]))
  1459.  
  1460.         elif cmd == "ayo" or cmd == "Ayo":
  1461.             room.message("http://youtu.be/IVQ0TCoOUYQ")
  1462.  
  1463.         elif cmd == ".BNL":
  1464.             room.message(", ".join(room.banlist ))
  1465.  
  1466. ########################################################################################
  1467. # Bot username password and rooms
  1468. ########################################################################################
  1469. def hexc(e):
  1470.         et, ev, tb      = sys.exc_info()
  1471.         if not tb: print(str(e))
  1472.         while tb:
  1473.                 lineno = tb.tb_lineno
  1474.                 fn      = tb.tb_frame.f_code.co_filename
  1475.                 tb      = tb.tb_next
  1476.         print("(%s:%i) %s" % (fn, lineno, str(e)))
  1477.    
  1478. if __name__ == "__main__":
  1479.     error = 0
  1480.     try:
  1481.         if access.get(cmds.botowner)[0] == None:
  1482.             access.sacc(cmds.botowner, 7, "sys")
  1483.             print("Fixing owner permissions....")
  1484.         if not(cmds.defaultRoom) in rooms:
  1485.             rooms.append(cmds.defaultRoom)
  1486.             f = open("rooms.txt", "w")
  1487.             f.write("\n".join(rooms))
  1488.             f.close()
  1489.         os.system("clear") # clear console on launch#
  1490.         TestBot.easy_start(rooms, cmds.botname, cmds.password)
  1491.     except KeyboardInterrupt:
  1492.         print("[ERR] Console initiated a kill.")
  1493.     except Exception as e:
  1494.         print("[ERR] Fatal error.")
  1495.         error = 1
  1496.         et, ev, tb      = sys.exc_info()
  1497.         if not tb: print(str(e))
  1498.         while tb:
  1499.                 lineno = tb.tb_lineno
  1500.                 fn      = tb.tb_frame.f_code.co_filename
  1501.                 tb      = tb.tb_next
  1502.         hexc(e)
  1503.         f = open("errors.txt", "w")
  1504.         f.write("(%s:%i) %s" % (fn, lineno, str(e)+"\n"))
  1505.         f.close()
  1506.     print("[SAV] Saving Definitions..")
  1507.     f = open("definitions.txt", "w")
  1508.     for word in dictionary:
  1509.         definition, name = json.loads(dictionary[word])
  1510.         f.write(json.dumps([word, definition, name])+"\n")
  1511.     f.close()
  1512.     print("\033[96m[SAV]\033[0m Saving Rooms..")
  1513.     f = open("rooms.txt", "w")
  1514.     f.write("\n".join(rooms))
  1515.     f.close()
  1516. #STATUS
  1517. #
  1518.     filename = "status.txt"
  1519.     f = open(filename, 'w')
  1520.     print ("\033[96m[INF]\033[0m Setting status offline...")
  1521.     f.write("In deep sleep")
  1522.     f.close()
  1523. #
  1524.  
  1525.     if error == 1:
  1526.         print("Error occured")
  1527.         time.sleep(1)
  1528.     print("\033[96m[INF]\033[0m Shutting down..")
  1529. #
  1530. ########################################################################################
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top