SHARE
TWEET

timedban

GoldLeej Jul 15th, 2013 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.          elif used_prefix and cmd == "ban":
  2.              name = room.findUser(args)
  3.              if args.split()[0] in room.usernames:
  4.                  duration = int(args.split()[1]) * 60 * 60
  5.                  room.banUser(ch.User(name))
  6.                  room.clearUser(ch.User(name))
  7.                  print(duration)
  8.                  if args.split()[1] == '1': msg = 'hour'
  9.                  else: msg = 'hours'
  10.                  room.message("I've banned %s for %s %s :@" % (name.title(),duration/3600,msg))
  11.                  self.setTimeout(duration,room._sendCommand, "removeblock",room.getLastMessage(ch.User(name.lower())).unid,room.getLastMessage(ch.User(name.lower())).ip,name.lower())
  12.              else:
  13.                  room.message("They're not here")
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
 
Top