Implement the /me command

This code was taken from the work of Benjamin Chetioui, with very few
modifications.