def checkLunch(msg): nick = nickname(msg.sender) if(T.hour() < 6): botSpeak = nick + "! Don't be ridiculous. This is not the time for lunch, and you should be asleep." bot.send_message(msg.chatId, botSpeak).wait() return if(T.weekend()): botSpeak = nick + " get real! The Kista restaurants are closed on " + T.weekday() + "s" bot.send_message(msg.chatId, botSpeak).wait() return if(T.hour() < 10): botSpeak = "I think it's a bit early for lunch. Ask me after 10 again." bot.send_message(msg.chatId, botSpeak).wait() return if(T.hour() < 14): genericLunch(msg) return if(T.hour() < 18): botSpeak = "No such thing as a free lunch " + nick + ". Too late anyway." bot.send_message(msg.chatId, botSpeak).wait() return botSpeak = "At this hour, " + nick + "... I would rather recommend dinner." bot.send_message(msg.chatId, botSpeak).wait()