I'm making a bot to help me understand some scripting I am unclear in; I don't know or remember some parts of this script and it would be grand if someone could help me finish this. Thank you.

on *:TEXT:!AddQ *:#:/write Q (unfinished)
on *:TEXT:!Q:#:/msg $chan (unfinished)