Johz

Deciding

Feb 16th, 2013
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. def do_decide(keight, event):
  2.     msg = message[8:].strip()
  3.     if '|' in msg:
  4.         msg = [i.strip for i in msg.split('|')]
  5.         ret = '{}: {}'.format(event.source, random.choice(msg))
  6.     else:
  7.         ret = "Sorry, {}, but you haven't given me anything to choose from there.
  8.        ret = ret.format(event.source)
  9.    return ret
Advertisement
Add Comment
Please, Sign In to add comment