scripts
This commit is contained in:
parent
4f4955338d
commit
d027e13595
@ -251,7 +251,7 @@ public class BunkerBot extends TelegramLongPollingBot {
|
|||||||
sendApi(new DeleteMessage(callbackQuery.getMessage().getChatId()+"", p.getScriptMessageId()));
|
sendApi(new DeleteMessage(callbackQuery.getMessage().getChatId()+"", p.getScriptMessageId()));
|
||||||
sendApi(new SendMessage(groupId, String.format(Constants.PRESSED_SCRIPT_NIGHT, callbackQuery.getFrom().getFirstName())));
|
sendApi(new SendMessage(groupId, String.format(Constants.PRESSED_SCRIPT_NIGHT, callbackQuery.getFrom().getFirstName())));
|
||||||
sendApi(new SendMessage(callbackQuery.getMessage().getChatId()+"", Constants.THANK_YOU));
|
sendApi(new SendMessage(callbackQuery.getMessage().getChatId()+"", Constants.THANK_YOU));
|
||||||
p.getScripts().removeIf(s -> s.getId().longValue() == script.getId().longValue());
|
p.setScripts(new ArrayList<>());
|
||||||
executeLuaScript(script, p);
|
executeLuaScript(script, p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user