import wolframalpha import help_methods def answer_question(message): """ answer_question(question) submits a request to the wolfram API and returns the response """ if len(message.split()) > 1: client = wolframalpha.Client('2LU2Y7-YJQTA7TL8E') question = ' '.join(message.split()[1:]) res = client.query(question) return next(res.results).text return help_methods.get_help_message('message')