forked from ChomeNS/chomens-bot-java
sex
This commit is contained in:
parent
80d8be7ebe
commit
39f3048e9a
1 changed files with 3 additions and 0 deletions
|
@ -4,6 +4,7 @@ import land.chipmunk.chayapak.chomens_bot.Bot;
|
|||
import land.chipmunk.chayapak.chomens_bot.command.Command;
|
||||
import land.chipmunk.chayapak.chomens_bot.command.CommandContext;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
|
@ -42,6 +43,8 @@ public class GrepLogCommand implements Command {
|
|||
public Component execute(CommandContext context, String[] _args, String[] fullArgs) {
|
||||
final Bot bot = context.bot();
|
||||
|
||||
if (bot.grepLog().thread() != null) return Component.text("Another query is already running").color(NamedTextColor.RED);
|
||||
|
||||
String[] args = _args;
|
||||
|
||||
boolean ignoreCase = false;
|
||||
|
|
Loading…
Reference in a new issue