Hello. My name is Michael. I can help you with your question.
There is no need to re-invent this. There is a great tool that will allow you to create one with relative simplicity. See this page about Sopel for more information.
Let me know if you still have questions.