Skip to content

Commit

Permalink
youtube: Support youtube.com/live links
Browse files Browse the repository at this point in the history
  • Loading branch information
Brawl345 committed Jul 21, 2024
1 parent 3d09f50 commit 985846a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (p *Plugin) Handlers(botInfo *gotgbot.User) []plugin.Handler {
HandlerFunc: p.OnYouTubeLink,
},
&plugin.CommandHandler{
Trigger: regexp.MustCompile(`(?i)youtube\.com/(?:embed|shorts)/([\dA-Za-z_-]{10}[048AEIMQUYcgkosw])`),
Trigger: regexp.MustCompile(`(?i)youtube\.com/(?:embed|shorts|live)/([\dA-Za-z_-]{10}[048AEIMQUYcgkosw])`),
HandlerFunc: p.OnYouTubeLink,
},
&plugin.CommandHandler{
Expand Down

0 comments on commit 985846a

Please sign in to comment.