STEFAN'S STANDING CHALLENGE TO RELP.SLACK.COM (open ended) Hi guys!! Here's my own challenge for you, complementing the Weekly Challenges. The advantage here is that the results will be useful, new programs! The challenge is: ===================================================== Write a BOT-LIKE FUNCTION in a C-SYNTAX-ISH LANGUAGE. ===================================================== That means: Use C, C++, Objective C, C#, JavaScript (yikes!)... (Or, of course, Java or JavaX.) I'll also accept Python just to show I can. A BOT-LIKE FUNCTION is a function that receives a string (a user question) and returns another string (the bot's answer). Return null or "" if you don't have anything to say. You can write multiple functions and do other stuff; just please refrain from the super-complex (no C++ templates). I WILL DO THE REST. Specifically, I promise I will translate your bot function from your chosen language into Java using an automatic translator. I can also put the bot online on relp.slack.com afterwards if you like that. The winner bot of the day is the one that people use most when it's online... ^^ Mode of entry: Write a post in #talkingbots or PM or mail me (@stefanreich, stefan.reich.maker.of.eye@gmail.com). Final note: All submitted source code will be published and considered public domain (crediting you of course!). Hack away! :-) Example code (Python): # deh function! def answer(s): return "OMG USER! I can't believe you just said: " + s # deh test program! oh, python is so nice and short. s = "hello computer!" print(s) print("> " + answer(s)) (JavaX Translation: #1002002, Translator: #1002001)