Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def blah():
- return "blah"
- def lol():
- return "lol"
- def command_aliaser(commandz):
- commands={}
- for k in commandz:
- for c in k.split():
- commands[c]=commandz[k]
- return commands
- commands = command_aliaser({
- 'foo bar':blah,
- 'lol lulz':blah
- })
- print commands
Add Comment
Please, Sign In to add comment