1
0
Fork 0
NativeBot/src/main/java/ren/taske/nativebot/bot/command/CommandAbout.java

27 lines
828 B
Java

package ren.taske.nativebot.bot.command;
import java.util.ArrayList;
import cc.moecraft.icq.event.events.message.EventMessage;
import cc.moecraft.icq.user.User;
import ren.taske.nativebot.util.MessageUtils;
public class CommandAbout extends CommandBase {
public CommandAbout() {
super("about", null, "bot", "help");
}
@Override
public String execute(EventMessage evt, User user, long userid, String command, ArrayList<String> args) {
return MessageUtils.retAt(userid, "Yes, sir!",
"(command with * requires OP_PERMISSION_NODE)",
"/about[/bot|/help] - show this notice",
"/op - query if you're operator",
"/op* [uid] - set user as operator",
"/perm* [uid] [node] - get the value of the node",
"/perm* [uid] [node] [true/false] - set the value of the node");
}
}