Added YT shorts support
This commit is contained in:
parent
0358e17a5a
commit
24622e7b38
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -210,7 +210,7 @@ func messageCreate(session *discordgo.Session, message *discordgo.MessageCreate)
|
|||
}
|
||||
|
||||
respond = true
|
||||
} else if output, _ := regexp.MatchString("(http.*youtube.com/watch.*?v=.*)|(http.*youtu.be/.*)", url); output {
|
||||
} else if output, _ := regexp.MatchString("(http.*youtube.com/watch.*?v=.*)|(http.*youtube.com/shorts/.*)|(http.*youtu.be/.*)", url); output {
|
||||
log.Println("YouTube detected.")
|
||||
|
||||
if shortned, _ := regexp.MatchString("http.*youtu\\.be/.*", url); shortned {
|
||||
|
|
Loading…
Reference in a new issue