Echo.java
Go to the documentation of this file.
00001 package com.rosalfred.core.ia.rivescript.lang;
00002 
00003 import com.rosalfred.core.ia.rivescript.BotReply;
00004 import com.rosalfred.core.ia.rivescript.ObjectHandler;
00005 import com.rosalfred.core.ia.rivescript.RiveScript;
00006 
00007 public class Echo implements ObjectHandler<BotReply> {
00008 
00009     public Echo(RiveScript rs) {
00010 
00011     }
00012 
00013     @Override
00014     public boolean onLoad(String name, String[] code) {
00015         return false;
00016     }
00017 
00018     @Override
00019     public BotReply onCall(String name, String user, String[] args) {
00020         return new BotReply(name);
00021     }
00022 
00023 }


alfred_bot
Author(s): Mickael Gaillard , Erwan Le Huitouze
autogenerated on Tue Jun 14 2016 01:34:50