mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
#30 add support(warnlog) to /user command to channel identify
This commit is contained in:
parent
73a7b23bc2
commit
b252b3de51
@ -1,6 +1,6 @@
|
|||||||
## Core
|
## Core
|
||||||
|
|
||||||
VERSION = 0.6.3.0
|
VERSION = 0.6.3.1
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
|
|
||||||
|
@ -5,5 +5,5 @@ package cc.sukazyo.cono.morny;
|
|||||||
*/
|
*/
|
||||||
public class GradleProjectConfigures {
|
public class GradleProjectConfigures {
|
||||||
public static final String VERSION = "0.6.3.0";
|
public static final String VERSION = "0.6.3.0";
|
||||||
public static final long COMPILE_TIMESTAMP = 1651635619528L;
|
public static final long COMPILE_TIMESTAMP = 1651804975121L;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ public class GetUsernameAndId implements ITelegramCommand {
|
|||||||
|
|
||||||
long userId = event.message().from().id();
|
long userId = event.message().from().id();
|
||||||
|
|
||||||
if ( event.message().replyToMessage()!= null) {
|
if (event.message().replyToMessage()!= null) {
|
||||||
userId = event.message().replyToMessage().from().id();
|
userId = event.message().replyToMessage().from().id();
|
||||||
}
|
}
|
||||||
if (args.length > 0) {
|
if (args.length > 0) {
|
||||||
@ -61,6 +61,14 @@ public class GetUsernameAndId implements ITelegramCommand {
|
|||||||
|
|
||||||
final User user = response.chatMember().user();
|
final User user = response.chatMember().user();
|
||||||
|
|
||||||
|
if (user.id() == 136817688) {
|
||||||
|
MornyCoeur.extra().exec(new SendMessage(
|
||||||
|
event.message().chat().id(),
|
||||||
|
"<code>$__channel_identify</code>"
|
||||||
|
));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
MornyCoeur.extra().exec(new SendMessage(
|
MornyCoeur.extra().exec(new SendMessage(
|
||||||
event.message().chat().id(),
|
event.message().chat().id(),
|
||||||
TelegramUserInformation.informationOutputHTML(user)
|
TelegramUserInformation.informationOutputHTML(user)
|
||||||
|
Loading…
Reference in New Issue
Block a user