mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] BotAdminCommandProcess 调整方法名, 增加提示信息;
This commit is contained in:
parent
19605a9401
commit
4020bbfea8
@ -119,7 +119,7 @@ public class BotAdminCommandProcess {
|
||||
setting.addProperty("pageQuality.original", original);
|
||||
if(pushInfoMap.containsKey(groupId)) {
|
||||
log.info("群 {} 已存在Timer, 删除Timer...", groupId);
|
||||
removePushTimer(groupId);
|
||||
removePushGroup(groupId);
|
||||
}
|
||||
|
||||
log.info("正在增加Timer...(Setting: {})", setting);
|
||||
@ -205,9 +205,10 @@ public class BotAdminCommandProcess {
|
||||
* @throws NoSuchElementException 当这个群号没有定时器的时候抛出异常
|
||||
*/
|
||||
@Command
|
||||
public static void removePushTimer(@Argument(name = "group") long id) {
|
||||
public static String removePushGroup(@Argument(name = "group") long id) {
|
||||
RandomIntervalSendTimer.getTimerById(id).destroy();
|
||||
pushInfoMap.remove(id);
|
||||
return "已关闭群 " + id + " 的美图推送功能。";
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user