Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CmdRank(BotCommand):
- def args(self):
- return "[{target}]"
- def perform(self, bot, user, args):
- if len(args) == 0:
- bot.msg(CHANNEL, "Well who should I change?")
- return
- if RANKS[user] > args[1]:
- RANKS[args[0].lower()] = int(args[1])
- bot.msg(CHANNEL, args[0]+"'s rank has been changed."
- def info(self):
- return "Changes a target user's rank."
Add Comment
Please, Sign In to add comment