mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-23 03:27:39 +08:00
[[[release 0.7.2.1*fuzhou]]]
## 🧯Bug Fix - 修复由于调用错误导致 "user not found" 在内部抛出导致外部无响应的问题 #38
This commit is contained in:
commit
afe8d315a2
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
[Task Listing][todo] | [~~BBS~~][issues] | [Published][artifact]
|
[Task Listing][todo] | [~~BBS~~][issues] | [Published][artifact]
|
||||||
|
|
||||||
[说明书][book] | [FindInTelegram][tg-account]
|
**[说明书][book] | [FindInTelegram][tg-account]**
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ mainClassName = 'cc.sukazyo.cono.morny.ServerMain'
|
|||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { name '-ws'; url 'https://mvn.sukazyo.cc' }
|
maven { name '-ws'; url 'https://mvn.sukazyo.cc/releases' }
|
||||||
}
|
}
|
||||||
|
|
||||||
String untitled (String lib, String upd = null) {
|
String untitled (String lib, String upd = null) {
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
## Core
|
## Core
|
||||||
|
|
||||||
VERSION = 0.7.1.3
|
VERSION = 0.7.2.1
|
||||||
|
|
||||||
CODENAME = fuzhou
|
CODENAME = fuzhou
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
||||||
libSpotbugsVersion = 4.5.3
|
libSpotbugsVersion = 4.7.2
|
||||||
|
|
||||||
libUntitledVersionMajor = 1
|
libUntitledVersionMajor = 1
|
||||||
|
|
||||||
@ -14,4 +14,4 @@ libMessivaVersion = 0.1.0.1
|
|||||||
|
|
||||||
libJavaTelegramBotApiVersion = 5.6.0
|
libJavaTelegramBotApiVersion = 5.6.0
|
||||||
|
|
||||||
libJunitVersion = 5.8.2
|
libJunitVersion = 5.9.0
|
||||||
|
@ -4,7 +4,7 @@ package cc.sukazyo.cono.morny;
|
|||||||
* the final field that will be updated by gradle automatically.
|
* the final field that will be updated by gradle automatically.
|
||||||
*/
|
*/
|
||||||
public class GradleProjectConfigures {
|
public class GradleProjectConfigures {
|
||||||
public static final String VERSION = "0.7.1.3";
|
public static final String VERSION = "0.7.2.1";
|
||||||
public static final String CODENAME = "fuzhou";
|
public static final String CODENAME = "fuzhou";
|
||||||
public static final long COMPILE_TIMESTAMP = 1654858585641L;
|
public static final long COMPILE_TIMESTAMP = 1664590869773L;
|
||||||
}
|
}
|
||||||
|
@ -47,7 +47,7 @@ public class GetUsernameAndId implements ITelegramCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final GetChatMemberResponse response = MornyCoeur.extra().exec(
|
final GetChatMemberResponse response = MornyCoeur.getAccount().execute(
|
||||||
new GetChatMember(event.message().chat().id(), userId)
|
new GetChatMember(event.message().chat().id(), userId)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -15,13 +15,16 @@ public class EventListeners {
|
|||||||
public static final OnUserRandoms USER_RANDOMS = new OnUserRandoms();
|
public static final OnUserRandoms USER_RANDOMS = new OnUserRandoms();
|
||||||
public static final OnCallMsgSend CALL_MSG_SEND = new OnCallMsgSend();
|
public static final OnCallMsgSend CALL_MSG_SEND = new OnCallMsgSend();
|
||||||
public static final OnMedicationNotifyApply MEDICATION_NOTIFY_APPLY = new OnMedicationNotifyApply();
|
public static final OnMedicationNotifyApply MEDICATION_NOTIFY_APPLY = new OnMedicationNotifyApply();
|
||||||
|
public static final OnRandomlyTriggered RANDOMLY_TRIGGERED = new OnRandomlyTriggered();
|
||||||
|
|
||||||
public static void registerAllListeners () {
|
public static void registerAllListeners () {
|
||||||
EventListenerManager.addListener(
|
EventListenerManager.addListener(
|
||||||
ACTIVITY_RECORDER,
|
ACTIVITY_RECORDER,
|
||||||
UPDATE_TIMESTAMP_OFFSET_LOCK,
|
UPDATE_TIMESTAMP_OFFSET_LOCK,
|
||||||
|
/* write functional event behind here */
|
||||||
// KUOHUANHUAN_NEED_SLEEP,
|
// KUOHUANHUAN_NEED_SLEEP,
|
||||||
COMMANDS_LISTENER,
|
COMMANDS_LISTENER,
|
||||||
|
RANDOMLY_TRIGGERED,
|
||||||
USER_RANDOMS,
|
USER_RANDOMS,
|
||||||
USER_SLASH_ACTION,
|
USER_SLASH_ACTION,
|
||||||
INLINE_QUERY,
|
INLINE_QUERY,
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
package cc.sukazyo.cono.morny.bot.event;
|
||||||
|
|
||||||
|
import cc.sukazyo.cono.morny.bot.api.EventListener;
|
||||||
|
|
||||||
|
public class OnRandomlyTriggered extends EventListener {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* function CODE_IK0XA1
|
||||||
|
*/
|
||||||
|
// @Override
|
||||||
|
// public boolean onMessage (@Nonnull Update update) {
|
||||||
|
//
|
||||||
|
// if (update.message().text() == null) return false;
|
||||||
|
//
|
||||||
|
// if (update.message().text().contains("急") && Math.random()<(1d/20)) {
|
||||||
|
// MornyCoeur.extra().exec(new SendMessage(
|
||||||
|
// update.message().chat().id(),
|
||||||
|
// "急也没用"
|
||||||
|
// ));
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return false;
|
||||||
|
//
|
||||||
|
// }
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user