Go to the documentation of this file.00001
00009 package script.media;
00010
00011 import com.rosalfred.core.ia.rivescript.BotReply;
00012 import com.rosalfred.core.ia.rivescript.RiveScript;
00013 import com.rosalfred.core.ia.rivescript.lang.java.RunRiver;
00014
00021 public class select_source implements RunRiver {
00022
00023 @Override
00024 public BotReply invoke(RiveScript rs, String user, String[] args) {
00025 String command = args[0];
00026 String channel = null;
00027
00028 if (args.length > 1) {
00029 channel = args[1];
00030 }
00031 new MediaBot(rs).selectSource(command, channel);
00032
00033 return new BotReply("");
00034 }
00035 }