完成框架

1. 完成框架
2. 添加 /op 和 /about 指令
This commit is contained in:
2019-06-06 21:15:50 +08:00
commit 3df286ebbf
28 changed files with 1118 additions and 0 deletions

View File

@@ -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");
}
}