How do i get a bot to respond when someone mentions them?

another support form, i guess.

if message content contains <@userid>

strangely, it doesnt seem to work.

nvm it works