2022-10-15 00:01:35 +08:00
|
|
|
package cc.sukazyo.cono.morny.bot.command;
|
|
|
|
|
|
|
|
import cc.sukazyo.cono.morny.MornyCoeur;
|
|
|
|
import cc.sukazyo.cono.morny.util.tgapi.InputCommand;
|
|
|
|
import com.pengrad.telegrambot.model.Update;
|
|
|
|
import com.pengrad.telegrambot.model.request.ParseMode;
|
|
|
|
import com.pengrad.telegrambot.request.SendMessage;
|
|
|
|
|
|
|
|
import javax.annotation.Nonnull;
|
|
|
|
import javax.annotation.Nullable;
|
|
|
|
|
|
|
|
public class Testing implements ISimpleCommand {
|
|
|
|
|
|
|
|
@Nonnull
|
|
|
|
@Override
|
|
|
|
public String getName () {
|
|
|
|
return "test";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
@Override
|
|
|
|
public String[] getAliases () {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void execute (@Nonnull InputCommand command, @Nonnull Update event) {
|
|
|
|
|
|
|
|
MornyCoeur.extra().exec(new SendMessage(
|
|
|
|
event.message().chat().id(),
|
2022-11-10 23:06:52 +08:00
|
|
|
"<b>Just</b> a TEST command."
|
2022-10-15 00:01:35 +08:00
|
|
|
).replyToMessageId(event.message().messageId()).parseMode(ParseMode.HTML));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|