Skip to content

Commit

Permalink
modify: add FriendCommand and GroupCommand send success-message
Browse files Browse the repository at this point in the history
  • Loading branch information
MidCoard committed Mar 31, 2022
1 parent 2f8c6fc commit 19751e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void init() {
return CommandResult.REFUSE;
}
friend.sendMessage(new Message(MiraiCode.deserializeMiraiCode(message)));
ioHandler.outputLang("friend-command-send-success",friendId);
} catch (final InputTimeoutException exception) {
ioHandler.outputLang("friend-command-input-timeout");
return CommandResult.REFUSE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ public void init() {
return CommandResult.REFUSE;
}
group.sendMessage(new Message(MiraiCode.deserializeMiraiCode(message)));
ioHandler.outputLang("group-command-send-success",groupId);
} catch (final InputTimeoutException exception) {
ioHandler.outputLang("group-command-input-timeout");
return CommandResult.REFUSE;
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/lang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,13 @@ group-command-no-group: There is no group
group-command-input-one-message: Please input one message
group-command-group-not-found: Group %d does not exist
group-command-input-timeout: Input timeout
group-command-send-success: Send message to group %d successfully
friend-command-bot-not-found: Bot %d does not exist
friend-command-list: "The following friends are :"
friend-command-input-one-message: Please input one message
friend-command-friend-not-found: Friend %d does not exist
friend-command-input-timeout: Input timeout
friend-command-send-success: Send message to friend %d successfully
plugin-description-not-found: File plugin.yml not found
unknown-command: Unknown command %s
command-exec: "%s exec: %s"
Expand Down

0 comments on commit 19751e8

Please sign in to comment.