Advertisement
Guest User

command

a guest
Jul 12th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.91 KB | None | 0 0
  1.     @Command("ng", CommandArgument("ng", str))
  2.     def handleUpdateNameglow(self, player, arguments):
  3.         reactor.callFromThread(player.setNameGlow, arguments.ng)
  4.         reactor.callFromThread(player.joinRoom, player.room.Id)
  5.  
  6.     @Command("nameglow", CommandArgument("ng", str))
  7.     def handleUpdateNameglow(self, player, arguments):
  8.         reactor.callFromThread(player.setNameGlow, arguments.ng)
  9.         reactor.callFromThread(player.joinRoom, player.room.Id)
  10.  
  11.     @Command("namecolor", CommandArgument("nc", str))
  12.     def handleUpdateNamecolour(self, player, arguments):
  13.         reactor.callFromThread(player.setNameColour, arguments.nc)
  14.         reactor.callFromThread(player.joinRoom, player.room.Id)
  15.  
  16.     @Command("nc", CommandArgument("nc", str))
  17.     def handleUpdateNamecolour(self, player, arguments):
  18.         reactor.callFromThread(player.setNameColour, arguments.nc)
  19.         reactor.callFromThread(player.joinRoom, player.room.Id)
  20.  
  21.     @Command("speed", CommandArgument("s", str))
  22.     def handleUpdateSpeed(self, player, arguments):
  23.         reactor.callFromThread(player.setSpeed, arguments.s)
  24.         reactor.callFromThread(player.joinRoom, player.room.Id)
  25.  
  26.     @Command("bc", CommandArgument("bc", str))
  27.     def handleUpdateBubbleColor(self, player, arguments):
  28.         reactor.callFromThread(player.setBubbleColour, arguments.bc)
  29.         reactor.callFromThread(player.joinRoom, player.room.Id)  
  30.  
  31.     @Command("bubblecolor", CommandArgument("bc", str))
  32.     def handleUpdateBubbleColor(self, player, arguments):
  33.         reactor.callFromThread(player.setBubbleColour, arguments.bc)
  34.         reactor.callFromThread(player.joinRoom, player.room.Id)  
  35.  
  36.     @Command("bubbletext", CommandArgument("bt", str))    
  37.     def handleUpdateBubbleText(self, player, arguments):
  38.         reactor.callFromThread(player.setBubbleText, arguments.bt)
  39.         reactor.callFromThread(player.joinRoom, player.room.Id)
  40.  
  41.     @Command("bt", CommandArgument("bt", str))    
  42.     def handleUpdateBubbleText(self, player, arguments):
  43.         reactor.callFromThread(player.setBubbleText, arguments.bt)
  44.         reactor.callFromThread(player.joinRoom, player.room.Id)
  45.  
  46.     @Command("bg", CommandArgument("bg", str))
  47.     def handleUpdateBubbleGlow(self, player, arguments):
  48.         reactor.callFromThread(player.setBubbleGlow, arguments.bg)
  49.         reactor.callFromThread(player.joinRoom, player.room.Id)
  50.  
  51.     @Command("bubbleglow", CommandArgument("bg", str))
  52.     def handleUpdateBubbleGlow(self, player, arguments):
  53.         reactor.callFromThread(player.setBubbleGlow, arguments.bg)
  54.         reactor.callFromThread(player.joinRoom, player.room.Id)
  55.  
  56.     @Command("moodglow", CommandArgument("mg", str))
  57.     def handleUpdateMoodGlow(self, player, arguments):
  58.         reactor.callFromThread(player.setMoodGlow, arguments.mg)
  59.         reactor.callFromThread(player.joinRoom, player.room.Id)
  60.  
  61.     @Command("mg", CommandArgument("mg", str))
  62.     def handleUpdateMoodGlow(self, player, arguments):
  63.         reactor.callFromThread(player.setMoodGlow, arguments.mg)
  64.         reactor.callFromThread(player.joinRoom, player.room.Id)
  65.  
  66.     @Command("mc", CommandArgument("mc", str))
  67.     def handleUpdateMoodColor(self, player, arguments):
  68.         reactor.callFromThread(player.setMoodColour, arguments.mc)
  69.         reactor.callFromThread(player.joinRoom, player.room.Id)
  70.  
  71.     @Command("moodcolor", CommandArgument("mc", str))
  72.     def handleUpdateMoodColor(self, player, arguments):
  73.         reactor.callFromThread(player.setMoodColour, arguments.mc)
  74.         reactor.callFromThread(player.joinRoom, player.room.Id)
  75.    
  76.     @Command("mood", VariableCommandArgument("m"))
  77.     def handleUpdateMood(self, player, arguments):
  78.         arguments.m = " ".join(arguments.m)
  79.         reactor.callFromThread(player.setMood, arguments.m)
  80.         reactor.callFromThread(player.joinRoom, player.room.Id)        
  81.        
  82.     @Command("m", VariableCommandArgument("m"))
  83.     def handleUpdateMood(self, player, arguments):
  84.         arguments.m = " ".join(arguments.m)
  85.         reactor.callFromThread(player.setMood, arguments.m)
  86.         reactor.callFromThread(player.joinRoom, player.room.Id)
  87.    
  88.     @Command("walls")
  89.     def handleUpdateWalls(self, player, arguments):
  90.         reactor.callFromThread(player.setWall, 1)
  91.         reactor.callFromThread(player.joinRoom, player.room.Id)
  92.    
  93.     @Command("small")
  94.     def handleUpdateSmall(self, player, arguments):
  95.         reactor.callFromThread(player.setSmallSize)
  96.         reactor.callFromThread(player.joinRoom, player.room.Id)
  97.    
  98.     @Command("medium")
  99.     def handleUpdateMedium(self, player, arguments):
  100.         reactor.callFromThread(player.setMediumSize)
  101.         reactor.callFromThread(player.joinRoom, player.room.Id)
  102.    
  103.     @Command("big")
  104.     def handleUpdateBig(self, player, arguments):
  105.         reactor.callFromThread(player.setBigSize)
  106.         reactor.callFromThread(player.joinRoom, player.room.Id)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement