prevent youtube liunks from always playing lul
j3s j3s@c3f.net
Wed, 17 Mar 2021 16:55:36 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
main.go
→
main.go
@@ -71,7 +71,7 @@ list := strings.Join(keys, "\n")
e.Sender.Send(list) } var file string - matched, err := regexp.MatchString(`https:\/\/(www.)?youtube\.com\/watch\?v=[A-z_0-9]{11}`, e.Message) + matched, err := regexp.MatchString(`!https:\/\/(www.)?youtube\.com\/watch\?v=[A-z_0-9]{11}`, e.Message) if err != nil { fmt.Printf("regex match blew up: %s", err) return