def motivate(channel, rest):
	"Motivate someone"
	if rest:
		r = rest.strip()
		m = re.match(r'^(.+)\s*\bfor\b\s*(.+)$', r)
		if m:
			r = m.groups()[0].strip()
	else:
		r = channel
	karma.Karma.store.change(r, 1)
	return "you're doing good work, %s!" % r
Motivate someone