Go to the documentation of this file.00001
00009 package script;
00010
00011 import org.joda.time.DateTime;
00012
00013 import com.rosalfred.core.ia.rivescript.BotReply;
00014 import com.rosalfred.core.ia.rivescript.RiveScript;
00015 import com.rosalfred.core.ia.rivescript.lang.java.RunRiver;
00016
00022 public class time_current_hour implements RunRiver {
00023
00024 @Override
00025 public BotReply invoke(RiveScript rs, String user, String[] args) {
00026 return new BotReply(new DateTime().toLocalTime().toString());
00027 }
00028
00029 }