Revive EvalCommand. On this side it is pretty much done. Backend is still very broken as of committing this
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user