Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
fix(speechloglink): discordapp.com形式のメッセージリンクに対応 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 authored Sep 5, 2022
1 parent ba4e6c9 commit ed9fc27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import java.util.regex.Pattern;

public class Event_VCSpeechLogLink extends ListenerAdapter {
final Pattern messageUrlPattern = Pattern.compile("^https://.*?discord\\.com/channels/(\\d+)/(\\d+)/(\\d+)\\??(.*)$", Pattern.CASE_INSENSITIVE);
final Pattern messageUrlPattern = Pattern.compile("^https://.*?discord(?:app)?\\.com/channels/(\\d+)/(\\d+)/(\\d+)\\??(.*)$", Pattern.CASE_INSENSITIVE);

@Override
public void onMessageReceived(@Nonnull MessageReceivedEvent event) {
Expand Down

0 comments on commit ed9fc27

Please sign in to comment.