Revive EvalCommand. On this side it is pretty much done. Backend is still very broken as of committing this

This commit is contained in:
ChomeNS
2024-10-18 20:21:52 +07:00
parent d0c46ee143
commit a3a126f7a8
12 changed files with 298 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package me.chayapak1.chomens_bot.evalFunctions;
import me.chayapak1.chomens_bot.Bot;
import me.chayapak1.chomens_bot.data.eval.EvalFunction;
public class ChatFunction extends EvalFunction {
public ChatFunction (Bot bot) {
super("chat", bot);
}
@Override
public Output execute(Object... args) {
final String message = (String) args[0];
bot.chat.send(message);
return null;
}
}