完成框架
1. 完成框架 2. 添加 /op 和 /about 指令
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
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* [userid] - set user as operator");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user