small pixel drawing of a pufferfish neoarkbot

prevent youtube liunks from always playing lul
j3s j3s@c3f.net
Wed, 17 Mar 2021 16:55:36 -0500
commit

99d61a5ec06c93867b8d26f9533ff95c127e9754

parent

51f6a5999fe2d51254bbefa76618f6344b54e606

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M main.gomain.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