def eball(rest):
	"Ask the magic 8ball a question"
	try:
		url = 'https://8ball.delegator.com/magic/JSON/'
		url += rest
		result = requests.get(url).json()['magic']['answer']
	except Exception:
		result = util.wchoice(phrases.ball8_opts)
	return result
Ask the magic 8ball a question